googleapis-common-protos-types 1.5.0 → 1.17.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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +86 -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 -22
  6. data/lib/google/api/billing_pb.rb +104 -8
  7. data/lib/google/api/client_pb.rb +474 -77
  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 +119 -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 +96 -7
  15. data/lib/google/api/error_reason_pb.rb +616 -31
  16. data/lib/google/api/field_behavior_pb.rb +131 -11
  17. data/lib/google/api/field_info_pb.rb +151 -0
  18. data/lib/google/api/http_pb.rb +398 -23
  19. data/lib/google/api/httpbody_pb.rb +109 -6
  20. data/lib/google/api/label_pb.rb +75 -11
  21. data/lib/google/api/launch_stage_pb.rb +99 -11
  22. data/lib/google/api/log_pb.rb +82 -7
  23. data/lib/google/api/logging_pb.rb +108 -9
  24. data/lib/google/api/metric_pb.rb +297 -38
  25. data/lib/google/api/monitored_resource_pb.rb +159 -17
  26. data/lib/google/api/monitoring_pb.rb +134 -9
  27. data/lib/google/api/policy_pb.rb +129 -0
  28. data/lib/google/api/quota_pb.rb +211 -21
  29. data/lib/google/api/resource_pb.rb +270 -23
  30. data/lib/google/api/routing_pb.rb +488 -8
  31. data/lib/google/api/service_pb.rb +239 -29
  32. data/lib/google/api/source_info_pb.rb +59 -4
  33. data/lib/google/api/system_parameter_pb.rb +123 -13
  34. data/lib/google/api/usage_pb.rb +123 -11
  35. data/lib/google/api/visibility_pb.rb +140 -8
  36. data/lib/google/logging/type/http_request_pb.rb +123 -18
  37. data/lib/google/logging/type/log_severity_pb.rb +98 -12
  38. data/lib/google/longrunning/operations_pb.rb +277 -37
  39. data/lib/google/rpc/code_pb.rb +213 -20
  40. data/lib/google/rpc/context/attribute_context_pb.rb +402 -0
  41. data/lib/google/rpc/context/audit_context_pb.rb +95 -0
  42. data/lib/google/rpc/error_details_pb.rb +313 -56
  43. data/lib/google/rpc/http_pb.rb +91 -17
  44. data/lib/google/rpc/status_pb.rb +77 -6
  45. data/lib/google/type/calendar_period_pb.rb +83 -11
  46. data/lib/google/type/color_pb.rb +202 -7
  47. data/lib/google/type/date_pb.rb +79 -6
  48. data/lib/google/type/datetime_pb.rb +132 -18
  49. data/lib/google/type/dayofweek_pb.rb +77 -11
  50. data/lib/google/type/decimal_pb.rb +122 -4
  51. data/lib/google/type/expr_pb.rb +100 -7
  52. data/lib/google/type/fraction_pb.rb +60 -5
  53. data/lib/google/type/interval_pb.rb +74 -5
  54. data/lib/google/type/latlng_pb.rb +64 -5
  55. data/lib/google/type/localized_text_pb.rb +63 -5
  56. data/lib/google/type/money_pb.rb +69 -6
  57. data/lib/google/type/month_pb.rb +92 -16
  58. data/lib/google/type/phone_number_pb.rb +140 -12
  59. data/lib/google/type/postal_address_pb.rb +161 -14
  60. data/lib/google/type/quaternion_pb.rb +121 -7
  61. data/lib/google/type/timeofday_pb.rb +71 -7
  62. data/lib/googleapis/common/protos/types/version.rb +1 -1
  63. metadata +18 -8
@@ -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/field_behavior.proto
3
4
 
@@ -5,19 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/descriptor_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/api/field_behavior.proto", :syntax => :proto3) do
10
- add_enum "google.api.FieldBehavior" do
11
- value :FIELD_BEHAVIOR_UNSPECIFIED, 0
12
- value :OPTIONAL, 1
13
- value :REQUIRED, 2
14
- value :OUTPUT_ONLY, 3
15
- value :INPUT_ONLY, 4
16
- value :IMMUTABLE, 5
17
- value :UNORDERED_LIST, 6
18
- value :NON_EMPTY_DEFAULT, 7
9
+
10
+ descriptor_data = "\n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1a\x46IELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:U\n\x0e\x66ield_behavior\x12\x1d.google.protobuf.FieldOptions\x18\x9c\x08 \x03(\x0e\x32\x19.google.api.FieldBehaviorB\x02\x10\x00\x42p\n\x0e\x63om.google.apiB\x12\x46ieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\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
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
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
19
30
  end
20
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
21
34
  end
22
35
 
23
36
  module Google
@@ -25,3 +38,110 @@ module Google
25
38
  FieldBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldBehavior").enummodule
26
39
  end
27
40
  end
41
+
42
+ #### Source proto file: google/api/field_behavior.proto ####
43
+ #
44
+ # // Copyright 2024 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
+ # import "google/protobuf/descriptor.proto";
63
+ #
64
+ # option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
65
+ # option java_multiple_files = true;
66
+ # option java_outer_classname = "FieldBehaviorProto";
67
+ # option java_package = "com.google.api";
68
+ # option objc_class_prefix = "GAPI";
69
+ #
70
+ # extend google.protobuf.FieldOptions {
71
+ # // A designation of a specific field behavior (required, output only, etc.)
72
+ # // in protobuf messages.
73
+ # //
74
+ # // Examples:
75
+ # //
76
+ # // string name = 1 [(google.api.field_behavior) = REQUIRED];
77
+ # // State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
78
+ # // google.protobuf.Duration ttl = 1
79
+ # // [(google.api.field_behavior) = INPUT_ONLY];
80
+ # // google.protobuf.Timestamp expire_time = 1
81
+ # // [(google.api.field_behavior) = OUTPUT_ONLY,
82
+ # // (google.api.field_behavior) = IMMUTABLE];
83
+ # repeated google.api.FieldBehavior field_behavior = 1052 [packed = false];
84
+ # }
85
+ #
86
+ # // An indicator of the behavior of a given field (for example, that a field
87
+ # // is required in requests, or given as output but ignored as input).
88
+ # // This **does not** change the behavior in protocol buffers itself; it only
89
+ # // denotes the behavior and may affect how API tooling handles the field.
90
+ # //
91
+ # // Note: This enum **may** receive new values in the future.
92
+ # enum FieldBehavior {
93
+ # // Conventional default for enums. Do not use this.
94
+ # FIELD_BEHAVIOR_UNSPECIFIED = 0;
95
+ #
96
+ # // Specifically denotes a field as optional.
97
+ # // While all fields in protocol buffers are optional, this may be specified
98
+ # // for emphasis if appropriate.
99
+ # OPTIONAL = 1;
100
+ #
101
+ # // Denotes a field as required.
102
+ # // This indicates that the field **must** be provided as part of the request,
103
+ # // and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
104
+ # REQUIRED = 2;
105
+ #
106
+ # // Denotes a field as output only.
107
+ # // This indicates that the field is provided in responses, but including the
108
+ # // field in a request does nothing (the server *must* ignore it and
109
+ # // *must not* throw an error as a result of the field's presence).
110
+ # OUTPUT_ONLY = 3;
111
+ #
112
+ # // Denotes a field as input only.
113
+ # // This indicates that the field is provided in requests, and the
114
+ # // corresponding field is not included in output.
115
+ # INPUT_ONLY = 4;
116
+ #
117
+ # // Denotes a field as immutable.
118
+ # // This indicates that the field may be set once in a request to create a
119
+ # // resource, but may not be changed thereafter.
120
+ # IMMUTABLE = 5;
121
+ #
122
+ # // Denotes that a (repeated) field is an unordered list.
123
+ # // This indicates that the service may provide the elements of the list
124
+ # // in any arbitrary order, rather than the order the user originally
125
+ # // provided. Additionally, the list's order may or may not be stable.
126
+ # UNORDERED_LIST = 6;
127
+ #
128
+ # // Denotes that this field returns a non-empty default value if not set.
129
+ # // This indicates that if the user provides the empty value in a request,
130
+ # // a non-empty value will be returned. The user will not be aware of what
131
+ # // non-empty value to expect.
132
+ # NON_EMPTY_DEFAULT = 7;
133
+ #
134
+ # // Denotes that the field in a resource (a message annotated with
135
+ # // google.api.resource) is used in the resource name to uniquely identify the
136
+ # // resource. For AIP-compliant APIs, this should only be applied to the
137
+ # // `name` field on the resource.
138
+ # //
139
+ # // This behavior should not be applied to references to other resources within
140
+ # // the message.
141
+ # //
142
+ # // The identifier field of resources often have different field behavior
143
+ # // depending on the request it is embedded in (e.g. for Create methods name
144
+ # // is optional and unused, while for Update methods it is required). Instead
145
+ # // of method-specific annotations, only `IDENTIFIER` is required.
146
+ # IDENTIFIER = 8;
147
+ # }
@@ -0,0 +1,151 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/api/field_info.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/descriptor_pb'
8
+
9
+
10
+ descriptor_data = "\n\x1bgoogle/api/field_info.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto\"\xc1\x01\n\tFieldInfo\x12,\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x1c.google.api.FieldInfo.Format\x12\x33\n\x10referenced_types\x18\x02 \x03(\x0b\x32\x19.google.api.TypeReference\"Q\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05UUID4\x10\x01\x12\x08\n\x04IPV4\x10\x02\x12\x08\n\x04IPV6\x10\x03\x12\x10\n\x0cIPV4_OR_IPV6\x10\x04\"\"\n\rTypeReference\x12\x11\n\ttype_name\x18\x01 \x01(\t:L\n\nfield_info\x12\x1d.google.protobuf.FieldOptions\x18\xcc\xf1\xf9\x8a\x01 \x01(\x0b\x32\x15.google.api.FieldInfoBl\n\x0e\x63om.google.apiB\x0e\x46ieldInfoProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\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
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
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
35
+
36
+ module Google
37
+ module Api
38
+ FieldInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldInfo").msgclass
39
+ FieldInfo::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldInfo.Format").enummodule
40
+ TypeReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.TypeReference").msgclass
41
+ end
42
+ end
43
+
44
+ #### Source proto file: google/api/field_info.proto ####
45
+ #
46
+ # // Copyright 2024 Google LLC
47
+ # //
48
+ # // Licensed under the Apache License, Version 2.0 (the "License");
49
+ # // you may not use this file except in compliance with the License.
50
+ # // You may obtain a copy of the License at
51
+ # //
52
+ # // http://www.apache.org/licenses/LICENSE-2.0
53
+ # //
54
+ # // Unless required by applicable law or agreed to in writing, software
55
+ # // distributed under the License is distributed on an "AS IS" BASIS,
56
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
57
+ # // See the License for the specific language governing permissions and
58
+ # // limitations under the License.
59
+ #
60
+ # syntax = "proto3";
61
+ #
62
+ # package google.api;
63
+ #
64
+ # import "google/protobuf/descriptor.proto";
65
+ #
66
+ # option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
67
+ # option java_multiple_files = true;
68
+ # option java_outer_classname = "FieldInfoProto";
69
+ # option java_package = "com.google.api";
70
+ # option objc_class_prefix = "GAPI";
71
+ #
72
+ # extend google.protobuf.FieldOptions {
73
+ # // Rich semantic descriptor of an API field beyond the basic typing.
74
+ # //
75
+ # // Examples:
76
+ # //
77
+ # // string request_id = 1 [(google.api.field_info).format = UUID4];
78
+ # // string old_ip_address = 2 [(google.api.field_info).format = IPV4];
79
+ # // string new_ip_address = 3 [(google.api.field_info).format = IPV6];
80
+ # // string actual_ip_address = 4 [
81
+ # // (google.api.field_info).format = IPV4_OR_IPV6
82
+ # // ];
83
+ # // google.protobuf.Any generic_field = 5 [
84
+ # // (google.api.field_info).referenced_types = {type_name: "ActualType"},
85
+ # // (google.api.field_info).referenced_types = {type_name: "OtherType"},
86
+ # // ];
87
+ # // google.protobuf.Any generic_user_input = 5 [
88
+ # // (google.api.field_info).referenced_types = {type_name: "*"},
89
+ # // ];
90
+ # google.api.FieldInfo field_info = 291403980;
91
+ # }
92
+ #
93
+ # // Rich semantic information of an API field beyond basic typing.
94
+ # message FieldInfo {
95
+ # // The standard format of a field value. The supported formats are all backed
96
+ # // by either an RFC defined by the IETF or a Google-defined AIP.
97
+ # enum Format {
98
+ # // Default, unspecified value.
99
+ # FORMAT_UNSPECIFIED = 0;
100
+ #
101
+ # // Universally Unique Identifier, version 4, value as defined by
102
+ # // https://datatracker.ietf.org/doc/html/rfc4122. The value may be
103
+ # // normalized to entirely lowercase letters. For example, the value
104
+ # // `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
105
+ # // `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
106
+ # UUID4 = 1;
107
+ #
108
+ # // Internet Protocol v4 value as defined by [RFC
109
+ # // 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
110
+ # // condensed, with leading zeros in each octet stripped. For example,
111
+ # // `001.022.233.040` would be condensed to `1.22.233.40`.
112
+ # IPV4 = 2;
113
+ #
114
+ # // Internet Protocol v6 value as defined by [RFC
115
+ # // 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
116
+ # // normalized to entirely lowercase letters with zeros compressed, following
117
+ # // [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example,
118
+ # // the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
119
+ # IPV6 = 3;
120
+ #
121
+ # // An IP address in either v4 or v6 format as described by the individual
122
+ # // values defined herein. See the comments on the IPV4 and IPV6 types for
123
+ # // allowed normalizations of each.
124
+ # IPV4_OR_IPV6 = 4;
125
+ # }
126
+ #
127
+ # // The standard format of a field value. This does not explicitly configure
128
+ # // any API consumer, just documents the API's format for the field it is
129
+ # // applied to.
130
+ # Format format = 1;
131
+ #
132
+ # // The type(s) that the annotated, generic field may represent.
133
+ # //
134
+ # // Currently, this must only be used on fields of type `google.protobuf.Any`.
135
+ # // Supporting other generic types may be considered in the future.
136
+ # repeated TypeReference referenced_types = 2;
137
+ # }
138
+ #
139
+ # // A reference to a message type, for use in [FieldInfo][google.api.FieldInfo].
140
+ # message TypeReference {
141
+ # // The name of the type that the annotated, generic field may represent.
142
+ # // If the type is in the same protobuf package, the value can be the simple
143
+ # // message name e.g., `"MyMessage"`. Otherwise, the value must be the
144
+ # // fully-qualified message name e.g., `"google.library.v1.Book"`.
145
+ # //
146
+ # // If the type(s) are unknown to the service (e.g. the field accepts generic
147
+ # // user input), use the wildcard `"*"` to denote this behavior.
148
+ # //
149
+ # // See [AIP-202](https://google.aip.dev/202#type-references) for more details.
150
+ # string type_name = 1;
151
+ # }