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,21 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/type/dayofweek.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/type/dayofweek.proto", :syntax => :proto3) do
8
- add_enum "google.type.DayOfWeek" do
9
- value :DAY_OF_WEEK_UNSPECIFIED, 0
10
- value :MONDAY, 1
11
- value :TUESDAY, 2
12
- value :WEDNESDAY, 3
13
- value :THURSDAY, 4
14
- value :FRIDAY, 5
15
- value :SATURDAY, 6
16
- value :SUNDAY, 7
7
+
8
+ descriptor_data = "\n\x1bgoogle/type/dayofweek.proto\x12\x0bgoogle.type*\x84\x01\n\tDayOfWeek\x12\x1b\n\x17\x44\x41Y_OF_WEEK_UNSPECIFIED\x10\x00\x12\n\n\x06MONDAY\x10\x01\x12\x0b\n\x07TUESDAY\x10\x02\x12\r\n\tWEDNESDAY\x10\x03\x12\x0c\n\x08THURSDAY\x10\x04\x12\n\n\x06\x46RIDAY\x10\x05\x12\x0c\n\x08SATURDAY\x10\x06\x12\n\n\x06SUNDAY\x10\x07\x42i\n\x0f\x63om.google.typeB\x0e\x44\x61yOfWeekProtoP\x01Z>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek\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 => 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
@@ -23,3 +36,56 @@ module Google
23
36
  DayOfWeek = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.DayOfWeek").enummodule
24
37
  end
25
38
  end
39
+
40
+ #### Source proto file: google/type/dayofweek.proto ####
41
+ #
42
+ # // Copyright 2021 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/dayofweek;dayofweek";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "DayOfWeekProto";
63
+ # option java_package = "com.google.type";
64
+ # option objc_class_prefix = "GTP";
65
+ #
66
+ # // Represents a day of the week.
67
+ # enum DayOfWeek {
68
+ # // The day of the week is unspecified.
69
+ # DAY_OF_WEEK_UNSPECIFIED = 0;
70
+ #
71
+ # // Monday
72
+ # MONDAY = 1;
73
+ #
74
+ # // Tuesday
75
+ # TUESDAY = 2;
76
+ #
77
+ # // Wednesday
78
+ # WEDNESDAY = 3;
79
+ #
80
+ # // Thursday
81
+ # THURSDAY = 4;
82
+ #
83
+ # // Friday
84
+ # FRIDAY = 5;
85
+ #
86
+ # // Saturday
87
+ # SATURDAY = 6;
88
+ #
89
+ # // Sunday
90
+ # SUNDAY = 7;
91
+ # }
@@ -1,14 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/type/decimal.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/type/decimal.proto", :syntax => :proto3) do
8
- add_message "google.type.Decimal" do
9
- optional :value, :string, 1
7
+
8
+ descriptor_data = "\n\x19google/type/decimal.proto\x12\x0bgoogle.type\"\x18\n\x07\x44\x65\x63imal\x12\r\n\x05value\x18\x01 \x01(\tBf\n\x0f\x63om.google.typeB\x0c\x44\x65\x63imalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\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 => 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}"
10
28
  end
11
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."
12
32
  end
13
33
 
14
34
  module Google
@@ -16,3 +36,101 @@ module Google
16
36
  Decimal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Decimal").msgclass
17
37
  end
18
38
  end
39
+
40
+ #### Source proto file: google/type/decimal.proto ####
41
+ #
42
+ # // Copyright 2021 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/decimal;decimal";
62
+ # option java_multiple_files = true;
63
+ # option java_outer_classname = "DecimalProto";
64
+ # option java_package = "com.google.type";
65
+ # option objc_class_prefix = "GTP";
66
+ #
67
+ # // A representation of a decimal value, such as 2.5. Clients may convert values
68
+ # // into language-native decimal formats, such as Java's [BigDecimal][] or
69
+ # // Python's [decimal.Decimal][].
70
+ # //
71
+ # // [BigDecimal]:
72
+ # // https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html
73
+ # // [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
74
+ # message Decimal {
75
+ # // The decimal value, as a string.
76
+ # //
77
+ # // The string representation consists of an optional sign, `+` (`U+002B`)
78
+ # // or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
79
+ # // ("the integer"), optionally followed by a fraction, optionally followed
80
+ # // by an exponent.
81
+ # //
82
+ # // The fraction consists of a decimal point followed by zero or more decimal
83
+ # // digits. The string must contain at least one digit in either the integer
84
+ # // or the fraction. The number formed by the sign, the integer and the
85
+ # // fraction is referred to as the significand.
86
+ # //
87
+ # // The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
88
+ # // followed by one or more decimal digits.
89
+ # //
90
+ # // Services **should** normalize decimal values before storing them by:
91
+ # //
92
+ # // - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
93
+ # // - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
94
+ # // - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
95
+ # // - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
96
+ # //
97
+ # // Services **may** perform additional normalization based on its own needs
98
+ # // and the internal decimal implementation selected, such as shifting the
99
+ # // decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
100
+ # // Additionally, services **may** preserve trailing zeroes in the fraction
101
+ # // to indicate increased precision, but are not required to do so.
102
+ # //
103
+ # // Note that only the `.` character is supported to divide the integer
104
+ # // and the fraction; `,` **should not** be supported regardless of locale.
105
+ # // Additionally, thousand separators **should not** be supported. If a
106
+ # // service does support them, values **must** be normalized.
107
+ # //
108
+ # // The ENBF grammar is:
109
+ # //
110
+ # // DecimalString =
111
+ # // [Sign] Significand [Exponent];
112
+ # //
113
+ # // Sign = '+' | '-';
114
+ # //
115
+ # // Significand =
116
+ # // Digits ['.'] [Digits] | [Digits] '.' Digits;
117
+ # //
118
+ # // Exponent = ('e' | 'E') [Sign] Digits;
119
+ # //
120
+ # // Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
121
+ # //
122
+ # // Services **should** clearly document the range of supported values, the
123
+ # // maximum supported precision (total number of digits), and, if applicable,
124
+ # // the scale (number of digits after the decimal point), as well as how it
125
+ # // behaves when receiving out-of-bounds values.
126
+ # //
127
+ # // Services **may** choose to accept values passed as input even when the
128
+ # // value has a higher precision or scale than the service supports, and
129
+ # // **should** round the value to fit the supported scale. Alternatively, the
130
+ # // service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
131
+ # // if precision would be lost.
132
+ # //
133
+ # // Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
134
+ # // gRPC) if the service receives a value outside of the supported range.
135
+ # string value = 1;
136
+ # }
@@ -1,17 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/type/expr.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/type/expr.proto", :syntax => :proto3) do
8
- add_message "google.type.Expr" do
9
- optional :expression, :string, 1
10
- optional :title, :string, 2
11
- optional :description, :string, 3
12
- optional :location, :string, 4
7
+
8
+ descriptor_data = "\n\x16google/type/expr.proto\x12\x0bgoogle.type\"P\n\x04\x45xpr\x12\x12\n\nexpression\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x04 \x01(\tBZ\n\x0f\x63om.google.typeB\tExprProtoP\x01Z4google.golang.org/genproto/googleapis/type/expr;expr\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 => 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}"
13
28
  end
14
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."
15
32
  end
16
33
 
17
34
  module Google
@@ -19,3 +36,79 @@ module Google
19
36
  Expr = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Expr").msgclass
20
37
  end
21
38
  end
39
+
40
+ #### Source proto file: google/type/expr.proto ####
41
+ #
42
+ # // Copyright 2021 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/expr;expr";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "ExprProto";
63
+ # option java_package = "com.google.type";
64
+ # option objc_class_prefix = "GTP";
65
+ #
66
+ # // Represents a textual expression in the Common Expression Language (CEL)
67
+ # // syntax. CEL is a C-like expression language. The syntax and semantics of CEL
68
+ # // are documented at https://github.com/google/cel-spec.
69
+ # //
70
+ # // Example (Comparison):
71
+ # //
72
+ # // title: "Summary size limit"
73
+ # // description: "Determines if a summary is less than 100 chars"
74
+ # // expression: "document.summary.size() < 100"
75
+ # //
76
+ # // Example (Equality):
77
+ # //
78
+ # // title: "Requestor is owner"
79
+ # // description: "Determines if requestor is the document owner"
80
+ # // expression: "document.owner == request.auth.claims.email"
81
+ # //
82
+ # // Example (Logic):
83
+ # //
84
+ # // title: "Public documents"
85
+ # // description: "Determine whether the document should be publicly visible"
86
+ # // expression: "document.type != 'private' && document.type != 'internal'"
87
+ # //
88
+ # // Example (Data Manipulation):
89
+ # //
90
+ # // title: "Notification string"
91
+ # // description: "Create a notification string with a timestamp."
92
+ # // expression: "'New message received at ' + string(document.create_time)"
93
+ # //
94
+ # // The exact variables and functions that may be referenced within an expression
95
+ # // are determined by the service that evaluates it. See the service
96
+ # // documentation for additional information.
97
+ # message Expr {
98
+ # // Textual representation of an expression in Common Expression Language
99
+ # // syntax.
100
+ # string expression = 1;
101
+ #
102
+ # // Optional. Title for the expression, i.e. a short string describing
103
+ # // its purpose. This can be used e.g. in UIs which allow to enter the
104
+ # // expression.
105
+ # string title = 2;
106
+ #
107
+ # // Optional. Description of the expression. This is a longer text which
108
+ # // describes the expression, e.g. when hovered over it in a UI.
109
+ # string description = 3;
110
+ #
111
+ # // Optional. String indicating the location of the expression for error
112
+ # // reporting, e.g. a file name and a position in the file.
113
+ # string location = 4;
114
+ # }
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/type/fraction.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/type/fraction.proto", :syntax => :proto3) do
8
- add_message "google.type.Fraction" do
9
- optional :numerator, :int64, 1
10
- optional :denominator, :int64, 2
7
+
8
+ descriptor_data = "\n\x1agoogle/type/fraction.proto\x12\x0bgoogle.type\"2\n\x08\x46raction\x12\x11\n\tnumerator\x18\x01 \x01(\x03\x12\x13\n\x0b\x64\x65nominator\x18\x02 \x01(\x03\x42\x66\n\x0f\x63om.google.typeB\rFractionProtoP\x01Z<google.golang.org/genproto/googleapis/type/fraction;fraction\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 => 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}"
11
28
  end
12
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."
13
32
  end
14
33
 
15
34
  module Google
@@ -17,3 +36,39 @@ module Google
17
36
  Fraction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Fraction").msgclass
18
37
  end
19
38
  end
39
+
40
+ #### Source proto file: google/type/fraction.proto ####
41
+ #
42
+ # // Copyright 2021 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/fraction;fraction";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "FractionProto";
63
+ # option java_package = "com.google.type";
64
+ # option objc_class_prefix = "GTP";
65
+ #
66
+ # // Represents a fraction in terms of a numerator divided by a denominator.
67
+ # message Fraction {
68
+ # // The numerator in the fraction, e.g. 2 in 2/3.
69
+ # int64 numerator = 1;
70
+ #
71
+ # // The value by which the numerator is divided, e.g. 3 in 2/3. Must be
72
+ # // positive.
73
+ # int64 denominator = 2;
74
+ # }
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/type/interval.proto
3
4
 
@@ -5,13 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/type/interval.proto", :syntax => :proto3) do
10
- add_message "google.type.Interval" do
11
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
12
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
9
+
10
+ descriptor_data = "\n\x1agoogle/type/interval.proto\x12\x0bgoogle.type\x1a\x1fgoogle/protobuf/timestamp.proto\"h\n\x08Interval\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampBi\n\x0f\x63om.google.typeB\rIntervalProtoP\x01Z<google.golang.org/genproto/googleapis/type/interval;interval\xf8\x01\x01\xa2\x02\x03GTPb\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.Timestamp", "google/protobuf/timestamp.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}"
13
31
  end
14
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."
15
35
  end
16
36
 
17
37
  module Google
@@ -19,3 +39,52 @@ module Google
19
39
  Interval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Interval").msgclass
20
40
  end
21
41
  end
42
+
43
+ #### Source proto file: google/type/interval.proto ####
44
+ #
45
+ # // Copyright 2021 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.type;
62
+ #
63
+ # import "google/protobuf/timestamp.proto";
64
+ #
65
+ # option cc_enable_arenas = true;
66
+ # option go_package = "google.golang.org/genproto/googleapis/type/interval;interval";
67
+ # option java_multiple_files = true;
68
+ # option java_outer_classname = "IntervalProto";
69
+ # option java_package = "com.google.type";
70
+ # option objc_class_prefix = "GTP";
71
+ #
72
+ # // Represents a time interval, encoded as a Timestamp start (inclusive) and a
73
+ # // Timestamp end (exclusive).
74
+ # //
75
+ # // The start must be less than or equal to the end.
76
+ # // When the start equals the end, the interval is empty (matches no time).
77
+ # // When both start and end are unspecified, the interval matches any time.
78
+ # message Interval {
79
+ # // Optional. Inclusive start of the interval.
80
+ # //
81
+ # // If specified, a Timestamp matching this interval will have to be the same
82
+ # // or after the start.
83
+ # google.protobuf.Timestamp start_time = 1;
84
+ #
85
+ # // Optional. Exclusive end of the interval.
86
+ # //
87
+ # // If specified, a Timestamp matching this interval will have to be before the
88
+ # // end.
89
+ # google.protobuf.Timestamp end_time = 2;
90
+ # }
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/type/latlng.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/type/latlng.proto", :syntax => :proto3) do
8
- add_message "google.type.LatLng" do
9
- optional :latitude, :double, 1
10
- optional :longitude, :double, 2
7
+
8
+ descriptor_data = "\n\x18google/type/latlng.proto\x12\x0bgoogle.type\"-\n\x06LatLng\x12\x10\n\x08latitude\x18\x01 \x01(\x01\x12\x11\n\tlongitude\x18\x02 \x01(\x01\x42\x63\n\x0f\x63om.google.typeB\x0bLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\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 => 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}"
11
28
  end
12
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."
13
32
  end
14
33
 
15
34
  module Google
@@ -17,3 +36,43 @@ module Google
17
36
  LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.LatLng").msgclass
18
37
  end
19
38
  end
39
+
40
+ #### Source proto file: google/type/latlng.proto ####
41
+ #
42
+ # // Copyright 2021 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/latlng;latlng";
62
+ # option java_multiple_files = true;
63
+ # option java_outer_classname = "LatLngProto";
64
+ # option java_package = "com.google.type";
65
+ # option objc_class_prefix = "GTP";
66
+ #
67
+ # // An object that represents a latitude/longitude pair. This is expressed as a
68
+ # // pair of doubles to represent degrees latitude and degrees longitude. Unless
69
+ # // specified otherwise, this must conform to the
70
+ # // <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
71
+ # // standard</a>. Values must be within normalized ranges.
72
+ # message LatLng {
73
+ # // The latitude in degrees. It must be in the range [-90.0, +90.0].
74
+ # double latitude = 1;
75
+ #
76
+ # // The longitude in degrees. It must be in the range [-180.0, +180.0].
77
+ # double longitude = 2;
78
+ # }