googleapis-common-protos-types 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/lib/google/api/annotations_pb.rb +60 -2
  4. data/lib/google/api/auth_pb.rb +264 -34
  5. data/lib/google/api/backend_pb.rb +212 -23
  6. data/lib/google/api/billing_pb.rb +104 -8
  7. data/lib/google/api/client_pb.rb +422 -86
  8. data/lib/google/api/config_change_pb.rb +111 -17
  9. data/lib/google/api/consumer_pb.rb +109 -16
  10. data/lib/google/api/context_pb.rb +117 -11
  11. data/lib/google/api/control_pb.rb +71 -4
  12. data/lib/google/api/distribution_pb.rb +242 -39
  13. data/lib/google/api/documentation_pb.rb +195 -19
  14. data/lib/google/api/endpoint_pb.rb +100 -7
  15. data/lib/google/api/error_reason_pb.rb +597 -33
  16. data/lib/google/api/field_behavior_pb.rb +117 -11
  17. data/lib/google/api/http_pb.rb +406 -23
  18. data/lib/google/api/httpbody_pb.rb +109 -6
  19. data/lib/google/api/label_pb.rb +75 -11
  20. data/lib/google/api/launch_stage_pb.rb +99 -11
  21. data/lib/google/api/log_pb.rb +82 -7
  22. data/lib/google/api/logging_pb.rb +108 -9
  23. data/lib/google/api/metric_pb.rb +297 -38
  24. data/lib/google/api/monitored_resource_pb.rb +159 -17
  25. data/lib/google/api/monitoring_pb.rb +134 -9
  26. data/lib/google/api/policy_pb.rb +129 -0
  27. data/lib/google/api/quota_pb.rb +211 -21
  28. data/lib/google/api/resource_pb.rb +265 -23
  29. data/lib/google/api/routing_pb.rb +488 -8
  30. data/lib/google/api/service_pb.rb +239 -29
  31. data/lib/google/api/source_info_pb.rb +59 -4
  32. data/lib/google/api/system_parameter_pb.rb +123 -13
  33. data/lib/google/api/usage_pb.rb +123 -11
  34. data/lib/google/api/visibility_pb.rb +140 -8
  35. data/lib/google/logging/type/http_request_pb.rb +123 -18
  36. data/lib/google/logging/type/log_severity_pb.rb +98 -12
  37. data/lib/google/longrunning/operations_pb.rb +277 -37
  38. data/lib/google/rpc/code_pb.rb +213 -20
  39. data/lib/google/rpc/context/attribute_context_pb.rb +375 -66
  40. data/lib/google/rpc/context/audit_context_pb.rb +77 -8
  41. data/lib/google/rpc/error_details_pb.rb +313 -56
  42. data/lib/google/rpc/http_pb.rb +91 -17
  43. data/lib/google/rpc/status_pb.rb +77 -6
  44. data/lib/google/type/calendar_period_pb.rb +83 -11
  45. data/lib/google/type/color_pb.rb +202 -7
  46. data/lib/google/type/date_pb.rb +79 -6
  47. data/lib/google/type/datetime_pb.rb +132 -18
  48. data/lib/google/type/dayofweek_pb.rb +77 -11
  49. data/lib/google/type/decimal_pb.rb +122 -4
  50. data/lib/google/type/expr_pb.rb +100 -7
  51. data/lib/google/type/fraction_pb.rb +60 -5
  52. data/lib/google/type/interval_pb.rb +74 -5
  53. data/lib/google/type/latlng_pb.rb +64 -5
  54. data/lib/google/type/localized_text_pb.rb +63 -5
  55. data/lib/google/type/money_pb.rb +69 -6
  56. data/lib/google/type/month_pb.rb +92 -16
  57. data/lib/google/type/phone_number_pb.rb +140 -12
  58. data/lib/google/type/postal_address_pb.rb +161 -14
  59. data/lib/google/type/quaternion_pb.rb +121 -7
  60. data/lib/google/type/timeofday_pb.rb +71 -7
  61. data/lib/googleapis/common/protos/types/version.rb +1 -1
  62. metadata +5 -4
@@ -1,27 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/config_change.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/config_change.proto", :syntax => :proto3) do
8
- add_message "google.api.ConfigChange" do
9
- optional :element, :string, 1
10
- optional :old_value, :string, 2
11
- optional :new_value, :string, 3
12
- optional :change_type, :enum, 4, "google.api.ChangeType"
13
- repeated :advices, :message, 5, "google.api.Advice"
14
- end
15
- add_message "google.api.Advice" do
16
- optional :description, :string, 2
17
- end
18
- add_enum "google.api.ChangeType" do
19
- value :CHANGE_TYPE_UNSPECIFIED, 0
20
- value :ADDED, 1
21
- value :REMOVED, 2
22
- value :MODIFIED, 3
7
+
8
+ descriptor_data = "\n\x1egoogle/api/config_change.proto\x12\ngoogle.api\"\x97\x01\n\x0c\x43onfigChange\x12\x0f\n\x07\x65lement\x18\x01 \x01(\t\x12\x11\n\told_value\x18\x02 \x01(\t\x12\x11\n\tnew_value\x18\x03 \x01(\t\x12+\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x16.google.api.ChangeType\x12#\n\x07\x61\x64vices\x18\x05 \x03(\x0b\x32\x12.google.api.Advice\"\x1d\n\x06\x41\x64vice\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t*O\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07REMOVED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x42q\n\x0e\x63om.google.apiB\x11\x43onfigChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\xa2\x02\x04GAPIb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
23
28
  end
24
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
25
32
  end
26
33
 
27
34
  module Google
@@ -31,3 +38,90 @@ module Google
31
38
  ChangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ChangeType").enummodule
32
39
  end
33
40
  end
41
+
42
+ #### Source proto file: google/api/config_change.proto ####
43
+ #
44
+ # // Copyright 2023 Google LLC
45
+ # //
46
+ # // Licensed under the Apache License, Version 2.0 (the "License");
47
+ # // you may not use this file except in compliance with the License.
48
+ # // You may obtain a copy of the License at
49
+ # //
50
+ # // http://www.apache.org/licenses/LICENSE-2.0
51
+ # //
52
+ # // Unless required by applicable law or agreed to in writing, software
53
+ # // distributed under the License is distributed on an "AS IS" BASIS,
54
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
55
+ # // See the License for the specific language governing permissions and
56
+ # // limitations under the License.
57
+ #
58
+ # syntax = "proto3";
59
+ #
60
+ # package google.api;
61
+ #
62
+ # option go_package = "google.golang.org/genproto/googleapis/api/configchange;configchange";
63
+ # option java_multiple_files = true;
64
+ # option java_outer_classname = "ConfigChangeProto";
65
+ # option java_package = "com.google.api";
66
+ # option objc_class_prefix = "GAPI";
67
+ #
68
+ # // Output generated from semantically comparing two versions of a service
69
+ # // configuration.
70
+ # //
71
+ # // Includes detailed information about a field that have changed with
72
+ # // applicable advice about potential consequences for the change, such as
73
+ # // backwards-incompatibility.
74
+ # message ConfigChange {
75
+ # // Object hierarchy path to the change, with levels separated by a '.'
76
+ # // character. For repeated fields, an applicable unique identifier field is
77
+ # // used for the index (usually selector, name, or id). For maps, the term
78
+ # // 'key' is used. If the field has no unique identifier, the numeric index
79
+ # // is used.
80
+ # // Examples:
81
+ # // - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
82
+ # // - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
83
+ # // - logging.producer_destinations[0]
84
+ # string element = 1;
85
+ #
86
+ # // Value of the changed object in the old Service configuration,
87
+ # // in JSON format. This field will not be populated if ChangeType == ADDED.
88
+ # string old_value = 2;
89
+ #
90
+ # // Value of the changed object in the new Service configuration,
91
+ # // in JSON format. This field will not be populated if ChangeType == REMOVED.
92
+ # string new_value = 3;
93
+ #
94
+ # // The type for this change, either ADDED, REMOVED, or MODIFIED.
95
+ # ChangeType change_type = 4;
96
+ #
97
+ # // Collection of advice provided for this change, useful for determining the
98
+ # // possible impact of this change.
99
+ # repeated Advice advices = 5;
100
+ # }
101
+ #
102
+ # // Generated advice about this change, used for providing more
103
+ # // information about how a change will affect the existing service.
104
+ # message Advice {
105
+ # // Useful description for why this advice was applied and what actions should
106
+ # // be taken to mitigate any implied risks.
107
+ # string description = 2;
108
+ # }
109
+ #
110
+ # // Classifies set of possible modifications to an object in the service
111
+ # // configuration.
112
+ # enum ChangeType {
113
+ # // No value was provided.
114
+ # CHANGE_TYPE_UNSPECIFIED = 0;
115
+ #
116
+ # // The changed object exists in the 'new' service configuration, but not
117
+ # // in the 'old' service configuration.
118
+ # ADDED = 1;
119
+ #
120
+ # // The changed object exists in the 'old' service configuration, but not
121
+ # // in the 'new' service configuration.
122
+ # REMOVED = 2;
123
+ #
124
+ # // The changed object exists in both service configurations, but its value
125
+ # // is different.
126
+ # MODIFIED = 3;
127
+ # }
@@ -1,26 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/consumer.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/consumer.proto", :syntax => :proto3) do
8
- add_message "google.api.ProjectProperties" do
9
- repeated :properties, :message, 1, "google.api.Property"
10
- end
11
- add_message "google.api.Property" do
12
- optional :name, :string, 1
13
- optional :type, :enum, 2, "google.api.Property.PropertyType"
14
- optional :description, :string, 3
15
- end
16
- add_enum "google.api.Property.PropertyType" do
17
- value :UNSPECIFIED, 0
18
- value :INT64, 1
19
- value :BOOL, 2
20
- value :STRING, 3
21
- value :DOUBLE, 4
7
+
8
+ descriptor_data = "\n\x19google/api/consumer.proto\x12\ngoogle.api\"=\n\x11ProjectProperties\x12(\n\nproperties\x18\x01 \x03(\x0b\x32\x14.google.api.Property\"\xac\x01\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04type\x18\x02 \x01(\x0e\x32!.google.api.Property.PropertyType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"L\n\x0cPropertyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05INT64\x10\x01\x12\x08\n\x04\x42OOL\x10\x02\x12\n\n\x06STRING\x10\x03\x12\n\n\x06\x44OUBLE\x10\x04\x42h\n\x0e\x63om.google.apiB\rConsumerProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
22
28
  end
23
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
24
32
  end
25
33
 
26
34
  module Google
@@ -30,3 +38,88 @@ module Google
30
38
  Property::PropertyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Property.PropertyType").enummodule
31
39
  end
32
40
  end
41
+
42
+ #### Source proto file: google/api/consumer.proto ####
43
+ #
44
+ # // Copyright 2016 Google LLC
45
+ # //
46
+ # // Licensed under the Apache License, Version 2.0 (the "License");
47
+ # // you may not use this file except in compliance with the License.
48
+ # // You may obtain a copy of the License at
49
+ # //
50
+ # // http://www.apache.org/licenses/LICENSE-2.0
51
+ # //
52
+ # // Unless required by applicable law or agreed to in writing, software
53
+ # // distributed under the License is distributed on an "AS IS" BASIS,
54
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
55
+ # // See the License for the specific language governing permissions and
56
+ # // limitations under the License.
57
+ #
58
+ # syntax = "proto3";
59
+ #
60
+ # package google.api;
61
+ #
62
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
63
+ # option java_multiple_files = true;
64
+ # option java_outer_classname = "ConsumerProto";
65
+ # option java_package = "com.google.api";
66
+ #
67
+ # // A descriptor for defining project properties for a service. One service may
68
+ # // have many consumer projects, and the service may want to behave differently
69
+ # // depending on some properties on the project. For example, a project may be
70
+ # // associated with a school, or a business, or a government agency, a business
71
+ # // type property on the project may affect how a service responds to the client.
72
+ # // This descriptor defines which properties are allowed to be set on a project.
73
+ # //
74
+ # // Example:
75
+ # //
76
+ # // project_properties:
77
+ # // properties:
78
+ # // - name: NO_WATERMARK
79
+ # // type: BOOL
80
+ # // description: Allows usage of the API without watermarks.
81
+ # // - name: EXTENDED_TILE_CACHE_PERIOD
82
+ # // type: INT64
83
+ # message ProjectProperties {
84
+ # // List of per consumer project-specific properties.
85
+ # repeated Property properties = 1;
86
+ # }
87
+ #
88
+ # // Defines project properties.
89
+ # //
90
+ # // API services can define properties that can be assigned to consumer projects
91
+ # // so that backends can perform response customization without having to make
92
+ # // additional calls or maintain additional storage. For example, Maps API
93
+ # // defines properties that controls map tile cache period, or whether to embed a
94
+ # // watermark in a result.
95
+ # //
96
+ # // These values can be set via API producer console. Only API providers can
97
+ # // define and set these properties.
98
+ # message Property {
99
+ # // Supported data type of the property values
100
+ # enum PropertyType {
101
+ # // The type is unspecified, and will result in an error.
102
+ # UNSPECIFIED = 0;
103
+ #
104
+ # // The type is `int64`.
105
+ # INT64 = 1;
106
+ #
107
+ # // The type is `bool`.
108
+ # BOOL = 2;
109
+ #
110
+ # // The type is `string`.
111
+ # STRING = 3;
112
+ #
113
+ # // The type is 'double'.
114
+ # DOUBLE = 4;
115
+ # }
116
+ #
117
+ # // The name of the property (a.k.a key).
118
+ # string name = 1;
119
+ #
120
+ # // The type of this property.
121
+ # PropertyType type = 2;
122
+ #
123
+ # // The description of the property
124
+ # string description = 3;
125
+ # }
@@ -1,21 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/context.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/context.proto", :syntax => :proto3) do
8
- add_message "google.api.Context" do
9
- repeated :rules, :message, 1, "google.api.ContextRule"
10
- end
11
- add_message "google.api.ContextRule" do
12
- optional :selector, :string, 1
13
- repeated :requested, :string, 2
14
- repeated :provided, :string, 3
15
- repeated :allowed_request_extensions, :string, 4
16
- repeated :allowed_response_extensions, :string, 5
7
+
8
+ descriptor_data = "\n\x18google/api/context.proto\x12\ngoogle.api\"1\n\x07\x43ontext\x12&\n\x05rules\x18\x01 \x03(\x0b\x32\x17.google.api.ContextRule\"\x8d\x01\n\x0b\x43ontextRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x11\n\trequested\x18\x02 \x03(\t\x12\x10\n\x08provided\x18\x03 \x03(\t\x12\"\n\x1a\x61llowed_request_extensions\x18\x04 \x03(\t\x12#\n\x1b\x61llowed_response_extensions\x18\x05 \x03(\tBn\n\x0e\x63om.google.apiB\x0c\x43ontextProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
28
  end
18
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
19
32
  end
20
33
 
21
34
  module Google
@@ -24,3 +37,96 @@ module Google
24
37
  ContextRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ContextRule").msgclass
25
38
  end
26
39
  end
40
+
41
+ #### Source proto file: google/api/context.proto ####
42
+ #
43
+ # // Copyright 2023 Google LLC
44
+ # //
45
+ # // Licensed under the Apache License, Version 2.0 (the "License");
46
+ # // you may not use this file except in compliance with the License.
47
+ # // You may obtain a copy of the License at
48
+ # //
49
+ # // http://www.apache.org/licenses/LICENSE-2.0
50
+ # //
51
+ # // Unless required by applicable law or agreed to in writing, software
52
+ # // distributed under the License is distributed on an "AS IS" BASIS,
53
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54
+ # // See the License for the specific language governing permissions and
55
+ # // limitations under the License.
56
+ #
57
+ # syntax = "proto3";
58
+ #
59
+ # package google.api;
60
+ #
61
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
62
+ # option java_multiple_files = true;
63
+ # option java_outer_classname = "ContextProto";
64
+ # option java_package = "com.google.api";
65
+ # option objc_class_prefix = "GAPI";
66
+ #
67
+ # // `Context` defines which contexts an API requests.
68
+ # //
69
+ # // Example:
70
+ # //
71
+ # // context:
72
+ # // rules:
73
+ # // - selector: "*"
74
+ # // requested:
75
+ # // - google.rpc.context.ProjectContext
76
+ # // - google.rpc.context.OriginContext
77
+ # //
78
+ # // The above specifies that all methods in the API request
79
+ # // `google.rpc.context.ProjectContext` and
80
+ # // `google.rpc.context.OriginContext`.
81
+ # //
82
+ # // Available context types are defined in package
83
+ # // `google.rpc.context`.
84
+ # //
85
+ # // This also provides mechanism to allowlist any protobuf message extension that
86
+ # // can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
87
+ # // “x-goog-ext-<extension_id>-jspb” format. For example, list any service
88
+ # // specific protobuf types that can appear in grpc metadata as follows in your
89
+ # // yaml file:
90
+ # //
91
+ # // Example:
92
+ # //
93
+ # // context:
94
+ # // rules:
95
+ # // - selector: "google.example.library.v1.LibraryService.CreateBook"
96
+ # // allowed_request_extensions:
97
+ # // - google.foo.v1.NewExtension
98
+ # // allowed_response_extensions:
99
+ # // - google.foo.v1.NewExtension
100
+ # //
101
+ # // You can also specify extension ID instead of fully qualified extension name
102
+ # // here.
103
+ # message Context {
104
+ # // A list of RPC context rules that apply to individual API methods.
105
+ # //
106
+ # // **NOTE:** All service configuration rules follow "last one wins" order.
107
+ # repeated ContextRule rules = 1;
108
+ # }
109
+ #
110
+ # // A context rule provides information about the context for an individual API
111
+ # // element.
112
+ # message ContextRule {
113
+ # // Selects the methods to which this rule applies.
114
+ # //
115
+ # // Refer to [selector][google.api.DocumentationRule.selector] for syntax
116
+ # // details.
117
+ # string selector = 1;
118
+ #
119
+ # // A list of full type names of requested contexts.
120
+ # repeated string requested = 2;
121
+ #
122
+ # // A list of full type names of provided contexts.
123
+ # repeated string provided = 3;
124
+ #
125
+ # // A list of full type names or extension IDs of extensions allowed in grpc
126
+ # // side channel from client to backend.
127
+ # repeated string allowed_request_extensions = 4;
128
+ #
129
+ # // A list of full type names or extension IDs of extensions allowed in grpc
130
+ # // side channel from backend to client.
131
+ # repeated string allowed_response_extensions = 5;
132
+ # }
@@ -1,14 +1,37 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/control.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/control.proto", :syntax => :proto3) do
8
- add_message "google.api.Control" do
9
- optional :environment, :string, 1
7
+ require 'google/api/policy_pb'
8
+
9
+
10
+ descriptor_data = "\n\x18google/api/control.proto\x12\ngoogle.api\x1a\x17google/api/policy.proto\"Q\n\x07\x43ontrol\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x31\n\x0fmethod_policies\x18\x04 \x03(\x0b\x32\x18.google.api.MethodPolicyBn\n\x0e\x63om.google.apiB\x0c\x43ontrolProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\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.MethodPolicy", "google/api/policy.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}"
10
31
  end
11
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."
12
35
  end
13
36
 
14
37
  module Google
@@ -16,3 +39,47 @@ module Google
16
39
  Control = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Control").msgclass
17
40
  end
18
41
  end
42
+
43
+ #### Source proto file: google/api/control.proto ####
44
+ #
45
+ # // Copyright 2023 Google LLC
46
+ # //
47
+ # // Licensed under the Apache License, Version 2.0 (the "License");
48
+ # // you may not use this file except in compliance with the License.
49
+ # // You may obtain a copy of the License at
50
+ # //
51
+ # // http://www.apache.org/licenses/LICENSE-2.0
52
+ # //
53
+ # // Unless required by applicable law or agreed to in writing, software
54
+ # // distributed under the License is distributed on an "AS IS" BASIS,
55
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
+ # // See the License for the specific language governing permissions and
57
+ # // limitations under the License.
58
+ #
59
+ # syntax = "proto3";
60
+ #
61
+ # package google.api;
62
+ #
63
+ # import "google/api/policy.proto";
64
+ #
65
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
66
+ # option java_multiple_files = true;
67
+ # option java_outer_classname = "ControlProto";
68
+ # option java_package = "com.google.api";
69
+ # option objc_class_prefix = "GAPI";
70
+ #
71
+ # // Selects and configures the service controller used by the service.
72
+ # //
73
+ # // Example:
74
+ # //
75
+ # // control:
76
+ # // environment: servicecontrol.googleapis.com
77
+ # message Control {
78
+ # // The service controller environment to use. If empty, no control plane
79
+ # // feature (like quota and billing) will be enabled. The recommended value for
80
+ # // most services is servicecontrol.googleapis.com
81
+ # string environment = 1;
82
+ #
83
+ # // Defines policies applying to the API methods of the service.
84
+ # repeated MethodPolicy method_policies = 4;
85
+ # }