Debian Codegraph @

googleapis/cloud/identitytoolkit/logging/request_log.pb.go

raw
1 // Copyright 2022 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v3.12.2
19 // source: google/cloud/identitytoolkit/logging/request_log.proto
20
21 package logging
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 status "google.golang.org/genproto/googleapis/rpc/status"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 structpb "google.golang.org/protobuf/types/known/structpb"
31 )
32
33 const (
34 // Verify that this generated code is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36 // Verify that runtime/protoimpl is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40 // Log of a request to Identitytoolkit. This proto is modeled after
41 // google.cloud.audit.AuditLog so that consumers can easily query
42 // for requests regardless of whether those requests were logged via
43 // Cloud Audit Logging or Identitytoolkit request logging.
44 type RequestLog struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // The name of the service method or operation.
50 // For API calls, this should be the name of the API method.
51 // For example,
52 //
53 // "google.datastore.v1.Datastore.RunQuery"
54 // "google.logging.v1.LoggingService.DeleteLog"
55 MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
56 // The status of the overall operation.
57 Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
58 // Metadata about the operation.
59 RequestMetadata *RequestMetadata `protobuf:"bytes,3,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty"`
60 // The operation request. This may not include all request parameters,
61 // such as those that are too large, privacy-sensitive, or duplicated
62 // elsewhere in the log record.
63 // It should never include user-generated data, such as file contents.
64 // When the JSON object represented here has a proto equivalent, the proto
65 // name will be indicated in the `@type` property.
66 Request *structpb.Struct `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"`
67 // The operation response. This may not include all response elements,
68 // such as those that are too large, privacy-sensitive, or duplicated
69 // elsewhere in the log record.
70 // It should never include user-generated data, such as file contents.
71 // When the JSON object represented here has a proto equivalent, the proto
72 // name will be indicated in the `@type` property.
73 Response *structpb.Struct `protobuf:"bytes,5,opt,name=response,proto3" json:"response,omitempty"`
74 // The number of items returned from a List or Query API method,
75 // if applicable.
76 NumResponseItems int64 `protobuf:"varint,6,opt,name=num_response_items,json=numResponseItems,proto3" json:"num_response_items,omitempty"`
77 // Other service-specific data about the request, response, and other
78 // information associated with the current event.
79 Metadata *structpb.Struct `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
80 }
81
82 func (x *RequestLog) Reset() {
83 *x = RequestLog{}
84 if protoimpl.UnsafeEnabled {
85 mi := &file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes[0]
86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
87 ms.StoreMessageInfo(mi)
88 }
89 }
90
91 func (x *RequestLog) String() string {
92 return protoimpl.X.MessageStringOf(x)
93 }
94
95 func (*RequestLog) ProtoMessage() {}
96
97 func (x *RequestLog) ProtoReflect() protoreflect.Message {
98 mi := &file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes[0]
99 if protoimpl.UnsafeEnabled && x != nil {
100 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
101 if ms.LoadMessageInfo() == nil {
102 ms.StoreMessageInfo(mi)
103 }
104 return ms
105 }
106 return mi.MessageOf(x)
107 }
108
109 // Deprecated: Use RequestLog.ProtoReflect.Descriptor instead.
110 func (*RequestLog) Descriptor() ([]byte, []int) {
111 return file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescGZIP(), []int{0}
112 }
113
114 func (x *RequestLog) GetMethodName() string {
115 if x != nil {
116 return x.MethodName
117 }
118 return ""
119 }
120
121 func (x *RequestLog) GetStatus() *status.Status {
122 if x != nil {
123 return x.Status
124 }
125 return nil
126 }
127
128 func (x *RequestLog) GetRequestMetadata() *RequestMetadata {
129 if x != nil {
130 return x.RequestMetadata
131 }
132 return nil
133 }
134
135 func (x *RequestLog) GetRequest() *structpb.Struct {
136 if x != nil {
137 return x.Request
138 }
139 return nil
140 }
141
142 func (x *RequestLog) GetResponse() *structpb.Struct {
143 if x != nil {
144 return x.Response
145 }
146 return nil
147 }
148
149 func (x *RequestLog) GetNumResponseItems() int64 {
150 if x != nil {
151 return x.NumResponseItems
152 }
153 return 0
154 }
155
156 func (x *RequestLog) GetMetadata() *structpb.Struct {
157 if x != nil {
158 return x.Metadata
159 }
160 return nil
161 }
162
163 // Metadata about the request.
164 type RequestMetadata struct {
165 state protoimpl.MessageState
166 sizeCache protoimpl.SizeCache
167 unknownFields protoimpl.UnknownFields
168
169 // The IP address of the caller.
170 CallerIp string `protobuf:"bytes,1,opt,name=caller_ip,json=callerIp,proto3" json:"caller_ip,omitempty"`
171 // The user agent of the caller.
172 // This information is not authenticated and should be treated
173 // accordingly.
174 //
175 // For example:
176 //
177 // + `google-api-python-client/1.4.0`:
178 // The request was made by the Google API client for Python.
179 // + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
180 // The request was made by the Google Cloud SDK CLI (gcloud).
181 // + `AppEngine-Google; (+http://code.google.com/appengine; appid:
182 // s~my-project`:
183 // The request was made from the `my-project` App Engine app.
184 // NOLINT
185 CallerSuppliedUserAgent string `protobuf:"bytes,2,opt,name=caller_supplied_user_agent,json=callerSuppliedUserAgent,proto3" json:"caller_supplied_user_agent,omitempty"`
186 }
187
188 func (x *RequestMetadata) Reset() {
189 *x = RequestMetadata{}
190 if protoimpl.UnsafeEnabled {
191 mi := &file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes[1]
192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
193 ms.StoreMessageInfo(mi)
194 }
195 }
196
197 func (x *RequestMetadata) String() string {
198 return protoimpl.X.MessageStringOf(x)
199 }
200
201 func (*RequestMetadata) ProtoMessage() {}
202
203 func (x *RequestMetadata) ProtoReflect() protoreflect.Message {
204 mi := &file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes[1]
205 if protoimpl.UnsafeEnabled && x != nil {
206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207 if ms.LoadMessageInfo() == nil {
208 ms.StoreMessageInfo(mi)
209 }
210 return ms
211 }
212 return mi.MessageOf(x)
213 }
214
215 // Deprecated: Use RequestMetadata.ProtoReflect.Descriptor instead.
216 func (*RequestMetadata) Descriptor() ([]byte, []int) {
217 return file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescGZIP(), []int{1}
218 }
219
220 func (x *RequestMetadata) GetCallerIp() string {
221 if x != nil {
222 return x.CallerIp
223 }
224 return ""
225 }
226
227 func (x *RequestMetadata) GetCallerSuppliedUserAgent() string {
228 if x != nil {
229 return x.CallerSuppliedUserAgent
230 }
231 return ""
232 }
233
234 var File_google_cloud_identitytoolkit_logging_request_log_proto protoreflect.FileDescriptor
235
236 var file_google_cloud_identitytoolkit_logging_request_log_proto_rawDesc = []byte{
237 0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
238 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x6c,
239 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6c,
240 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
241 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74,
242 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x1a, 0x1c,
243 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
244 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f,
245 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e,
246 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x03, 0x0a, 0x0a, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
247 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x6e,
248 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x68, 0x6f,
249 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
250 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72,
251 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
252 0x73, 0x12, 0x60, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74,
253 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f,
254 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
255 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69,
256 0x6e, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
257 0x74, 0x61, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64,
258 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x04,
259 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
260 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x72,
261 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
262 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
263 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
264 0x74, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6e,
265 0x75, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x74, 0x65, 0x6d,
266 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70,
267 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74,
268 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f,
269 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74,
270 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6b,
271 0x0a, 0x0f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
272 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x69, 0x70, 0x18, 0x01,
273 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x70, 0x12, 0x3b,
274 0x0a, 0x1a, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65,
275 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
276 0x28, 0x09, 0x52, 0x17, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69,
277 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x8a, 0x01, 0x0a, 0x28,
278 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
279 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74,
280 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x0f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
281 0x74, 0x4c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x6f, 0x6f,
282 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
283 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
284 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
285 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
286 0x3b, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
287 }
288
289 var (
290 file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescOnce sync.Once
291 file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescData = file_google_cloud_identitytoolkit_logging_request_log_proto_rawDesc
292 )
293
294 func file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescGZIP() []byte {
295 file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescOnce.Do(func() {
296 file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescData)
297 })
298 return file_google_cloud_identitytoolkit_logging_request_log_proto_rawDescData
299 }
300
301 var file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
302 var file_google_cloud_identitytoolkit_logging_request_log_proto_goTypes = []interface{}{
303 (*RequestLog)(nil), // 0: google.cloud.identitytoolkit.logging.RequestLog
304 (*RequestMetadata)(nil), // 1: google.cloud.identitytoolkit.logging.RequestMetadata
305 (*status.Status)(nil), // 2: google.rpc.Status
306 (*structpb.Struct)(nil), // 3: google.protobuf.Struct
307 }
308 var file_google_cloud_identitytoolkit_logging_request_log_proto_depIdxs = []int32{
309 2, // 0: google.cloud.identitytoolkit.logging.RequestLog.status:type_name -> google.rpc.Status
310 1, // 1: google.cloud.identitytoolkit.logging.RequestLog.request_metadata:type_name -> google.cloud.identitytoolkit.logging.RequestMetadata
311 3, // 2: google.cloud.identitytoolkit.logging.RequestLog.request:type_name -> google.protobuf.Struct
312 3, // 3: google.cloud.identitytoolkit.logging.RequestLog.response:type_name -> google.protobuf.Struct
313 3, // 4: google.cloud.identitytoolkit.logging.RequestLog.metadata:type_name -> google.protobuf.Struct
314 5, // [5:5] is the sub-list for method output_type
315 5, // [5:5] is the sub-list for method input_type
316 5, // [5:5] is the sub-list for extension type_name
317 5, // [5:5] is the sub-list for extension extendee
318 0, // [0:5] is the sub-list for field type_name
319 }
320
321 func init() { file_google_cloud_identitytoolkit_logging_request_log_proto_init() }
322 func file_google_cloud_identitytoolkit_logging_request_log_proto_init() {
323 if File_google_cloud_identitytoolkit_logging_request_log_proto != nil {
324 return
325 }
326 if !protoimpl.UnsafeEnabled {
327 file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
328 switch v := v.(*RequestLog); i {
329 case 0:
330 return &v.state
331 case 1:
332 return &v.sizeCache
333 case 2:
334 return &v.unknownFields
335 default:
336 return nil
337 }
338 }
339 file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
340 switch v := v.(*RequestMetadata); i {
341 case 0:
342 return &v.state
343 case 1:
344 return &v.sizeCache
345 case 2:
346 return &v.unknownFields
347 default:
348 return nil
349 }
350 }
351 }
352 type x struct{}
353 out := protoimpl.TypeBuilder{
354 File: protoimpl.DescBuilder{
355 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
356 RawDescriptor: file_google_cloud_identitytoolkit_logging_request_log_proto_rawDesc,
357 NumEnums: 0,
358 NumMessages: 2,
359 NumExtensions: 0,
360 NumServices: 0,
361 },
362 GoTypes: file_google_cloud_identitytoolkit_logging_request_log_proto_goTypes,
363 DependencyIndexes: file_google_cloud_identitytoolkit_logging_request_log_proto_depIdxs,
364 MessageInfos: file_google_cloud_identitytoolkit_logging_request_log_proto_msgTypes,
365 }.Build()
366 File_google_cloud_identitytoolkit_logging_request_log_proto = out.File
367 file_google_cloud_identitytoolkit_logging_request_log_proto_rawDesc = nil
368 file_google_cloud_identitytoolkit_logging_request_log_proto_goTypes = nil
369 file_google_cloud_identitytoolkit_logging_request_log_proto_depIdxs = nil
370 }