googleapis-common-protos-types 1.0.2 → 1.18.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 (64) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +173 -0
  3. data/README.md +19 -0
  4. data/lib/google/api/annotations_pb.rb +63 -1
  5. data/lib/google/api/auth_pb.rb +271 -30
  6. data/lib/google/api/backend_pb.rb +216 -11
  7. data/lib/google/api/billing_pb.rb +107 -11
  8. data/lib/google/api/client_pb.rb +534 -0
  9. data/lib/google/api/config_change_pb.rb +115 -19
  10. data/lib/google/api/consumer_pb.rb +113 -18
  11. data/lib/google/api/context_pb.rb +122 -10
  12. data/lib/google/api/control_pb.rb +73 -4
  13. data/lib/google/api/distribution_pb.rb +250 -38
  14. data/lib/google/api/documentation_pb.rb +199 -20
  15. data/lib/google/api/endpoint_pb.rb +98 -9
  16. data/lib/google/api/error_reason_pb.rb +663 -0
  17. data/lib/google/api/field_behavior_pb.rb +147 -0
  18. data/lib/google/api/field_info_pb.rb +151 -0
  19. data/lib/google/api/http_pb.rb +401 -23
  20. data/lib/google/api/httpbody_pb.rb +111 -6
  21. data/lib/google/api/label_pb.rb +78 -12
  22. data/lib/google/api/launch_stage_pb.rb +113 -0
  23. data/lib/google/api/log_pb.rb +85 -7
  24. data/lib/google/api/logging_pb.rb +111 -11
  25. data/lib/google/api/metric_pb.rb +326 -33
  26. data/lib/google/api/monitored_resource_pb.rb +165 -18
  27. data/lib/google/api/monitoring_pb.rb +137 -11
  28. data/lib/google/api/policy_pb.rb +127 -0
  29. data/lib/google/api/quota_pb.rb +215 -24
  30. data/lib/google/api/resource_pb.rb +289 -0
  31. data/lib/google/api/routing_pb.rb +505 -0
  32. data/lib/google/api/service_pb.rb +243 -33
  33. data/lib/google/api/source_info_pb.rb +62 -4
  34. data/lib/google/api/system_parameter_pb.rb +127 -15
  35. data/lib/google/api/usage_pb.rb +126 -13
  36. data/lib/google/api/visibility_pb.rb +157 -0
  37. data/lib/google/logging/type/http_request_pb.rb +136 -19
  38. data/lib/google/logging/type/log_severity_pb.rb +110 -13
  39. data/lib/google/longrunning/operations_pb.rb +288 -33
  40. data/lib/google/rpc/code_pb.rb +215 -20
  41. data/lib/google/rpc/context/attribute_context_pb.rb +403 -0
  42. data/lib/google/rpc/context/audit_context_pb.rb +94 -0
  43. data/lib/google/rpc/error_details_pb.rb +342 -63
  44. data/lib/google/rpc/http_pb.rb +107 -0
  45. data/lib/google/rpc/status_pb.rb +80 -6
  46. data/lib/google/type/calendar_period_pb.rb +97 -0
  47. data/lib/google/type/color_pb.rb +205 -7
  48. data/lib/google/type/date_pb.rb +81 -6
  49. data/lib/google/type/datetime_pb.rb +149 -0
  50. data/lib/google/type/dayofweek_pb.rb +79 -11
  51. data/lib/google/type/decimal_pb.rb +136 -0
  52. data/lib/google/type/expr_pb.rb +114 -0
  53. data/lib/google/type/fraction_pb.rb +74 -0
  54. data/lib/google/type/interval_pb.rb +90 -0
  55. data/lib/google/type/latlng_pb.rb +66 -5
  56. data/lib/google/type/localized_text_pb.rb +77 -0
  57. data/lib/google/type/money_pb.rb +71 -6
  58. data/lib/google/type/month_pb.rb +106 -0
  59. data/lib/google/type/phone_number_pb.rb +155 -0
  60. data/lib/google/type/postal_address_pb.rb +163 -14
  61. data/lib/google/type/quaternion_pb.rb +135 -0
  62. data/lib/google/type/timeofday_pb.rb +73 -7
  63. data/lib/googleapis/common/protos/types/version.rb +23 -0
  64. metadata +43 -43
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/type/month.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x17google/type/month.proto\x12\x0bgoogle.type*\xb0\x01\n\x05Month\x12\x15\n\x11MONTH_UNSPECIFIED\x10\x00\x12\x0b\n\x07JANUARY\x10\x01\x12\x0c\n\x08\x46\x45\x42RUARY\x10\x02\x12\t\n\x05MARCH\x10\x03\x12\t\n\x05\x41PRIL\x10\x04\x12\x07\n\x03MAY\x10\x05\x12\x08\n\x04JUNE\x10\x06\x12\x08\n\x04JULY\x10\x07\x12\n\n\x06\x41UGUST\x10\x08\x12\r\n\tSEPTEMBER\x10\t\x12\x0b\n\x07OCTOBER\x10\n\x12\x0c\n\x08NOVEMBER\x10\x0b\x12\x0c\n\x08\x44\x45\x43\x45MBER\x10\x0c\x42]\n\x0f\x63om.google.typeB\nMonthProtoP\x01Z6google.golang.org/genproto/googleapis/type/month;month\xa2\x02\x03GTPb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
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}"
28
+ end
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."
32
+ end
33
+
34
+ module Google
35
+ module Type
36
+ Month = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Month").enummodule
37
+ end
38
+ end
39
+
40
+ #### Source proto file: google/type/month.proto ####
41
+ #
42
+ # // Copyright 2024 Google LLC
43
+ # //
44
+ # // Licensed under the Apache License, Version 2.0 (the "License");
45
+ # // you may not use this file except in compliance with the License.
46
+ # // You may obtain a copy of the License at
47
+ # //
48
+ # // http://www.apache.org/licenses/LICENSE-2.0
49
+ # //
50
+ # // Unless required by applicable law or agreed to in writing, software
51
+ # // distributed under the License is distributed on an "AS IS" BASIS,
52
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ # // See the License for the specific language governing permissions and
54
+ # // limitations under the License.
55
+ #
56
+ # syntax = "proto3";
57
+ #
58
+ # package google.type;
59
+ #
60
+ # option go_package = "google.golang.org/genproto/googleapis/type/month;month";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "MonthProto";
63
+ # option java_package = "com.google.type";
64
+ # option objc_class_prefix = "GTP";
65
+ #
66
+ # // Represents a month in the Gregorian calendar.
67
+ # enum Month {
68
+ # // The unspecified month.
69
+ # MONTH_UNSPECIFIED = 0;
70
+ #
71
+ # // The month of January.
72
+ # JANUARY = 1;
73
+ #
74
+ # // The month of February.
75
+ # FEBRUARY = 2;
76
+ #
77
+ # // The month of March.
78
+ # MARCH = 3;
79
+ #
80
+ # // The month of April.
81
+ # APRIL = 4;
82
+ #
83
+ # // The month of May.
84
+ # MAY = 5;
85
+ #
86
+ # // The month of June.
87
+ # JUNE = 6;
88
+ #
89
+ # // The month of July.
90
+ # JULY = 7;
91
+ #
92
+ # // The month of August.
93
+ # AUGUST = 8;
94
+ #
95
+ # // The month of September.
96
+ # SEPTEMBER = 9;
97
+ #
98
+ # // The month of October.
99
+ # OCTOBER = 10;
100
+ #
101
+ # // The month of November.
102
+ # NOVEMBER = 11;
103
+ #
104
+ # // The month of December.
105
+ # DECEMBER = 12;
106
+ # }
@@ -0,0 +1,155 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/type/phone_number.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x1egoogle/type/phone_number.proto\x12\x0bgoogle.type\"\xab\x01\n\x0bPhoneNumber\x12\x15\n\x0b\x65\x31\x36\x34_number\x18\x01 \x01(\tH\x00\x12\x38\n\nshort_code\x18\x02 \x01(\x0b\x32\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\n\textension\x18\x03 \x01(\t\x1a\x30\n\tShortCode\x12\x13\n\x0bregion_code\x18\x01 \x01(\t\x12\x0e\n\x06number\x18\x02 \x01(\tB\x06\n\x04kindBt\n\x0f\x63om.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
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}"
28
+ end
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."
32
+ end
33
+
34
+ module Google
35
+ module Type
36
+ PhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.PhoneNumber").msgclass
37
+ PhoneNumber::ShortCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.PhoneNumber.ShortCode").msgclass
38
+ end
39
+ end
40
+
41
+ #### Source proto file: google/type/phone_number.proto ####
42
+ #
43
+ # // Copyright 2024 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.type;
60
+ #
61
+ # option cc_enable_arenas = true;
62
+ # option go_package = "google.golang.org/genproto/googleapis/type/phone_number;phone_number";
63
+ # option java_multiple_files = true;
64
+ # option java_outer_classname = "PhoneNumberProto";
65
+ # option java_package = "com.google.type";
66
+ # option objc_class_prefix = "GTP";
67
+ #
68
+ # // An object representing a phone number, suitable as an API wire format.
69
+ # //
70
+ # // This representation:
71
+ # //
72
+ # // - should not be used for locale-specific formatting of a phone number, such
73
+ # // as "+1 (650) 253-0000 ext. 123"
74
+ # //
75
+ # // - is not designed for efficient storage
76
+ # // - may not be suitable for dialing - specialized libraries (see references)
77
+ # // should be used to parse the number for that purpose
78
+ # //
79
+ # // To do something meaningful with this number, such as format it for various
80
+ # // use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first.
81
+ # //
82
+ # // For instance, in Java this would be:
83
+ # //
84
+ # // com.google.type.PhoneNumber wireProto =
85
+ # // com.google.type.PhoneNumber.newBuilder().build();
86
+ # // com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
87
+ # // PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ");
88
+ # // if (!wireProto.getExtension().isEmpty()) {
89
+ # // phoneNumber.setExtension(wireProto.getExtension());
90
+ # // }
91
+ # //
92
+ # // Reference(s):
93
+ # // - https://github.com/google/libphonenumber
94
+ # message PhoneNumber {
95
+ # // An object representing a short code, which is a phone number that is
96
+ # // typically much shorter than regular phone numbers and can be used to
97
+ # // address messages in MMS and SMS systems, as well as for abbreviated dialing
98
+ # // (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
99
+ # //
100
+ # // Short codes are restricted to a region and are not internationally
101
+ # // dialable, which means the same short code can exist in different regions,
102
+ # // with different usage and pricing, even if those regions share the same
103
+ # // country calling code (e.g. US and CA).
104
+ # message ShortCode {
105
+ # // Required. The BCP-47 region code of the location where calls to this
106
+ # // short code can be made, such as "US" and "BB".
107
+ # //
108
+ # // Reference(s):
109
+ # // - http://www.unicode.org/reports/tr35/#unicode_region_subtag
110
+ # string region_code = 1;
111
+ #
112
+ # // Required. The short code digits, without a leading plus ('+') or country
113
+ # // calling code, e.g. "611".
114
+ # string number = 2;
115
+ # }
116
+ #
117
+ # // Required. Either a regular number, or a short code. New fields may be
118
+ # // added to the oneof below in the future, so clients should ignore phone
119
+ # // numbers for which none of the fields they coded against are set.
120
+ # oneof kind {
121
+ # // The phone number, represented as a leading plus sign ('+'), followed by a
122
+ # // phone number that uses a relaxed ITU E.164 format consisting of the
123
+ # // country calling code (1 to 3 digits) and the subscriber number, with no
124
+ # // additional spaces or formatting, e.g.:
125
+ # // - correct: "+15552220123"
126
+ # // - incorrect: "+1 (555) 222-01234 x123".
127
+ # //
128
+ # // The ITU E.164 format limits the latter to 12 digits, but in practice not
129
+ # // all countries respect that, so we relax that restriction here.
130
+ # // National-only numbers are not allowed.
131
+ # //
132
+ # // References:
133
+ # // - https://www.itu.int/rec/T-REC-E.164-201011-I
134
+ # // - https://en.wikipedia.org/wiki/E.164.
135
+ # // - https://en.wikipedia.org/wiki/List_of_country_calling_codes
136
+ # string e164_number = 1;
137
+ #
138
+ # // A short code.
139
+ # //
140
+ # // Reference(s):
141
+ # // - https://en.wikipedia.org/wiki/Short_code
142
+ # ShortCode short_code = 2;
143
+ # }
144
+ #
145
+ # // The phone number's extension. The extension is not standardized in ITU
146
+ # // recommendations, except for being defined as a series of numbers with a
147
+ # // maximum length of 40 digits. Other than digits, some other dialing
148
+ # // characters such as ',' (indicating a wait) or '#' may be stored here.
149
+ # //
150
+ # // Note that no regions currently use extensions with short codes, so this
151
+ # // field is normally only set in conjunction with an E.164 number. It is held
152
+ # // separately from the E.164 number to allow for short code extensions in the
153
+ # // future.
154
+ # string extension = 3;
155
+ # }
@@ -1,26 +1,175 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/type/postal_address.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.type.PostalAddress" do
8
- optional :revision, :int32, 1
9
- optional :region_code, :string, 2
10
- optional :language_code, :string, 3
11
- optional :postal_code, :string, 4
12
- optional :sorting_code, :string, 5
13
- optional :administrative_area, :string, 6
14
- optional :locality, :string, 7
15
- optional :sublocality, :string, 8
16
- repeated :address_lines, :string, 9
17
- repeated :recipients, :string, 10
18
- optional :organization, :string, 11
7
+
8
+ descriptor_data = "\n google/type/postal_address.proto\x12\x0bgoogle.type\"\xfd\x01\n\rPostalAddress\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x13\n\x0bpostal_code\x18\x04 \x01(\t\x12\x14\n\x0csorting_code\x18\x05 \x01(\t\x12\x1b\n\x13\x61\x64ministrative_area\x18\x06 \x01(\t\x12\x10\n\x08locality\x18\x07 \x01(\t\x12\x13\n\x0bsublocality\x18\x08 \x01(\t\x12\x15\n\raddress_lines\x18\t \x03(\t\x12\x12\n\nrecipients\x18\n \x03(\t\x12\x14\n\x0corganization\x18\x0b \x01(\tBx\n\x0f\x63om.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
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}"
28
+ end
19
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."
20
32
  end
21
33
 
22
34
  module Google
23
35
  module Type
24
- PostalAddress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.PostalAddress").msgclass
36
+ PostalAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.PostalAddress").msgclass
25
37
  end
26
38
  end
39
+
40
+ #### Source proto file: google/type/postal_address.proto ####
41
+ #
42
+ # // Copyright 2024 Google LLC
43
+ # //
44
+ # // Licensed under the Apache License, Version 2.0 (the "License");
45
+ # // you may not use this file except in compliance with the License.
46
+ # // You may obtain a copy of the License at
47
+ # //
48
+ # // http://www.apache.org/licenses/LICENSE-2.0
49
+ # //
50
+ # // Unless required by applicable law or agreed to in writing, software
51
+ # // distributed under the License is distributed on an "AS IS" BASIS,
52
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ # // See the License for the specific language governing permissions and
54
+ # // limitations under the License.
55
+ #
56
+ # syntax = "proto3";
57
+ #
58
+ # package google.type;
59
+ #
60
+ # option cc_enable_arenas = true;
61
+ # option go_package = "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress";
62
+ # option java_multiple_files = true;
63
+ # option java_outer_classname = "PostalAddressProto";
64
+ # option java_package = "com.google.type";
65
+ # option objc_class_prefix = "GTP";
66
+ #
67
+ # // Represents a postal address, e.g. for postal delivery or payments addresses.
68
+ # // Given a postal address, a postal service can deliver items to a premise, P.O.
69
+ # // Box or similar.
70
+ # // It is not intended to model geographical locations (roads, towns,
71
+ # // mountains).
72
+ # //
73
+ # // In typical usage an address would be created via user input or from importing
74
+ # // existing data, depending on the type of process.
75
+ # //
76
+ # // Advice on address input / editing:
77
+ # // - Use an i18n-ready address widget such as
78
+ # // https://github.com/google/libaddressinput)
79
+ # // - Users should not be presented with UI elements for input or editing of
80
+ # // fields outside countries where that field is used.
81
+ # //
82
+ # // For more guidance on how to use this schema, please see:
83
+ # // https://support.google.com/business/answer/6397478
84
+ # message PostalAddress {
85
+ # // The schema revision of the `PostalAddress`. This must be set to 0, which is
86
+ # // the latest revision.
87
+ # //
88
+ # // All new revisions **must** be backward compatible with old revisions.
89
+ # int32 revision = 1;
90
+ #
91
+ # // Required. CLDR region code of the country/region of the address. This
92
+ # // is never inferred and it is up to the user to ensure the value is
93
+ # // correct. See http://cldr.unicode.org/ and
94
+ # // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
95
+ # // for details. Example: "CH" for Switzerland.
96
+ # string region_code = 2;
97
+ #
98
+ # // Optional. BCP-47 language code of the contents of this address (if
99
+ # // known). This is often the UI language of the input form or is expected
100
+ # // to match one of the languages used in the address' country/region, or their
101
+ # // transliterated equivalents.
102
+ # // This can affect formatting in certain countries, but is not critical
103
+ # // to the correctness of the data and will never affect any validation or
104
+ # // other non-formatting related operations.
105
+ # //
106
+ # // If this value is not known, it should be omitted (rather than specifying a
107
+ # // possibly incorrect default).
108
+ # //
109
+ # // Examples: "zh-Hant", "ja", "ja-Latn", "en".
110
+ # string language_code = 3;
111
+ #
112
+ # // Optional. Postal code of the address. Not all countries use or require
113
+ # // postal codes to be present, but where they are used, they may trigger
114
+ # // additional validation with other parts of the address (e.g. state/zip
115
+ # // validation in the U.S.A.).
116
+ # string postal_code = 4;
117
+ #
118
+ # // Optional. Additional, country-specific, sorting code. This is not used
119
+ # // in most regions. Where it is used, the value is either a string like
120
+ # // "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
121
+ # // alone, representing the "sector code" (Jamaica), "delivery area indicator"
122
+ # // (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
123
+ # string sorting_code = 5;
124
+ #
125
+ # // Optional. Highest administrative subdivision which is used for postal
126
+ # // addresses of a country or region.
127
+ # // For example, this can be a state, a province, an oblast, or a prefecture.
128
+ # // Specifically, for Spain this is the province and not the autonomous
129
+ # // community (e.g. "Barcelona" and not "Catalonia").
130
+ # // Many countries don't use an administrative area in postal addresses. E.g.
131
+ # // in Switzerland this should be left unpopulated.
132
+ # string administrative_area = 6;
133
+ #
134
+ # // Optional. Generally refers to the city/town portion of the address.
135
+ # // Examples: US city, IT comune, UK post town.
136
+ # // In regions of the world where localities are not well defined or do not fit
137
+ # // into this structure well, leave locality empty and use address_lines.
138
+ # string locality = 7;
139
+ #
140
+ # // Optional. Sublocality of the address.
141
+ # // For example, this can be neighborhoods, boroughs, districts.
142
+ # string sublocality = 8;
143
+ #
144
+ # // Unstructured address lines describing the lower levels of an address.
145
+ # //
146
+ # // Because values in address_lines do not have type information and may
147
+ # // sometimes contain multiple values in a single field (e.g.
148
+ # // "Austin, TX"), it is important that the line order is clear. The order of
149
+ # // address lines should be "envelope order" for the country/region of the
150
+ # // address. In places where this can vary (e.g. Japan), address_language is
151
+ # // used to make it explicit (e.g. "ja" for large-to-small ordering and
152
+ # // "ja-Latn" or "en" for small-to-large). This way, the most specific line of
153
+ # // an address can be selected based on the language.
154
+ # //
155
+ # // The minimum permitted structural representation of an address consists
156
+ # // of a region_code with all remaining information placed in the
157
+ # // address_lines. It would be possible to format such an address very
158
+ # // approximately without geocoding, but no semantic reasoning could be
159
+ # // made about any of the address components until it was at least
160
+ # // partially resolved.
161
+ # //
162
+ # // Creating an address only containing a region_code and address_lines, and
163
+ # // then geocoding is the recommended way to handle completely unstructured
164
+ # // addresses (as opposed to guessing which parts of the address should be
165
+ # // localities or administrative areas).
166
+ # repeated string address_lines = 9;
167
+ #
168
+ # // Optional. The recipient at the address.
169
+ # // This field may, under certain circumstances, contain multiline information.
170
+ # // For example, it might contain "care of" information.
171
+ # repeated string recipients = 10;
172
+ #
173
+ # // Optional. The name of the organization at the address.
174
+ # string organization = 11;
175
+ # }
@@ -0,0 +1,135 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/type/quaternion.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x1cgoogle/type/quaternion.proto\x12\x0bgoogle.type\"8\n\nQuaternion\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\t\n\x01z\x18\x03 \x01(\x01\x12\t\n\x01w\x18\x04 \x01(\x01\x42o\n\x0f\x63om.google.typeB\x0fQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
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}"
28
+ end
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."
32
+ end
33
+
34
+ module Google
35
+ module Type
36
+ Quaternion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Quaternion").msgclass
37
+ end
38
+ end
39
+
40
+ #### Source proto file: google/type/quaternion.proto ####
41
+ #
42
+ # // Copyright 2024 Google LLC
43
+ # //
44
+ # // Licensed under the Apache License, Version 2.0 (the "License");
45
+ # // you may not use this file except in compliance with the License.
46
+ # // You may obtain a copy of the License at
47
+ # //
48
+ # // http://www.apache.org/licenses/LICENSE-2.0
49
+ # //
50
+ # // Unless required by applicable law or agreed to in writing, software
51
+ # // distributed under the License is distributed on an "AS IS" BASIS,
52
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ # // See the License for the specific language governing permissions and
54
+ # // limitations under the License.
55
+ #
56
+ # syntax = "proto3";
57
+ #
58
+ # package google.type;
59
+ #
60
+ # option cc_enable_arenas = true;
61
+ # option go_package = "google.golang.org/genproto/googleapis/type/quaternion;quaternion";
62
+ # option java_multiple_files = true;
63
+ # option java_outer_classname = "QuaternionProto";
64
+ # option java_package = "com.google.type";
65
+ # option objc_class_prefix = "GTP";
66
+ #
67
+ # // A quaternion is defined as the quotient of two directed lines in a
68
+ # // three-dimensional space or equivalently as the quotient of two Euclidean
69
+ # // vectors (https://en.wikipedia.org/wiki/Quaternion).
70
+ # //
71
+ # // Quaternions are often used in calculations involving three-dimensional
72
+ # // rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation),
73
+ # // as they provide greater mathematical robustness by avoiding the gimbal lock
74
+ # // problems that can be encountered when using Euler angles
75
+ # // (https://en.wikipedia.org/wiki/Gimbal_lock).
76
+ # //
77
+ # // Quaternions are generally represented in this form:
78
+ # //
79
+ # // w + xi + yj + zk
80
+ # //
81
+ # // where x, y, z, and w are real numbers, and i, j, and k are three imaginary
82
+ # // numbers.
83
+ # //
84
+ # // Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
85
+ # // those interested in the geometric properties of the quaternion in the 3D
86
+ # // Cartesian space. Other texts often use alternative names or subscripts, such
87
+ # // as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
88
+ # // better suited for mathematical interpretations.
89
+ # //
90
+ # // To avoid any confusion, as well as to maintain compatibility with a large
91
+ # // number of software libraries, the quaternions represented using the protocol
92
+ # // buffer below *must* follow the Hamilton convention, which defines `ij = k`
93
+ # // (i.e. a right-handed algebra), and therefore:
94
+ # //
95
+ # // i^2 = j^2 = k^2 = ijk = −1
96
+ # // ij = −ji = k
97
+ # // jk = −kj = i
98
+ # // ki = −ik = j
99
+ # //
100
+ # // Please DO NOT use this to represent quaternions that follow the JPL
101
+ # // convention, or any of the other quaternion flavors out there.
102
+ # //
103
+ # // Definitions:
104
+ # //
105
+ # // - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
106
+ # // - Unit (or normalized) quaternion: a quaternion whose norm is 1.
107
+ # // - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
108
+ # // - Rotation quaternion: a unit quaternion used to represent rotation.
109
+ # // - Orientation quaternion: a unit quaternion used to represent orientation.
110
+ # //
111
+ # // A quaternion can be normalized by dividing it by its norm. The resulting
112
+ # // quaternion maintains the same direction, but has a norm of 1, i.e. it moves
113
+ # // on the unit sphere. This is generally necessary for rotation and orientation
114
+ # // quaternions, to avoid rounding errors:
115
+ # // https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
116
+ # //
117
+ # // Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
118
+ # // but normalization would be even more useful, e.g. for comparison purposes, if
119
+ # // it would produce a unique representation. It is thus recommended that `w` be
120
+ # // kept positive, which can be achieved by changing all the signs when `w` is
121
+ # // negative.
122
+ # //
123
+ # message Quaternion {
124
+ # // The x component.
125
+ # double x = 1;
126
+ #
127
+ # // The y component.
128
+ # double y = 2;
129
+ #
130
+ # // The z component.
131
+ # double z = 3;
132
+ #
133
+ # // The scalar component.
134
+ # double w = 4;
135
+ # }