googleapis-common-protos-types 1.6.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 +13 -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 -83
  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,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/httpbody.proto
3
4
 
@@ -5,14 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/any_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/api/httpbody.proto", :syntax => :proto3) do
10
- add_message "google.api.HttpBody" do
11
- optional :content_type, :string, 1
12
- optional :data, :bytes, 2
13
- repeated :extensions, :message, 3, "google.protobuf.Any"
9
+
10
+ descriptor_data = "\n\x19google/api/httpbody.proto\x12\ngoogle.api\x1a\x19google/protobuf/any.proto\"X\n\x08HttpBody\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12(\n\nextensions\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyBh\n\x0e\x63om.google.apiB\rHttpBodyProtoP\x01Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Any", "google/protobuf/any.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}"
14
31
  end
15
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."
16
35
  end
17
36
 
18
37
  module Google
@@ -20,3 +39,87 @@ module Google
20
39
  HttpBody = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpBody").msgclass
21
40
  end
22
41
  end
42
+
43
+ #### Source proto file: google/api/httpbody.proto ####
44
+ #
45
+ # // Copyright 2023 Google LLC
46
+ # //
47
+ # // Licensed under the Apache License, Version 2.0 (the "License");
48
+ # // you may not use this file except in compliance with the License.
49
+ # // You may obtain a copy of the License at
50
+ # //
51
+ # // http://www.apache.org/licenses/LICENSE-2.0
52
+ # //
53
+ # // Unless required by applicable law or agreed to in writing, software
54
+ # // distributed under the License is distributed on an "AS IS" BASIS,
55
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
+ # // See the License for the specific language governing permissions and
57
+ # // limitations under the License.
58
+ #
59
+ # syntax = "proto3";
60
+ #
61
+ # package google.api;
62
+ #
63
+ # import "google/protobuf/any.proto";
64
+ #
65
+ # option cc_enable_arenas = true;
66
+ # option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody";
67
+ # option java_multiple_files = true;
68
+ # option java_outer_classname = "HttpBodyProto";
69
+ # option java_package = "com.google.api";
70
+ # option objc_class_prefix = "GAPI";
71
+ #
72
+ # // Message that represents an arbitrary HTTP body. It should only be used for
73
+ # // payload formats that can't be represented as JSON, such as raw binary or
74
+ # // an HTML page.
75
+ # //
76
+ # //
77
+ # // This message can be used both in streaming and non-streaming API methods in
78
+ # // the request as well as the response.
79
+ # //
80
+ # // It can be used as a top-level request field, which is convenient if one
81
+ # // wants to extract parameters from either the URL or HTTP template into the
82
+ # // request fields and also want access to the raw HTTP body.
83
+ # //
84
+ # // Example:
85
+ # //
86
+ # // message GetResourceRequest {
87
+ # // // A unique request id.
88
+ # // string request_id = 1;
89
+ # //
90
+ # // // The raw HTTP body is bound to this field.
91
+ # // google.api.HttpBody http_body = 2;
92
+ # //
93
+ # // }
94
+ # //
95
+ # // service ResourceService {
96
+ # // rpc GetResource(GetResourceRequest)
97
+ # // returns (google.api.HttpBody);
98
+ # // rpc UpdateResource(google.api.HttpBody)
99
+ # // returns (google.protobuf.Empty);
100
+ # //
101
+ # // }
102
+ # //
103
+ # // Example with streaming methods:
104
+ # //
105
+ # // service CaldavService {
106
+ # // rpc GetCalendar(stream google.api.HttpBody)
107
+ # // returns (stream google.api.HttpBody);
108
+ # // rpc UpdateCalendar(stream google.api.HttpBody)
109
+ # // returns (stream google.api.HttpBody);
110
+ # //
111
+ # // }
112
+ # //
113
+ # // Use of this type only changes how the request and response bodies are
114
+ # // handled, all other features will continue to work unchanged.
115
+ # message HttpBody {
116
+ # // The HTTP Content-Type header value specifying the content type of the body.
117
+ # string content_type = 1;
118
+ #
119
+ # // The HTTP request/response body as raw binary.
120
+ # bytes data = 2;
121
+ #
122
+ # // Application specific response metadata. Must be set in the first response
123
+ # // for streaming APIs.
124
+ # repeated google.protobuf.Any extensions = 3;
125
+ # }
@@ -1,21 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/label.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/label.proto", :syntax => :proto3) do
8
- add_message "google.api.LabelDescriptor" do
9
- optional :key, :string, 1
10
- optional :value_type, :enum, 2, "google.api.LabelDescriptor.ValueType"
11
- optional :description, :string, 3
12
- end
13
- add_enum "google.api.LabelDescriptor.ValueType" do
14
- value :STRING, 0
15
- value :BOOL, 1
16
- value :INT64, 2
7
+
8
+ descriptor_data = "\n\x16google/api/label.proto\x12\ngoogle.api\"\x9c\x01\n\x0fLabelDescriptor\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\nvalue_type\x18\x02 \x01(\x0e\x32%.google.api.LabelDescriptor.ValueType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\",\n\tValueType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x42_\n\x0e\x63om.google.apiB\nLabelProtoP\x01Z5google.golang.org/genproto/googleapis/api/label;label\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
28
  end
18
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
19
32
  end
20
33
 
21
34
  module Google
@@ -24,3 +37,54 @@ module Google
24
37
  LabelDescriptor::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LabelDescriptor.ValueType").enummodule
25
38
  end
26
39
  end
40
+
41
+ #### Source proto file: google/api/label.proto ####
42
+ #
43
+ # // Copyright 2023 Google LLC
44
+ # //
45
+ # // Licensed under the Apache License, Version 2.0 (the "License");
46
+ # // you may not use this file except in compliance with the License.
47
+ # // You may obtain a copy of the License at
48
+ # //
49
+ # // http://www.apache.org/licenses/LICENSE-2.0
50
+ # //
51
+ # // Unless required by applicable law or agreed to in writing, software
52
+ # // distributed under the License is distributed on an "AS IS" BASIS,
53
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54
+ # // See the License for the specific language governing permissions and
55
+ # // limitations under the License.
56
+ #
57
+ # syntax = "proto3";
58
+ #
59
+ # package google.api;
60
+ #
61
+ # option cc_enable_arenas = true;
62
+ # option go_package = "google.golang.org/genproto/googleapis/api/label;label";
63
+ # option java_multiple_files = true;
64
+ # option java_outer_classname = "LabelProto";
65
+ # option java_package = "com.google.api";
66
+ # option objc_class_prefix = "GAPI";
67
+ #
68
+ # // A description of a label.
69
+ # message LabelDescriptor {
70
+ # // Value types that can be used as label values.
71
+ # enum ValueType {
72
+ # // A variable-length string. This is the default.
73
+ # STRING = 0;
74
+ #
75
+ # // Boolean; true or false.
76
+ # BOOL = 1;
77
+ #
78
+ # // A 64-bit signed integer.
79
+ # INT64 = 2;
80
+ # }
81
+ #
82
+ # // The label key.
83
+ # string key = 1;
84
+ #
85
+ # // The type of data that can be assigned to the label.
86
+ # ValueType value_type = 2;
87
+ #
88
+ # // A human-readable description for the label.
89
+ # string description = 3;
90
+ # }
@@ -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 => 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,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 2023 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 => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.api.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 2023 Google LLC
46
+ # //
47
+ # // Licensed under the Apache License, Version 2.0 (the "License");
48
+ # // you may not use this file except in compliance with the License.
49
+ # // You may obtain a copy of the License at
50
+ # //
51
+ # // http://www.apache.org/licenses/LICENSE-2.0
52
+ # //
53
+ # // Unless required by applicable law or agreed to in writing, software
54
+ # // distributed under the License is distributed on an "AS IS" BASIS,
55
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
+ # // See the License for the specific language governing permissions and
57
+ # // limitations under the License.
58
+ #
59
+ # syntax = "proto3";
60
+ #
61
+ # package google.api;
62
+ #
63
+ # import "google/api/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 => 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}"
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 2023 Google LLC
44
+ # //
45
+ # // Licensed under the Apache License, Version 2.0 (the "License");
46
+ # // you may not use this file except in compliance with the License.
47
+ # // You may obtain a copy of the License at
48
+ # //
49
+ # // http://www.apache.org/licenses/LICENSE-2.0
50
+ # //
51
+ # // Unless required by applicable law or agreed to in writing, software
52
+ # // distributed under the License is distributed on an "AS IS" BASIS,
53
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54
+ # // See the License for the specific language governing permissions and
55
+ # // limitations under the License.
56
+ #
57
+ # syntax = "proto3";
58
+ #
59
+ # package google.api;
60
+ #
61
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
62
+ # option java_multiple_files = true;
63
+ # option java_outer_classname = "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
+ # }