googleapis-common-protos-types 1.3.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +79 -6
- data/lib/google/api/annotations_pb.rb +62 -2
- data/lib/google/api/auth_pb.rb +264 -33
- data/lib/google/api/backend_pb.rb +212 -22
- data/lib/google/api/billing_pb.rb +104 -9
- data/lib/google/api/client_pb.rb +455 -2
- data/lib/google/api/config_change_pb.rb +111 -17
- data/lib/google/api/consumer_pb.rb +109 -16
- data/lib/google/api/context_pb.rb +117 -11
- data/lib/google/api/control_pb.rb +71 -4
- data/lib/google/api/distribution_pb.rb +243 -39
- data/lib/google/api/documentation_pb.rb +195 -19
- data/lib/google/api/endpoint_pb.rb +100 -7
- data/lib/google/api/error_reason_pb.rb +597 -23
- data/lib/google/api/field_behavior_pb.rb +133 -11
- data/lib/google/api/field_info_pb.rb +123 -0
- data/lib/google/api/http_pb.rb +406 -23
- data/lib/google/api/httpbody_pb.rb +110 -6
- data/lib/google/api/label_pb.rb +75 -11
- data/lib/google/api/launch_stage_pb.rb +99 -11
- data/lib/google/api/log_pb.rb +83 -7
- data/lib/google/api/logging_pb.rb +108 -9
- data/lib/google/api/metric_pb.rb +298 -38
- data/lib/google/api/monitored_resource_pb.rb +160 -17
- data/lib/google/api/monitoring_pb.rb +134 -9
- data/lib/google/api/policy_pb.rb +129 -0
- data/lib/google/api/quota_pb.rb +211 -21
- data/lib/google/api/resource_pb.rb +267 -23
- data/lib/google/api/routing_pb.rb +490 -8
- data/lib/google/api/service_pb.rb +241 -31
- data/lib/google/api/source_info_pb.rb +60 -4
- data/lib/google/api/system_parameter_pb.rb +123 -13
- data/lib/google/api/usage_pb.rb +123 -11
- data/lib/google/api/visibility_pb.rb +142 -8
- data/lib/google/logging/type/http_request_pb.rb +124 -19
- data/lib/google/logging/type/log_severity_pb.rb +98 -13
- data/lib/google/longrunning/operations_pb.rb +279 -37
- data/lib/google/rpc/code_pb.rb +213 -20
- data/lib/google/rpc/context/attribute_context_pb.rb +402 -0
- data/lib/google/rpc/context/audit_context_pb.rb +95 -0
- data/lib/google/rpc/error_details_pb.rb +315 -57
- data/lib/google/rpc/http_pb.rb +107 -0
- data/lib/google/rpc/status_pb.rb +78 -6
- data/lib/google/type/calendar_period_pb.rb +83 -11
- data/lib/google/type/color_pb.rb +203 -7
- data/lib/google/type/date_pb.rb +79 -6
- data/lib/google/type/datetime_pb.rb +133 -18
- data/lib/google/type/dayofweek_pb.rb +77 -11
- data/lib/google/type/decimal_pb.rb +122 -4
- data/lib/google/type/expr_pb.rb +100 -7
- data/lib/google/type/fraction_pb.rb +60 -5
- data/lib/google/type/interval_pb.rb +75 -5
- data/lib/google/type/latlng_pb.rb +64 -5
- data/lib/google/type/localized_text_pb.rb +63 -5
- data/lib/google/type/money_pb.rb +69 -6
- data/lib/google/type/month_pb.rb +92 -16
- data/lib/google/type/phone_number_pb.rb +140 -12
- data/lib/google/type/postal_address_pb.rb +161 -14
- data/lib/google/type/quaternion_pb.rb +121 -7
- data/lib/google/type/timeofday_pb.rb +71 -7
- data/lib/googleapis/common/protos/types/version.rb +1 -1
- metadata +11 -6
data/lib/google/api/usage_pb.rb
CHANGED
@@ -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/usage.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n\x16google/api/usage.proto\x12\ngoogle.api\"j\n\x05Usage\x12\x14\n\x0crequirements\x18\x01 \x03(\t\x12$\n\x05rules\x18\x06 \x03(\x0b\x32\x15.google.api.UsageRule\x12%\n\x1dproducer_notification_channel\x18\x07 \x01(\t\"]\n\tUsageRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12 \n\x18\x61llow_unregistered_calls\x18\x02 \x01(\x08\x12\x1c\n\x14skip_service_control\x18\x03 \x01(\x08\x42l\n\x0e\x63om.google.apiB\nUsageProtoP\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}"
|
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,102 @@ module Google
|
|
24
37
|
UsageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.UsageRule").msgclass
|
25
38
|
end
|
26
39
|
end
|
40
|
+
|
41
|
+
#### Source proto file: google/api/usage.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 = "UsageProto";
|
64
|
+
# option java_package = "com.google.api";
|
65
|
+
# option objc_class_prefix = "GAPI";
|
66
|
+
#
|
67
|
+
# // Configuration controlling usage of a service.
|
68
|
+
# message Usage {
|
69
|
+
# // Requirements that must be satisfied before a consumer project can use the
|
70
|
+
# // service. Each requirement is of the form <service.name>/<requirement-id>;
|
71
|
+
# // for example 'serviceusage.googleapis.com/billing-enabled'.
|
72
|
+
# //
|
73
|
+
# // For Google APIs, a Terms of Service requirement must be included here.
|
74
|
+
# // Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
|
75
|
+
# // Other Google APIs should include
|
76
|
+
# // "serviceusage.googleapis.com/tos/universal". Additional ToS can be
|
77
|
+
# // included based on the business needs.
|
78
|
+
# repeated string requirements = 1;
|
79
|
+
#
|
80
|
+
# // A list of usage rules that apply to individual API methods.
|
81
|
+
# //
|
82
|
+
# // **NOTE:** All service configuration rules follow "last one wins" order.
|
83
|
+
# repeated UsageRule rules = 6;
|
84
|
+
#
|
85
|
+
# // The full resource name of a channel used for sending notifications to the
|
86
|
+
# // service producer.
|
87
|
+
# //
|
88
|
+
# // Google Service Management currently only supports
|
89
|
+
# // [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
90
|
+
# // channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
91
|
+
# // of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
92
|
+
# // documented in https://cloud.google.com/pubsub/docs/overview.
|
93
|
+
# string producer_notification_channel = 7;
|
94
|
+
# }
|
95
|
+
#
|
96
|
+
# // Usage configuration rules for the service.
|
97
|
+
# //
|
98
|
+
# // NOTE: Under development.
|
99
|
+
# //
|
100
|
+
# //
|
101
|
+
# // Use this rule to configure unregistered calls for the service. Unregistered
|
102
|
+
# // calls are calls that do not contain consumer project identity.
|
103
|
+
# // (Example: calls that do not contain an API key).
|
104
|
+
# // By default, API methods do not allow unregistered calls, and each method call
|
105
|
+
# // must be identified by a consumer project identity. Use this rule to
|
106
|
+
# // allow/disallow unregistered calls.
|
107
|
+
# //
|
108
|
+
# // Example of an API that wants to allow unregistered calls for entire service.
|
109
|
+
# //
|
110
|
+
# // usage:
|
111
|
+
# // rules:
|
112
|
+
# // - selector: "*"
|
113
|
+
# // allow_unregistered_calls: true
|
114
|
+
# //
|
115
|
+
# // Example of a method that wants to allow unregistered calls.
|
116
|
+
# //
|
117
|
+
# // usage:
|
118
|
+
# // rules:
|
119
|
+
# // - selector: "google.example.library.v1.LibraryService.CreateBook"
|
120
|
+
# // allow_unregistered_calls: true
|
121
|
+
# message UsageRule {
|
122
|
+
# // Selects the methods to which this rule applies. Use '*' to indicate all
|
123
|
+
# // methods in all APIs.
|
124
|
+
# //
|
125
|
+
# // Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
126
|
+
# // details.
|
127
|
+
# string selector = 1;
|
128
|
+
#
|
129
|
+
# // If true, the selected method allows unregistered calls, e.g. calls
|
130
|
+
# // that don't identify any user or application.
|
131
|
+
# bool allow_unregistered_calls = 2;
|
132
|
+
#
|
133
|
+
# // If true, the selected method should skip service control and the control
|
134
|
+
# // plane features, such as quota and billing, will not be available.
|
135
|
+
# // This flag is used by Google Cloud Endpoints to bypass checks for internal
|
136
|
+
# // methods, such as service health check methods.
|
137
|
+
# bool skip_service_control = 3;
|
138
|
+
# }
|
@@ -1,18 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/api/visibility.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
require 'google/protobuf/descriptor_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\x1bgoogle/api/visibility.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto\"7\n\nVisibility\x12)\n\x05rules\x18\x01 \x03(\x0b\x32\x1a.google.api.VisibilityRule\"7\n\x0eVisibilityRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x13\n\x0brestriction\x18\x02 \x01(\t:T\n\x0f\x65num_visibility\x12\x1c.google.protobuf.EnumOptions\x18\xaf\xca\xbc\" \x01(\x0b\x32\x1a.google.api.VisibilityRule:Z\n\x10value_visibility\x12!.google.protobuf.EnumValueOptions\x18\xaf\xca\xbc\" \x01(\x0b\x32\x1a.google.api.VisibilityRule:V\n\x10\x66ield_visibility\x12\x1d.google.protobuf.FieldOptions\x18\xaf\xca\xbc\" \x01(\x0b\x32\x1a.google.api.VisibilityRule:Z\n\x12message_visibility\x12\x1f.google.protobuf.MessageOptions\x18\xaf\xca\xbc\" \x01(\x0b\x32\x1a.google.api.VisibilityRule:X\n\x11method_visibility\x12\x1e.google.protobuf.MethodOptions\x18\xaf\xca\xbc\" \x01(\x0b\x32\x1a.google.api.VisibilityRule:V\n\x0e\x61pi_visibility\x12\x1f.google.protobuf.ServiceOptions\x18\xaf\xca\xbc\" \x01(\x0b\x32\x1a.google.api.VisibilityRuleBn\n\x0e\x63om.google.apiB\x0fVisibilityProtoP\x01Z?google.golang.org/genproto/googleapis/api/visibility;visibility\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
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
14
30
|
end
|
15
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
16
34
|
end
|
17
35
|
|
18
36
|
module Google
|
@@ -21,3 +39,119 @@ module Google
|
|
21
39
|
VisibilityRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.VisibilityRule").msgclass
|
22
40
|
end
|
23
41
|
end
|
42
|
+
|
43
|
+
#### Source proto file: google/api/visibility.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/descriptor.proto";
|
64
|
+
#
|
65
|
+
# option cc_enable_arenas = true;
|
66
|
+
# option go_package = "google.golang.org/genproto/googleapis/api/visibility;visibility";
|
67
|
+
# option java_multiple_files = true;
|
68
|
+
# option java_outer_classname = "VisibilityProto";
|
69
|
+
# option java_package = "com.google.api";
|
70
|
+
# option objc_class_prefix = "GAPI";
|
71
|
+
#
|
72
|
+
# extend google.protobuf.EnumOptions {
|
73
|
+
# // See `VisibilityRule`.
|
74
|
+
# google.api.VisibilityRule enum_visibility = 72295727;
|
75
|
+
# }
|
76
|
+
#
|
77
|
+
# extend google.protobuf.EnumValueOptions {
|
78
|
+
# // See `VisibilityRule`.
|
79
|
+
# google.api.VisibilityRule value_visibility = 72295727;
|
80
|
+
# }
|
81
|
+
#
|
82
|
+
# extend google.protobuf.FieldOptions {
|
83
|
+
# // See `VisibilityRule`.
|
84
|
+
# google.api.VisibilityRule field_visibility = 72295727;
|
85
|
+
# }
|
86
|
+
#
|
87
|
+
# extend google.protobuf.MessageOptions {
|
88
|
+
# // See `VisibilityRule`.
|
89
|
+
# google.api.VisibilityRule message_visibility = 72295727;
|
90
|
+
# }
|
91
|
+
#
|
92
|
+
# extend google.protobuf.MethodOptions {
|
93
|
+
# // See `VisibilityRule`.
|
94
|
+
# google.api.VisibilityRule method_visibility = 72295727;
|
95
|
+
# }
|
96
|
+
#
|
97
|
+
# extend google.protobuf.ServiceOptions {
|
98
|
+
# // See `VisibilityRule`.
|
99
|
+
# google.api.VisibilityRule api_visibility = 72295727;
|
100
|
+
# }
|
101
|
+
#
|
102
|
+
# // `Visibility` restricts service consumer's access to service elements,
|
103
|
+
# // such as whether an application can call a visibility-restricted method.
|
104
|
+
# // The restriction is expressed by applying visibility labels on service
|
105
|
+
# // elements. The visibility labels are elsewhere linked to service consumers.
|
106
|
+
# //
|
107
|
+
# // A service can define multiple visibility labels, but a service consumer
|
108
|
+
# // should be granted at most one visibility label. Multiple visibility
|
109
|
+
# // labels for a single service consumer are not supported.
|
110
|
+
# //
|
111
|
+
# // If an element and all its parents have no visibility label, its visibility
|
112
|
+
# // is unconditionally granted.
|
113
|
+
# //
|
114
|
+
# // Example:
|
115
|
+
# //
|
116
|
+
# // visibility:
|
117
|
+
# // rules:
|
118
|
+
# // - selector: google.calendar.Calendar.EnhancedSearch
|
119
|
+
# // restriction: PREVIEW
|
120
|
+
# // - selector: google.calendar.Calendar.Delegate
|
121
|
+
# // restriction: INTERNAL
|
122
|
+
# //
|
123
|
+
# // Here, all methods are publicly visible except for the restricted methods
|
124
|
+
# // EnhancedSearch and Delegate.
|
125
|
+
# message Visibility {
|
126
|
+
# // A list of visibility rules that apply to individual API elements.
|
127
|
+
# //
|
128
|
+
# // **NOTE:** All service configuration rules follow "last one wins" order.
|
129
|
+
# repeated VisibilityRule rules = 1;
|
130
|
+
# }
|
131
|
+
#
|
132
|
+
# // A visibility rule provides visibility configuration for an individual API
|
133
|
+
# // element.
|
134
|
+
# message VisibilityRule {
|
135
|
+
# // Selects methods, messages, fields, enums, etc. to which this rule applies.
|
136
|
+
# //
|
137
|
+
# // Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
138
|
+
# // details.
|
139
|
+
# string selector = 1;
|
140
|
+
#
|
141
|
+
# // A comma-separated list of visibility labels that apply to the `selector`.
|
142
|
+
# // Any of the listed labels can be used to grant the visibility.
|
143
|
+
# //
|
144
|
+
# // If a rule has multiple labels, removing one of the labels but not all of
|
145
|
+
# // them can break clients.
|
146
|
+
# //
|
147
|
+
# // Example:
|
148
|
+
# //
|
149
|
+
# // visibility:
|
150
|
+
# // rules:
|
151
|
+
# // - selector: google.calendar.Calendar.EnhancedSearch
|
152
|
+
# // restriction: INTERNAL, PREVIEW
|
153
|
+
# //
|
154
|
+
# // Removing INTERNAL from this restriction will break clients that rely on
|
155
|
+
# // this method and only had access to it through INTERNAL.
|
156
|
+
# string restriction = 2;
|
157
|
+
# }
|
@@ -1,30 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/logging/type/http_request.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
7
|
require 'google/protobuf/duration_pb'
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n&google/logging/type/http_request.proto\x12\x13google.logging.type\x1a\x1egoogle/protobuf/duration.proto\"\xef\x02\n\x0bHttpRequest\x12\x16\n\x0erequest_method\x18\x01 \x01(\t\x12\x13\n\x0brequest_url\x18\x02 \x01(\t\x12\x14\n\x0crequest_size\x18\x03 \x01(\x03\x12\x0e\n\x06status\x18\x04 \x01(\x05\x12\x15\n\rresponse_size\x18\x05 \x01(\x03\x12\x12\n\nuser_agent\x18\x06 \x01(\t\x12\x11\n\tremote_ip\x18\x07 \x01(\t\x12\x11\n\tserver_ip\x18\r \x01(\t\x12\x0f\n\x07referer\x18\x08 \x01(\t\x12*\n\x07latency\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x14\n\x0c\x63\x61\x63he_lookup\x18\x0b \x01(\x08\x12\x11\n\tcache_hit\x18\t \x01(\x08\x12*\n\"cache_validated_with_origin_server\x18\n \x01(\x08\x12\x18\n\x10\x63\x61\x63he_fill_bytes\x18\x0c \x01(\x03\x12\x10\n\x08protocol\x18\x0f \x01(\tB\xbe\x01\n\x17\x63om.google.logging.typeB\x10HttpRequestProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xaa\x02\x19Google.Cloud.Logging.Type\xca\x02\x19Google\\Cloud\\Logging\\Type\xea\x02\x1cGoogle::Cloud::Logging::Typeb\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.protobuf.Duration", "google/protobuf/duration.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}"
|
26
31
|
end
|
27
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."
|
28
35
|
end
|
29
36
|
|
30
37
|
module Google
|
@@ -44,3 +51,101 @@ module Google
|
|
44
51
|
end
|
45
52
|
end
|
46
53
|
end
|
54
|
+
|
55
|
+
#### Source proto file: google/logging/type/http_request.proto ####
|
56
|
+
#
|
57
|
+
# // Copyright 2023 Google LLC
|
58
|
+
# //
|
59
|
+
# // Licensed under the Apache License, Version 2.0 (the "License");
|
60
|
+
# // you may not use this file except in compliance with the License.
|
61
|
+
# // You may obtain a copy of the License at
|
62
|
+
# //
|
63
|
+
# // http://www.apache.org/licenses/LICENSE-2.0
|
64
|
+
# //
|
65
|
+
# // Unless required by applicable law or agreed to in writing, software
|
66
|
+
# // distributed under the License is distributed on an "AS IS" BASIS,
|
67
|
+
# // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
68
|
+
# // See the License for the specific language governing permissions and
|
69
|
+
# // limitations under the License.
|
70
|
+
#
|
71
|
+
# syntax = "proto3";
|
72
|
+
#
|
73
|
+
# package google.logging.type;
|
74
|
+
#
|
75
|
+
# import "google/protobuf/duration.proto";
|
76
|
+
#
|
77
|
+
# option csharp_namespace = "Google.Cloud.Logging.Type";
|
78
|
+
# option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";
|
79
|
+
# option java_multiple_files = true;
|
80
|
+
# option java_outer_classname = "HttpRequestProto";
|
81
|
+
# option java_package = "com.google.logging.type";
|
82
|
+
# option php_namespace = "Google\\Cloud\\Logging\\Type";
|
83
|
+
# option ruby_package = "Google::Cloud::Logging::Type";
|
84
|
+
#
|
85
|
+
# // A common proto for logging HTTP requests. Only contains semantics
|
86
|
+
# // defined by the HTTP specification. Product-specific logging
|
87
|
+
# // information MUST be defined in a separate message.
|
88
|
+
# message HttpRequest {
|
89
|
+
# // The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
|
90
|
+
# string request_method = 1;
|
91
|
+
#
|
92
|
+
# // The scheme (http, https), the host name, the path and the query
|
93
|
+
# // portion of the URL that was requested.
|
94
|
+
# // Example: `"http://example.com/some/info?color=red"`.
|
95
|
+
# string request_url = 2;
|
96
|
+
#
|
97
|
+
# // The size of the HTTP request message in bytes, including the request
|
98
|
+
# // headers and the request body.
|
99
|
+
# int64 request_size = 3;
|
100
|
+
#
|
101
|
+
# // The response code indicating the status of response.
|
102
|
+
# // Examples: 200, 404.
|
103
|
+
# int32 status = 4;
|
104
|
+
#
|
105
|
+
# // The size of the HTTP response message sent back to the client, in bytes,
|
106
|
+
# // including the response headers and the response body.
|
107
|
+
# int64 response_size = 5;
|
108
|
+
#
|
109
|
+
# // The user agent sent by the client. Example:
|
110
|
+
# // `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
|
111
|
+
# // CLR 1.0.3705)"`.
|
112
|
+
# string user_agent = 6;
|
113
|
+
#
|
114
|
+
# // The IP address (IPv4 or IPv6) of the client that issued the HTTP
|
115
|
+
# // request. This field can include port information. Examples:
|
116
|
+
# // `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
117
|
+
# string remote_ip = 7;
|
118
|
+
#
|
119
|
+
# // The IP address (IPv4 or IPv6) of the origin server that the request was
|
120
|
+
# // sent to. This field can include port information. Examples:
|
121
|
+
# // `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
122
|
+
# string server_ip = 13;
|
123
|
+
#
|
124
|
+
# // The referer URL of the request, as defined in
|
125
|
+
# // [HTTP/1.1 Header Field
|
126
|
+
# // Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
|
127
|
+
# string referer = 8;
|
128
|
+
#
|
129
|
+
# // The request processing latency on the server, from the time the request was
|
130
|
+
# // received until the response was sent.
|
131
|
+
# google.protobuf.Duration latency = 14;
|
132
|
+
#
|
133
|
+
# // Whether or not a cache lookup was attempted.
|
134
|
+
# bool cache_lookup = 11;
|
135
|
+
#
|
136
|
+
# // Whether or not an entity was served from cache
|
137
|
+
# // (with or without validation).
|
138
|
+
# bool cache_hit = 9;
|
139
|
+
#
|
140
|
+
# // Whether or not the response was validated with the origin server before
|
141
|
+
# // being served from cache. This field is only meaningful if `cache_hit` is
|
142
|
+
# // True.
|
143
|
+
# bool cache_validated_with_origin_server = 10;
|
144
|
+
#
|
145
|
+
# // The number of HTTP response bytes inserted into cache. Set only when a
|
146
|
+
# // cache fill was attempted.
|
147
|
+
# int64 cache_fill_bytes = 12;
|
148
|
+
#
|
149
|
+
# // Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
|
150
|
+
# string protocol = 15;
|
151
|
+
# }
|
@@ -1,23 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/logging/type/log_severity.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n&google/logging/type/log_severity.proto\x12\x13google.logging.type*\x82\x01\n\x0bLogSeverity\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x64\x12\t\n\x04INFO\x10\xc8\x01\x12\x0b\n\x06NOTICE\x10\xac\x02\x12\x0c\n\x07WARNING\x10\x90\x03\x12\n\n\x05\x45RROR\x10\xf4\x03\x12\r\n\x08\x43RITICAL\x10\xd8\x04\x12\n\n\x05\x41LERT\x10\xbc\x05\x12\x0e\n\tEMERGENCY\x10\xa0\x06\x42\xc5\x01\n\x17\x63om.google.logging.typeB\x10LogSeverityProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xa2\x02\x04GLOG\xaa\x02\x19Google.Cloud.Logging.Type\xca\x02\x19Google\\Cloud\\Logging\\Type\xea\x02\x1cGoogle::Cloud::Logging::Typeb\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}"
|
19
28
|
end
|
20
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."
|
21
32
|
end
|
22
33
|
|
23
34
|
module Google
|
@@ -37,3 +48,77 @@ module Google
|
|
37
48
|
end
|
38
49
|
end
|
39
50
|
end
|
51
|
+
|
52
|
+
#### Source proto file: google/logging/type/log_severity.proto ####
|
53
|
+
#
|
54
|
+
# // Copyright 2023 Google LLC
|
55
|
+
# //
|
56
|
+
# // Licensed under the Apache License, Version 2.0 (the "License");
|
57
|
+
# // you may not use this file except in compliance with the License.
|
58
|
+
# // You may obtain a copy of the License at
|
59
|
+
# //
|
60
|
+
# // http://www.apache.org/licenses/LICENSE-2.0
|
61
|
+
# //
|
62
|
+
# // Unless required by applicable law or agreed to in writing, software
|
63
|
+
# // distributed under the License is distributed on an "AS IS" BASIS,
|
64
|
+
# // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
65
|
+
# // See the License for the specific language governing permissions and
|
66
|
+
# // limitations under the License.
|
67
|
+
#
|
68
|
+
# syntax = "proto3";
|
69
|
+
#
|
70
|
+
# package google.logging.type;
|
71
|
+
#
|
72
|
+
# option csharp_namespace = "Google.Cloud.Logging.Type";
|
73
|
+
# option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";
|
74
|
+
# option java_multiple_files = true;
|
75
|
+
# option java_outer_classname = "LogSeverityProto";
|
76
|
+
# option java_package = "com.google.logging.type";
|
77
|
+
# option objc_class_prefix = "GLOG";
|
78
|
+
# option php_namespace = "Google\\Cloud\\Logging\\Type";
|
79
|
+
# option ruby_package = "Google::Cloud::Logging::Type";
|
80
|
+
#
|
81
|
+
# // The severity of the event described in a log entry, expressed as one of the
|
82
|
+
# // standard severity levels listed below. For your reference, the levels are
|
83
|
+
# // assigned the listed numeric values. The effect of using numeric values other
|
84
|
+
# // than those listed is undefined.
|
85
|
+
# //
|
86
|
+
# // You can filter for log entries by severity. For example, the following
|
87
|
+
# // filter expression will match log entries with severities `INFO`, `NOTICE`,
|
88
|
+
# // and `WARNING`:
|
89
|
+
# //
|
90
|
+
# // severity > DEBUG AND severity <= WARNING
|
91
|
+
# //
|
92
|
+
# // If you are writing log entries, you should map other severity encodings to
|
93
|
+
# // one of these standard levels. For example, you might map all of Java's FINE,
|
94
|
+
# // FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
|
95
|
+
# // original severity level in the log entry payload if you wish.
|
96
|
+
# enum LogSeverity {
|
97
|
+
# // (0) The log entry has no assigned severity level.
|
98
|
+
# DEFAULT = 0;
|
99
|
+
#
|
100
|
+
# // (100) Debug or trace information.
|
101
|
+
# DEBUG = 100;
|
102
|
+
#
|
103
|
+
# // (200) Routine information, such as ongoing status or performance.
|
104
|
+
# INFO = 200;
|
105
|
+
#
|
106
|
+
# // (300) Normal but significant events, such as start up, shut down, or
|
107
|
+
# // a configuration change.
|
108
|
+
# NOTICE = 300;
|
109
|
+
#
|
110
|
+
# // (400) Warning events might cause problems.
|
111
|
+
# WARNING = 400;
|
112
|
+
#
|
113
|
+
# // (500) Error events are likely to cause problems.
|
114
|
+
# ERROR = 500;
|
115
|
+
#
|
116
|
+
# // (600) Critical events cause more severe problems or outages.
|
117
|
+
# CRITICAL = 600;
|
118
|
+
#
|
119
|
+
# // (700) A person must take an action immediately.
|
120
|
+
# ALERT = 700;
|
121
|
+
#
|
122
|
+
# // (800) One or more systems are unusable.
|
123
|
+
# EMERGENCY = 800;
|
124
|
+
# }
|