googleapis-common-protos-types 1.5.0 → 1.16.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 +80 -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 +459 -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,21 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/launch_stage.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/launch_stage.proto", :syntax => :proto3) do
8
- add_enum "google.api.LaunchStage" do
9
- value :LAUNCH_STAGE_UNSPECIFIED, 0
10
- value :UNIMPLEMENTED, 6
11
- value :PRELAUNCH, 7
12
- value :EARLY_ACCESS, 1
13
- value :ALPHA, 2
14
- value :BETA, 3
15
- value :GA, 4
16
- value :DEPRECATED, 5
7
+
8
+ descriptor_data = "\n\x1dgoogle/api/launch_stage.proto\x12\ngoogle.api*\x8c\x01\n\x0bLaunchStage\x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x11\n\rUNIMPLEMENTED\x10\x06\x12\r\n\tPRELAUNCH\x10\x07\x12\x10\n\x0c\x45\x41RLY_ACCESS\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x12\x08\n\x04\x42\x45TA\x10\x03\x12\x06\n\x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05\x42Z\n\x0e\x63om.google.apiB\x10LaunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\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
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,78 @@ module Google
23
36
  LaunchStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LaunchStage").enummodule
24
37
  end
25
38
  end
39
+
40
+ #### Source proto file: google/api/launch_stage.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.api;
59
+ #
60
+ # option go_package = "google.golang.org/genproto/googleapis/api;api";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "LaunchStageProto";
63
+ # option java_package = "com.google.api";
64
+ # option objc_class_prefix = "GAPI";
65
+ #
66
+ # // The launch stage as defined by [Google Cloud Platform
67
+ # // Launch Stages](https://cloud.google.com/terms/launch-stages).
68
+ # enum LaunchStage {
69
+ # // Do not use this default value.
70
+ # LAUNCH_STAGE_UNSPECIFIED = 0;
71
+ #
72
+ # // The feature is not yet implemented. Users can not use it.
73
+ # UNIMPLEMENTED = 6;
74
+ #
75
+ # // Prelaunch features are hidden from users and are only visible internally.
76
+ # PRELAUNCH = 7;
77
+ #
78
+ # // Early Access features are limited to a closed group of testers. To use
79
+ # // these features, you must sign up in advance and sign a Trusted Tester
80
+ # // agreement (which includes confidentiality provisions). These features may
81
+ # // be unstable, changed in backward-incompatible ways, and are not
82
+ # // guaranteed to be released.
83
+ # EARLY_ACCESS = 1;
84
+ #
85
+ # // Alpha is a limited availability test for releases before they are cleared
86
+ # // for widespread use. By Alpha, all significant design issues are resolved
87
+ # // and we are in the process of verifying functionality. Alpha customers
88
+ # // need to apply for access, agree to applicable terms, and have their
89
+ # // projects allowlisted. Alpha releases don't have to be feature complete,
90
+ # // no SLAs are provided, and there are no technical support obligations, but
91
+ # // they will be far enough along that customers can actually use them in
92
+ # // test environments or for limited-use tests -- just like they would in
93
+ # // normal production cases.
94
+ # ALPHA = 2;
95
+ #
96
+ # // Beta is the point at which we are ready to open a release for any
97
+ # // customer to use. There are no SLA or technical support obligations in a
98
+ # // Beta release. Products will be complete from a feature perspective, but
99
+ # // may have some open outstanding issues. Beta releases are suitable for
100
+ # // limited production use cases.
101
+ # BETA = 3;
102
+ #
103
+ # // GA features are open to all developers and are considered stable and
104
+ # // fully qualified for production use.
105
+ # GA = 4;
106
+ #
107
+ # // Deprecated features are scheduled to be shut down and removed. For more
108
+ # // information, see the "Deprecation Policy" section of our [Terms of
109
+ # // Service](https://cloud.google.com/terms/)
110
+ # // and the [Google Cloud Platform Subject to the Deprecation
111
+ # // Policy](https://cloud.google.com/terms/deprecation) documentation.
112
+ # DEPRECATED = 5;
113
+ # }
@@ -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/log.proto
3
4
 
@@ -5,15 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/label_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/api/log.proto", :syntax => :proto3) do
10
- add_message "google.api.LogDescriptor" do
11
- optional :name, :string, 1
12
- repeated :labels, :message, 2, "google.api.LabelDescriptor"
13
- optional :description, :string, 3
14
- optional :display_name, :string, 4
9
+
10
+ descriptor_data = "\n\x14google/api/log.proto\x12\ngoogle.api\x1a\x16google/api/label.proto\"u\n\rLogDescriptor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x06labels\x18\x02 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\tBj\n\x0e\x63om.google.apiB\x08LogProtoP\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
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.LabelDescriptor", "google/api/label.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}"
15
31
  end
16
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."
17
35
  end
18
36
 
19
37
  module Google
@@ -21,3 +39,60 @@ module Google
21
39
  LogDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LogDescriptor").msgclass
22
40
  end
23
41
  end
42
+
43
+ #### Source proto file: google/api/log.proto ####
44
+ #
45
+ # // Copyright 2024 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/label.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 = "LogProto";
68
+ # option java_package = "com.google.api";
69
+ # option objc_class_prefix = "GAPI";
70
+ #
71
+ # // A description of a log type. Example in YAML format:
72
+ # //
73
+ # // - name: library.googleapis.com/activity_history
74
+ # // description: The history of borrowing and returning library items.
75
+ # // display_name: Activity
76
+ # // labels:
77
+ # // - key: /customer_id
78
+ # // description: Identifier of a library customer
79
+ # message LogDescriptor {
80
+ # // The name of the log. It must be less than 512 characters long and can
81
+ # // include the following characters: upper- and lower-case alphanumeric
82
+ # // characters [A-Za-z0-9], and punctuation characters including
83
+ # // slash, underscore, hyphen, period [/_-.].
84
+ # string name = 1;
85
+ #
86
+ # // The set of labels that are available to describe a specific log entry.
87
+ # // Runtime requests that contain labels not specified here are
88
+ # // considered invalid.
89
+ # repeated LabelDescriptor labels = 2;
90
+ #
91
+ # // A human-readable description of this log. This information appears in
92
+ # // the documentation and can contain details.
93
+ # string description = 3;
94
+ #
95
+ # // The human-readable name for this log. This information appears on
96
+ # // the user interface and should be concise.
97
+ # string display_name = 4;
98
+ # }
@@ -1,19 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/logging.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/logging.proto", :syntax => :proto3) do
8
- add_message "google.api.Logging" do
9
- repeated :producer_destinations, :message, 1, "google.api.Logging.LoggingDestination"
10
- repeated :consumer_destinations, :message, 2, "google.api.Logging.LoggingDestination"
11
- end
12
- add_message "google.api.Logging.LoggingDestination" do
13
- optional :monitored_resource, :string, 3
14
- repeated :logs, :string, 1
7
+
8
+ descriptor_data = "\n\x18google/api/logging.proto\x12\ngoogle.api\"\xd7\x01\n\x07Logging\x12\x45\n\x15producer_destinations\x18\x01 \x03(\x0b\x32&.google.api.Logging.LoggingDestination\x12\x45\n\x15\x63onsumer_destinations\x18\x02 \x03(\x0b\x32&.google.api.Logging.LoggingDestination\x1a>\n\x12LoggingDestination\x12\x1a\n\x12monitored_resource\x18\x03 \x01(\t\x12\x0c\n\x04logs\x18\x01 \x03(\tBn\n\x0e\x63om.google.apiB\x0cLoggingProtoP\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
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}"
15
28
  end
16
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."
17
32
  end
18
33
 
19
34
  module Google
@@ -22,3 +37,87 @@ module Google
22
37
  Logging::LoggingDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Logging.LoggingDestination").msgclass
23
38
  end
24
39
  end
40
+
41
+ #### Source proto file: google/api/logging.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.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 = "LoggingProto";
64
+ # option java_package = "com.google.api";
65
+ # option objc_class_prefix = "GAPI";
66
+ #
67
+ # // Logging configuration of the service.
68
+ # //
69
+ # // The following example shows how to configure logs to be sent to the
70
+ # // producer and consumer projects. In the example, the `activity_history`
71
+ # // log is sent to both the producer and consumer projects, whereas the
72
+ # // `purchase_history` log is only sent to the producer project.
73
+ # //
74
+ # // monitored_resources:
75
+ # // - type: library.googleapis.com/branch
76
+ # // labels:
77
+ # // - key: /city
78
+ # // description: The city where the library branch is located in.
79
+ # // - key: /name
80
+ # // description: The name of the branch.
81
+ # // logs:
82
+ # // - name: activity_history
83
+ # // labels:
84
+ # // - key: /customer_id
85
+ # // - name: purchase_history
86
+ # // logging:
87
+ # // producer_destinations:
88
+ # // - monitored_resource: library.googleapis.com/branch
89
+ # // logs:
90
+ # // - activity_history
91
+ # // - purchase_history
92
+ # // consumer_destinations:
93
+ # // - monitored_resource: library.googleapis.com/branch
94
+ # // logs:
95
+ # // - activity_history
96
+ # message Logging {
97
+ # // Configuration of a specific logging destination (the producer project
98
+ # // or the consumer project).
99
+ # message LoggingDestination {
100
+ # // The monitored resource type. The type must be defined in the
101
+ # // [Service.monitored_resources][google.api.Service.monitored_resources]
102
+ # // section.
103
+ # string monitored_resource = 3;
104
+ #
105
+ # // Names of the logs to be sent to this destination. Each name must
106
+ # // be defined in the [Service.logs][google.api.Service.logs] section. If the
107
+ # // log name is not a domain scoped name, it will be automatically prefixed
108
+ # // with the service name followed by "/".
109
+ # repeated string logs = 1;
110
+ # }
111
+ #
112
+ # // Logging configurations for sending logs to the producer project.
113
+ # // There can be multiple producer destinations, each one must have a
114
+ # // different monitored resource type. A log can be used in at most
115
+ # // one producer destination.
116
+ # repeated LoggingDestination producer_destinations = 1;
117
+ #
118
+ # // Logging configurations for sending logs to the consumer project.
119
+ # // There can be multiple consumer destinations, each one must have a
120
+ # // different monitored resource type. A log can be used in at most
121
+ # // one consumer destination.
122
+ # repeated LoggingDestination consumer_destinations = 2;
123
+ # }