google-cloud-service_control-v1 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/api/servicecontrol/v1/check_error_pb.rb +25 -30
  5. data/lib/google/api/servicecontrol/v1/distribution_pb.rb +25 -28
  6. data/lib/google/api/servicecontrol/v1/http_request_pb.rb +25 -18
  7. data/lib/google/api/servicecontrol/v1/log_entry_pb.rb +28 -28
  8. data/lib/google/api/servicecontrol/v1/metric_value_pb.rb +26 -17
  9. data/lib/google/api/servicecontrol/v1/operation_pb.rb +28 -17
  10. data/lib/google/api/servicecontrol/v1/quota_controller_pb.rb +26 -42
  11. data/lib/google/api/servicecontrol/v1/service_controller_pb.rb +27 -44
  12. data/lib/google/cloud/service_control/v1/quota_controller/client.rb +2 -2
  13. data/lib/google/cloud/service_control/v1/quota_controller/rest/client.rb +364 -0
  14. data/lib/google/cloud/service_control/v1/quota_controller/rest/service_stub.rb +108 -0
  15. data/lib/google/cloud/service_control/v1/quota_controller/rest.rb +54 -0
  16. data/lib/google/cloud/service_control/v1/quota_controller.rb +7 -1
  17. data/lib/google/cloud/service_control/v1/rest.rb +38 -0
  18. data/lib/google/cloud/service_control/v1/service_controller/client.rb +2 -2
  19. data/lib/google/cloud/service_control/v1/service_controller/rest/client.rb +487 -0
  20. data/lib/google/cloud/service_control/v1/service_controller/rest/service_stub.rb +168 -0
  21. data/lib/google/cloud/service_control/v1/service_controller/rest.rb +54 -0
  22. data/lib/google/cloud/service_control/v1/service_controller.rb +7 -1
  23. data/lib/google/cloud/service_control/v1/version.rb +1 -1
  24. data/lib/google/cloud/service_control/v1.rb +7 -2
  25. data/proto_docs/google/api/client.rb +381 -0
  26. data/proto_docs/google/api/distribution.rb +2 -0
  27. data/proto_docs/google/api/launch_stage.rb +71 -0
  28. data/proto_docs/google/protobuf/any.rb +7 -4
  29. data/proto_docs/google/protobuf/struct.rb +1 -1
  30. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  31. data/proto_docs/google/rpc/status.rb +4 -2
  32. metadata +18 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d781056c952d706ff203e4007fe617700c4c47121497b13931c0fc95e018bc9
4
- data.tar.gz: bc10b53ed3b69da4684244125ab858c9c677d7e9703f56fca364c78f008b31c1
3
+ metadata.gz: 6806aa4cbd7d925b3a3e4d80dd111bcaa7492d2c73624cc005d7acf17d00851d
4
+ data.tar.gz: 8930728a13512b71375e26062deaf5c68711c50d87adaf33f5847a0753077e40
5
5
  SHA512:
6
- metadata.gz: 4a96ea5293e02343dd440a9baf5a4465224cf48915db4cbf8065f5faeafdb095947c2d6aba9f24202911a433619244c6cc04e0b1f00432ab760405cbe433fca5
7
- data.tar.gz: 99680a5b482e6c9818050f9a527a2c3f8cd71299e43bd35663964f657b04d29144689c01b00d474378ff110a111948cc18e7e1cd1450634532abd383ffa373f3
6
+ metadata.gz: 3787cc1e5e0e30fbeb5a39133cdcef84ef4cbfe599f8637584c6d86d410dd3cc8b244b60dcf94b9309e45bbd9810962d8460a7c9050ef2b28631773f05b122b9
7
+ data.tar.gz: cad54b890c62a9ef91d6899786b8b5f9a41565fa1fdb1e9054e41e0759620cfc0ca8a289ebaf7609824eeffdc6510e8084263dfb4cce6f9ecbd7178c86d2731d
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Service Control API V1 API
2
2
 
3
- API Client library for the Service Control API V1 API
3
+ Provides admission control and telemetry reporting for services integrated with Service Infrastructure.
4
4
 
5
5
  The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.
6
6
 
@@ -46,8 +46,8 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/check_error.proto
3
4
 
@@ -5,38 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/rpc/status_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/api/servicecontrol/v1/check_error.proto", :syntax => :proto3) do
10
- add_message "google.api.servicecontrol.v1.CheckError" do
11
- optional :code, :enum, 1, "google.api.servicecontrol.v1.CheckError.Code"
12
- optional :subject, :string, 4
13
- optional :detail, :string, 2
14
- optional :status, :message, 3, "google.rpc.Status"
15
- end
16
- add_enum "google.api.servicecontrol.v1.CheckError.Code" do
17
- value :ERROR_CODE_UNSPECIFIED, 0
18
- value :NOT_FOUND, 5
19
- value :PERMISSION_DENIED, 7
20
- value :RESOURCE_EXHAUSTED, 8
21
- value :SERVICE_NOT_ACTIVATED, 104
22
- value :BILLING_DISABLED, 107
23
- value :PROJECT_DELETED, 108
24
- value :PROJECT_INVALID, 114
25
- value :CONSUMER_INVALID, 125
26
- value :IP_ADDRESS_BLOCKED, 109
27
- value :REFERER_BLOCKED, 110
28
- value :CLIENT_APP_BLOCKED, 111
29
- value :API_TARGET_BLOCKED, 122
30
- value :API_KEY_INVALID, 105
31
- value :API_KEY_EXPIRED, 112
32
- value :API_KEY_NOT_FOUND, 113
33
- value :INVALID_CREDENTIAL, 123
34
- value :NAMESPACE_LOOKUP_UNAVAILABLE, 300
35
- value :SERVICE_STATUS_UNAVAILABLE, 301
36
- value :BILLING_STATUS_UNAVAILABLE, 302
37
- value :CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE, 305
9
+
10
+ descriptor_data = "\n.google/api/servicecontrol/v1/check_error.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x17google/rpc/status.proto\"\xae\x05\n\nCheckError\x12;\n\x04\x63ode\x18\x01 \x01(\x0e\x32-.google.api.servicecontrol.v1.CheckError.Code\x12\x0f\n\x07subject\x18\x04 \x01(\t\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\"\x9d\x04\n\x04\x43ode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x05\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x19\n\x15SERVICE_NOT_ACTIVATED\x10h\x12\x14\n\x10\x42ILLING_DISABLED\x10k\x12\x13\n\x0fPROJECT_DELETED\x10l\x12\x13\n\x0fPROJECT_INVALID\x10r\x12\x14\n\x10\x43ONSUMER_INVALID\x10}\x12\x16\n\x12IP_ADDRESS_BLOCKED\x10m\x12\x13\n\x0fREFERER_BLOCKED\x10n\x12\x16\n\x12\x43LIENT_APP_BLOCKED\x10o\x12\x16\n\x12\x41PI_TARGET_BLOCKED\x10z\x12\x13\n\x0f\x41PI_KEY_INVALID\x10i\x12\x13\n\x0f\x41PI_KEY_EXPIRED\x10p\x12\x15\n\x11\x41PI_KEY_NOT_FOUND\x10q\x12\x16\n\x12INVALID_CREDENTIAL\x10{\x12!\n\x1cNAMESPACE_LOOKUP_UNAVAILABLE\x10\xac\x02\x12\x1f\n\x1aSERVICE_STATUS_UNAVAILABLE\x10\xad\x02\x12\x1f\n\x1a\x42ILLING_STATUS_UNAVAILABLE\x10\xae\x02\x12/\n*CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE\x10\xb1\x02\x42\xea\x01\n com.google.api.servicecontrol.v1B\x0f\x43heckErrorProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.rpc.Status", "google/rpc/status.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
38
31
  end
39
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
40
35
  end
41
36
 
42
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/distribution.proto
3
4
 
@@ -5,36 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/distribution_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/api/servicecontrol/v1/distribution.proto", :syntax => :proto3) do
10
- add_message "google.api.servicecontrol.v1.Distribution" do
11
- optional :count, :int64, 1
12
- optional :mean, :double, 2
13
- optional :minimum, :double, 3
14
- optional :maximum, :double, 4
15
- optional :sum_of_squared_deviation, :double, 5
16
- repeated :bucket_counts, :int64, 6
17
- repeated :exemplars, :message, 10, "google.api.Distribution.Exemplar"
18
- oneof :bucket_option do
19
- optional :linear_buckets, :message, 7, "google.api.servicecontrol.v1.Distribution.LinearBuckets"
20
- optional :exponential_buckets, :message, 8, "google.api.servicecontrol.v1.Distribution.ExponentialBuckets"
21
- optional :explicit_buckets, :message, 9, "google.api.servicecontrol.v1.Distribution.ExplicitBuckets"
22
- end
23
- end
24
- add_message "google.api.servicecontrol.v1.Distribution.LinearBuckets" do
25
- optional :num_finite_buckets, :int32, 1
26
- optional :width, :double, 2
27
- optional :offset, :double, 3
28
- end
29
- add_message "google.api.servicecontrol.v1.Distribution.ExponentialBuckets" do
30
- optional :num_finite_buckets, :int32, 1
31
- optional :growth_factor, :double, 2
32
- optional :scale, :double, 3
33
- end
34
- add_message "google.api.servicecontrol.v1.Distribution.ExplicitBuckets" do
35
- repeated :bounds, :double, 1
9
+
10
+ descriptor_data = "\n/google/api/servicecontrol/v1/distribution.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1dgoogle/api/distribution.proto\"\x9e\x05\n\x0c\x44istribution\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x0c\n\x04mean\x18\x02 \x01(\x01\x12\x0f\n\x07minimum\x18\x03 \x01(\x01\x12\x0f\n\x07maximum\x18\x04 \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x05 \x01(\x01\x12\x15\n\rbucket_counts\x18\x06 \x03(\x03\x12R\n\x0elinear_buckets\x18\x07 \x01(\x0b\x32\x38.google.api.servicecontrol.v1.Distribution.LinearBucketsH\x00\x12\\\n\x13\x65xponential_buckets\x18\x08 \x01(\x0b\x32=.google.api.servicecontrol.v1.Distribution.ExponentialBucketsH\x00\x12V\n\x10\x65xplicit_buckets\x18\t \x01(\x0b\x32:.google.api.servicecontrol.v1.Distribution.ExplicitBucketsH\x00\x12\x34\n\texemplars\x18\n \x03(\x0b\x32!.google.api.Distribution.Exemplar\x1aJ\n\rLinearBuckets\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x1aV\n\x12\x45xponentialBuckets\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\n\rgrowth_factor\x18\x02 \x01(\x01\x12\r\n\x05scale\x18\x03 \x01(\x01\x1a!\n\x0f\x45xplicitBuckets\x12\x0e\n\x06\x62ounds\x18\x01 \x03(\x01\x42\x0f\n\rbucket_optionB\xec\x01\n com.google.api.servicecontrol.v1B\x11\x44istributionProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.api.Distribution.Exemplar", "google/api/distribution.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
31
  end
37
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
38
35
  end
39
36
 
40
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/http_request.proto
3
4
 
@@ -5,26 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/duration_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/api/servicecontrol/v1/http_request.proto", :syntax => :proto3) do
10
- add_message "google.api.servicecontrol.v1.HttpRequest" do
11
- optional :request_method, :string, 1
12
- optional :request_url, :string, 2
13
- optional :request_size, :int64, 3
14
- optional :status, :int32, 4
15
- optional :response_size, :int64, 5
16
- optional :user_agent, :string, 6
17
- optional :remote_ip, :string, 7
18
- optional :server_ip, :string, 13
19
- optional :referer, :string, 8
20
- optional :latency, :message, 14, "google.protobuf.Duration"
21
- optional :cache_lookup, :bool, 11
22
- optional :cache_hit, :bool, 9
23
- optional :cache_validated_with_origin_server, :bool, 10
24
- optional :cache_fill_bytes, :int64, 12
25
- optional :protocol, :string, 15
9
+
10
+ descriptor_data = "\n/google/api/servicecontrol/v1/http_request.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1egoogle/protobuf/duration.proto\"\xef\x02\n\x0bHttpRequest\x12\x16\n\x0erequest_method\x18\x01 \x01(\t\x12\x13\n\x0brequest_url\x18\x02 \x01(\t\x12\x14\n\x0crequest_size\x18\x03 \x01(\x03\x12\x0e\n\x06status\x18\x04 \x01(\x05\x12\x15\n\rresponse_size\x18\x05 \x01(\x03\x12\x12\n\nuser_agent\x18\x06 \x01(\t\x12\x11\n\tremote_ip\x18\x07 \x01(\t\x12\x11\n\tserver_ip\x18\r \x01(\t\x12\x0f\n\x07referer\x18\x08 \x01(\t\x12*\n\x07latency\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x14\n\x0c\x63\x61\x63he_lookup\x18\x0b \x01(\x08\x12\x11\n\tcache_hit\x18\t \x01(\x08\x12*\n\"cache_validated_with_origin_server\x18\n \x01(\x08\x12\x18\n\x10\x63\x61\x63he_fill_bytes\x18\x0c \x01(\x03\x12\x10\n\x08protocol\x18\x0f \x01(\tB\xe8\x01\n com.google.api.servicecontrol.v1B\x10HttpRequestProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
26
31
  end
27
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
28
35
  end
29
36
 
30
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/log_entry.proto
3
4
 
@@ -9,36 +10,35 @@ require 'google/protobuf/any_pb'
9
10
  require 'google/protobuf/struct_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/api/servicecontrol/v1/log_entry.proto", :syntax => :proto3) do
14
- add_message "google.api.servicecontrol.v1.LogEntry" do
15
- optional :name, :string, 10
16
- optional :timestamp, :message, 11, "google.protobuf.Timestamp"
17
- optional :severity, :enum, 12, "google.logging.type.LogSeverity"
18
- optional :http_request, :message, 14, "google.api.servicecontrol.v1.HttpRequest"
19
- optional :trace, :string, 15
20
- optional :insert_id, :string, 4
21
- map :labels, :string, :string, 13
22
- optional :operation, :message, 16, "google.api.servicecontrol.v1.LogEntryOperation"
23
- optional :source_location, :message, 17, "google.api.servicecontrol.v1.LogEntrySourceLocation"
24
- oneof :payload do
25
- optional :proto_payload, :message, 2, "google.protobuf.Any"
26
- optional :text_payload, :string, 3
27
- optional :struct_payload, :message, 6, "google.protobuf.Struct"
28
- end
29
- end
30
- add_message "google.api.servicecontrol.v1.LogEntryOperation" do
31
- optional :id, :string, 1
32
- optional :producer, :string, 2
33
- optional :first, :bool, 3
34
- optional :last, :bool, 4
35
- end
36
- add_message "google.api.servicecontrol.v1.LogEntrySourceLocation" do
37
- optional :file, :string, 1
38
- optional :line, :int64, 2
39
- optional :function, :string, 3
13
+
14
+ descriptor_data = "\n,google/api/servicecontrol/v1/log_entry.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a/google/api/servicecontrol/v1/http_request.proto\x1a&google/logging/type/log_severity.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x04\n\x08LogEntry\x12\x0c\n\x04name\x18\n \x01(\t\x12-\n\ttimestamp\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x08severity\x18\x0c \x01(\x0e\x32 .google.logging.type.LogSeverity\x12?\n\x0chttp_request\x18\x0e \x01(\x0b\x32).google.api.servicecontrol.v1.HttpRequest\x12\r\n\x05trace\x18\x0f \x01(\t\x12\x11\n\tinsert_id\x18\x04 \x01(\t\x12\x42\n\x06labels\x18\r \x03(\x0b\x32\x32.google.api.servicecontrol.v1.LogEntry.LabelsEntry\x12-\n\rproto_payload\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x16\n\x0ctext_payload\x18\x03 \x01(\tH\x00\x12\x31\n\x0estruct_payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x42\n\toperation\x18\x10 \x01(\x0b\x32/.google.api.servicecontrol.v1.LogEntryOperation\x12M\n\x0fsource_location\x18\x11 \x01(\x0b\x32\x34.google.api.servicecontrol.v1.LogEntrySourceLocation\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07payload\"N\n\x11LogEntryOperation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08producer\x18\x02 \x01(\t\x12\r\n\x05\x66irst\x18\x03 \x01(\x08\x12\x0c\n\x04last\x18\x04 \x01(\x08\"F\n\x16LogEntrySourceLocation\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\x0c\n\x04line\x18\x02 \x01(\x03\x12\x10\n\x08\x66unction\x18\x03 \x01(\tB\xe5\x01\n com.google.api.servicecontrol.v1B\rLogEntryProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ["google.api.servicecontrol.v1.HttpRequest", "google/api/servicecontrol/v1/http_request.proto"],
31
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
32
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
33
+ ]
34
+ imports.each do |type_name, expected_filename|
35
+ import_file = pool.lookup(type_name).file_descriptor
36
+ if import_file.name != expected_filename
37
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
38
  end
41
39
  end
40
+ warn "Each proto file must use a consistent fully-qualified name."
41
+ warn "This will become an error in the next major version."
42
42
  end
43
43
 
44
44
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/metric_value.proto
3
4
 
@@ -6,25 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/api/servicecontrol/v1/distribution_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/api/servicecontrol/v1/metric_value.proto", :syntax => :proto3) do
11
- add_message "google.api.servicecontrol.v1.MetricValue" do
12
- map :labels, :string, :string, 1
13
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
14
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
15
- oneof :value do
16
- optional :bool_value, :bool, 4
17
- optional :int64_value, :int64, 5
18
- optional :double_value, :double, 6
19
- optional :string_value, :string, 7
20
- optional :distribution_value, :message, 8, "google.api.servicecontrol.v1.Distribution"
21
- end
22
- end
23
- add_message "google.api.servicecontrol.v1.MetricValueSet" do
24
- optional :metric_name, :string, 1
25
- repeated :metric_values, :message, 2, "google.api.servicecontrol.v1.MetricValue"
10
+
11
+ descriptor_data = "\n/google/api/servicecontrol/v1/metric_value.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a/google/api/servicecontrol/v1/distribution.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x03\n\x0bMetricValue\x12\x45\n\x06labels\x18\x01 \x03(\x0b\x32\x35.google.api.servicecontrol.v1.MetricValue.LabelsEntry\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x06 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x07 \x01(\tH\x00\x12H\n\x12\x64istribution_value\x18\x08 \x01(\x0b\x32*.google.api.servicecontrol.v1.DistributionH\x00\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05value\"g\n\x0eMetricValueSet\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\x12@\n\rmetric_values\x18\x02 \x03(\x0b\x32).google.api.servicecontrol.v1.MetricValueB\xee\x01\n com.google.api.servicecontrol.v1B\x13MetricValueSetProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["google.api.servicecontrol.v1.Distribution", "google/api/servicecontrol/v1/distribution.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
26
33
  end
27
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
28
37
  end
29
38
 
30
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/operation.proto
3
4
 
@@ -8,25 +9,35 @@ require 'google/api/servicecontrol/v1/metric_value_pb'
8
9
  require 'google/protobuf/any_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/api/servicecontrol/v1/operation.proto", :syntax => :proto3) do
13
- add_message "google.api.servicecontrol.v1.Operation" do
14
- optional :operation_id, :string, 1
15
- optional :operation_name, :string, 2
16
- optional :consumer_id, :string, 3
17
- optional :start_time, :message, 4, "google.protobuf.Timestamp"
18
- optional :end_time, :message, 5, "google.protobuf.Timestamp"
19
- map :labels, :string, :string, 6
20
- repeated :metric_value_sets, :message, 7, "google.api.servicecontrol.v1.MetricValueSet"
21
- repeated :log_entries, :message, 8, "google.api.servicecontrol.v1.LogEntry"
22
- optional :importance, :enum, 11, "google.api.servicecontrol.v1.Operation.Importance"
23
- repeated :extensions, :message, 16, "google.protobuf.Any"
24
- end
25
- add_enum "google.api.servicecontrol.v1.Operation.Importance" do
26
- value :LOW, 0
27
- value :HIGH, 1
12
+
13
+ descriptor_data = "\n,google/api/servicecontrol/v1/operation.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a,google/api/servicecontrol/v1/log_entry.proto\x1a/google/api/servicecontrol/v1/metric_value.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb9\x04\n\tOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x16\n\x0eoperation_name\x18\x02 \x01(\t\x12\x13\n\x0b\x63onsumer_id\x18\x03 \x01(\t\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06labels\x18\x06 \x03(\x0b\x32\x33.google.api.servicecontrol.v1.Operation.LabelsEntry\x12G\n\x11metric_value_sets\x18\x07 \x03(\x0b\x32,.google.api.servicecontrol.v1.MetricValueSet\x12;\n\x0blog_entries\x18\x08 \x03(\x0b\x32&.google.api.servicecontrol.v1.LogEntry\x12\x46\n\nimportance\x18\x0b \x01(\x0e\x32\x32.google.api.servicecontrol.v1.Operation.Importance\x12(\n\nextensions\x18\x10 \x03(\x0b\x32\x14.google.protobuf.Any\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1f\n\nImportance\x12\x07\n\x03LOW\x10\x00\x12\x08\n\x04HIGH\x10\x01\x42\xe9\x01\n com.google.api.servicecontrol.v1B\x0eOperationProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.api.servicecontrol.v1.MetricValueSet", "google/api/servicecontrol/v1/metric_value.proto"],
30
+ ["google.api.servicecontrol.v1.LogEntry", "google/api/servicecontrol/v1/log_entry.proto"],
31
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
37
  end
29
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
30
41
  end
31
42
 
32
43
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/quota_controller.proto
3
4
 
@@ -8,50 +9,33 @@ require 'google/api/servicecontrol/v1/metric_value_pb'
8
9
  require 'google/rpc/status_pb'
9
10
  require 'google/api/client_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/api/servicecontrol/v1/quota_controller.proto", :syntax => :proto3) do
13
- add_message "google.api.servicecontrol.v1.AllocateQuotaRequest" do
14
- optional :service_name, :string, 1
15
- optional :allocate_operation, :message, 2, "google.api.servicecontrol.v1.QuotaOperation"
16
- optional :service_config_id, :string, 4
17
- end
18
- add_message "google.api.servicecontrol.v1.QuotaOperation" do
19
- optional :operation_id, :string, 1
20
- optional :method_name, :string, 2
21
- optional :consumer_id, :string, 3
22
- map :labels, :string, :string, 4
23
- repeated :quota_metrics, :message, 5, "google.api.servicecontrol.v1.MetricValueSet"
24
- optional :quota_mode, :enum, 6, "google.api.servicecontrol.v1.QuotaOperation.QuotaMode"
25
- end
26
- add_enum "google.api.servicecontrol.v1.QuotaOperation.QuotaMode" do
27
- value :UNSPECIFIED, 0
28
- value :NORMAL, 1
29
- value :BEST_EFFORT, 2
30
- value :CHECK_ONLY, 3
31
- value :QUERY_ONLY, 4
32
- value :ADJUST_ONLY, 5
33
- end
34
- add_message "google.api.servicecontrol.v1.AllocateQuotaResponse" do
35
- optional :operation_id, :string, 1
36
- repeated :allocate_errors, :message, 2, "google.api.servicecontrol.v1.QuotaError"
37
- repeated :quota_metrics, :message, 3, "google.api.servicecontrol.v1.MetricValueSet"
38
- optional :service_config_id, :string, 4
39
- end
40
- add_message "google.api.servicecontrol.v1.QuotaError" do
41
- optional :code, :enum, 1, "google.api.servicecontrol.v1.QuotaError.Code"
42
- optional :subject, :string, 2
43
- optional :description, :string, 3
44
- optional :status, :message, 4, "google.rpc.Status"
45
- end
46
- add_enum "google.api.servicecontrol.v1.QuotaError.Code" do
47
- value :UNSPECIFIED, 0
48
- value :RESOURCE_EXHAUSTED, 8
49
- value :BILLING_NOT_ACTIVE, 107
50
- value :PROJECT_DELETED, 108
51
- value :API_KEY_INVALID, 105
52
- value :API_KEY_EXPIRED, 112
12
+
13
+ descriptor_data = "\n3google/api/servicecontrol/v1/quota_controller.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a/google/api/servicecontrol/v1/metric_value.proto\x1a\x17google/rpc/status.proto\x1a\x17google/api/client.proto\"\x91\x01\n\x14\x41llocateQuotaRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12H\n\x12\x61llocate_operation\x18\x02 \x01(\x0b\x32,.google.api.servicecontrol.v1.QuotaOperation\x12\x19\n\x11service_config_id\x18\x04 \x01(\t\"\xc6\x03\n\x0eQuotaOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x13\n\x0bmethod_name\x18\x02 \x01(\t\x12\x13\n\x0b\x63onsumer_id\x18\x03 \x01(\t\x12H\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.api.servicecontrol.v1.QuotaOperation.LabelsEntry\x12\x43\n\rquota_metrics\x18\x05 \x03(\x0b\x32,.google.api.servicecontrol.v1.MetricValueSet\x12J\n\nquota_mode\x18\x06 \x01(\x0e\x32\x36.google.api.servicecontrol.v1.QuotaOperation.QuotaMode\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"j\n\tQuotaMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x0f\n\x0b\x42\x45ST_EFFORT\x10\x02\x12\x0e\n\nCHECK_ONLY\x10\x03\x12\x0e\n\nQUERY_ONLY\x10\x04\x12\x0f\n\x0b\x41\x44JUST_ONLY\x10\x05\"\xd0\x01\n\x15\x41llocateQuotaResponse\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x41\n\x0f\x61llocate_errors\x18\x02 \x03(\x0b\x32(.google.api.servicecontrol.v1.QuotaError\x12\x43\n\rquota_metrics\x18\x03 \x03(\x0b\x32,.google.api.servicecontrol.v1.MetricValueSet\x12\x19\n\x11service_config_id\x18\x04 \x01(\t\"\x9c\x02\n\nQuotaError\x12;\n\x04\x63ode\x18\x01 \x01(\x0e\x32-.google.api.servicecontrol.v1.QuotaError.Code\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\"\n\x06status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\"\x86\x01\n\x04\x43ode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x16\n\x12\x42ILLING_NOT_ACTIVE\x10k\x12\x13\n\x0fPROJECT_DELETED\x10l\x12\x13\n\x0f\x41PI_KEY_INVALID\x10i\x12\x13\n\x0f\x41PI_KEY_EXPIRED\x10p2\xc5\x02\n\x0fQuotaController\x12\xae\x01\n\rAllocateQuota\x12\x32.google.api.servicecontrol.v1.AllocateQuotaRequest\x1a\x33.google.api.servicecontrol.v1.AllocateQuotaResponse\"4\x82\xd3\xe4\x93\x02.\")/v1/services/{service_name}:allocateQuota:\x01*\x1a\x80\x01\xca\x41\x1dservicecontrol.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/servicecontrolB\xef\x01\n com.google.api.servicecontrol.v1B\x14QuotaControllerProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.api.servicecontrol.v1.MetricValueSet", "google/api/servicecontrol/v1/metric_value.proto"],
29
+ ["google.rpc.Status", "google/rpc/status.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
53
35
  end
54
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
55
39
  end
56
40
 
57
41
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/servicecontrol/v1/service_controller.proto
3
4
 
@@ -7,54 +8,36 @@ require 'google/api/annotations_pb'
7
8
  require 'google/api/client_pb'
8
9
  require 'google/api/servicecontrol/v1/check_error_pb'
9
10
  require 'google/api/servicecontrol/v1/operation_pb'
10
- require 'google/protobuf/timestamp_pb'
11
11
  require 'google/rpc/status_pb'
12
12
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/api/servicecontrol/v1/service_controller.proto", :syntax => :proto3) do
15
- add_message "google.api.servicecontrol.v1.CheckRequest" do
16
- optional :service_name, :string, 1
17
- optional :operation, :message, 2, "google.api.servicecontrol.v1.Operation"
18
- optional :service_config_id, :string, 4
19
- end
20
- add_message "google.api.servicecontrol.v1.CheckResponse" do
21
- optional :operation_id, :string, 1
22
- repeated :check_errors, :message, 2, "google.api.servicecontrol.v1.CheckError"
23
- optional :service_config_id, :string, 5
24
- optional :service_rollout_id, :string, 11
25
- optional :check_info, :message, 6, "google.api.servicecontrol.v1.CheckResponse.CheckInfo"
26
- end
27
- add_message "google.api.servicecontrol.v1.CheckResponse.CheckInfo" do
28
- repeated :unused_arguments, :string, 1
29
- optional :consumer_info, :message, 2, "google.api.servicecontrol.v1.CheckResponse.ConsumerInfo"
30
- end
31
- add_message "google.api.servicecontrol.v1.CheckResponse.ConsumerInfo" do
32
- optional :project_number, :int64, 1
33
- optional :type, :enum, 2, "google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType"
34
- optional :consumer_number, :int64, 3
35
- end
36
- add_enum "google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType" do
37
- value :CONSUMER_TYPE_UNSPECIFIED, 0
38
- value :PROJECT, 1
39
- value :FOLDER, 2
40
- value :ORGANIZATION, 3
41
- value :SERVICE_SPECIFIC, 4
42
- end
43
- add_message "google.api.servicecontrol.v1.ReportRequest" do
44
- optional :service_name, :string, 1
45
- repeated :operations, :message, 2, "google.api.servicecontrol.v1.Operation"
46
- optional :service_config_id, :string, 3
47
- end
48
- add_message "google.api.servicecontrol.v1.ReportResponse" do
49
- repeated :report_errors, :message, 1, "google.api.servicecontrol.v1.ReportResponse.ReportError"
50
- optional :service_config_id, :string, 2
51
- optional :service_rollout_id, :string, 4
52
- end
53
- add_message "google.api.servicecontrol.v1.ReportResponse.ReportError" do
54
- optional :operation_id, :string, 1
55
- optional :status, :message, 2, "google.rpc.Status"
13
+
14
+ descriptor_data = "\n5google/api/servicecontrol/v1/service_controller.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a.google/api/servicecontrol/v1/check_error.proto\x1a,google/api/servicecontrol/v1/operation.proto\x1a\x17google/rpc/status.proto\"{\n\x0c\x43heckRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12:\n\toperation\x18\x02 \x01(\x0b\x32\'.google.api.servicecontrol.v1.Operation\x12\x19\n\x11service_config_id\x18\x04 \x01(\t\"\xe6\x04\n\rCheckResponse\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12>\n\x0c\x63heck_errors\x18\x02 \x03(\x0b\x32(.google.api.servicecontrol.v1.CheckError\x12\x19\n\x11service_config_id\x18\x05 \x01(\t\x12\x1a\n\x12service_rollout_id\x18\x0b \x01(\t\x12I\n\ncheck_info\x18\x06 \x01(\x0b\x32\x35.google.api.servicecontrol.v1.CheckResponse.CheckInfo\x1av\n\tCheckInfo\x12\x18\n\x10unused_arguments\x18\x01 \x03(\t\x12O\n\rconsumer_info\x18\x02 \x01(\x0b\x32\x38.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo\x1a\x84\x02\n\x0c\x43onsumerInfo\x12\x16\n\x0eproject_number\x18\x01 \x01(\x03\x12S\n\x04type\x18\x02 \x01(\x0e\x32\x45.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType\x12\x17\n\x0f\x63onsumer_number\x18\x03 \x01(\x03\"n\n\x0c\x43onsumerType\x12\x1d\n\x19\x43ONSUMER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PROJECT\x10\x01\x12\n\n\x06\x46OLDER\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\x14\n\x10SERVICE_SPECIFIC\x10\x04\"}\n\rReportRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12;\n\noperations\x18\x02 \x03(\x0b\x32\'.google.api.servicecontrol.v1.Operation\x12\x19\n\x11service_config_id\x18\x03 \x01(\t\"\xe1\x01\n\x0eReportResponse\x12O\n\rreport_errors\x18\x01 \x03(\x0b\x32\x38.google.api.servicecontrol.v1.ReportResponse.ReportError\x12\x19\n\x11service_config_id\x18\x02 \x01(\t\x12\x1a\n\x12service_rollout_id\x18\x04 \x01(\t\x1aG\n\x0bReportError\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xbc\x03\n\x11ServiceController\x12\x8e\x01\n\x05\x43heck\x12*.google.api.servicecontrol.v1.CheckRequest\x1a+.google.api.servicecontrol.v1.CheckResponse\",\x82\xd3\xe4\x93\x02&\"!/v1/services/{service_name}:check:\x01*\x12\x92\x01\n\x06Report\x12+.google.api.servicecontrol.v1.ReportRequest\x1a,.google.api.servicecontrol.v1.ReportResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/services/{service_name}:report:\x01*\x1a\x80\x01\xca\x41\x1dservicecontrol.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/servicecontrolB\xf8\x01\n com.google.api.servicecontrol.v1B\x16ServiceControllerProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xa2\x02\x04GASC\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.api.servicecontrol.v1.Operation", "google/api/servicecontrol/v1/operation.proto"],
30
+ ["google.api.servicecontrol.v1.CheckError", "google/api/servicecontrol/v1/check_error.proto"],
31
+ ["google.rpc.Status", "google/rpc/status.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
56
37
  end
57
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
58
41
  end
59
42
 
60
43
  module Google