1// Copyright 2021 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/api/servicecontrol/v1/log_entry.proto 20 21package servicecontrol 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 _type "google.golang.org/genproto/googleapis/logging/type" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30 anypb "google.golang.org/protobuf/types/known/anypb" 31 structpb "google.golang.org/protobuf/types/known/structpb" 32 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 33) 34 35const ( 36 // Verify that this generated code is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 38 // Verify that runtime/protoimpl is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 40) 41 42// An individual log entry. 43type LogEntry struct { 44 state protoimpl.MessageState 45 sizeCache protoimpl.SizeCache 46 unknownFields protoimpl.UnknownFields 47 48 // Required. The log to which this log entry belongs. Examples: `"syslog"`, 49 // `"book_log"`. 50 Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` 51 // The time the event described by the log entry occurred. If 52 // omitted, defaults to operation start time. 53 Timestamp *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 54 // The severity of the log entry. The default value is 55 // `LogSeverity.DEFAULT`. 56 Severity _type.LogSeverity `protobuf:"varint,12,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"` 57 // Optional. Information about the HTTP request associated with this 58 // log entry, if applicable. 59 HttpRequest *HttpRequest `protobuf:"bytes,14,opt,name=http_request,json=httpRequest,proto3" json:"http_request,omitempty"` 60 // Optional. Resource name of the trace associated with the log entry, if any. 61 // If this field contains a relative resource name, you can assume the name is 62 // relative to `//tracing.googleapis.com`. Example: 63 // `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824` 64 Trace string `protobuf:"bytes,15,opt,name=trace,proto3" json:"trace,omitempty"` 65 // A unique ID for the log entry used for deduplication. If omitted, 66 // the implementation will generate one based on operation_id. 67 InsertId string `protobuf:"bytes,4,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"` 68 // A set of user-defined (key, value) data that provides additional 69 // information about the log entry. 70 Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 71 // The log entry payload, which can be one of multiple types. 72 // 73 // Types that are assignable to Payload: 74 // *LogEntry_ProtoPayload 75 // *LogEntry_TextPayload 76 // *LogEntry_StructPayload 77 Payload isLogEntry_Payload `protobuf_oneof:"payload"` 78 // Optional. Information about an operation associated with the log entry, if 79 // applicable. 80 Operation *LogEntryOperation `protobuf:"bytes,16,opt,name=operation,proto3" json:"operation,omitempty"` 81 // Optional. Source code location information associated with the log entry, 82 // if any. 83 SourceLocation *LogEntrySourceLocation `protobuf:"bytes,17,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"` 84} 85 86func (x *LogEntry) Reset() { 87 *x = LogEntry{} 88 if protoimpl.UnsafeEnabled { 89 mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0] 90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 91 ms.StoreMessageInfo(mi) 92 } 93} 94 95func (x *LogEntry) String() string { 96 return protoimpl.X.MessageStringOf(x) 97} 98 99func (*LogEntry) ProtoMessage() {} 100 101func (x *LogEntry) ProtoReflect() protoreflect.Message { 102 mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0] 103 if protoimpl.UnsafeEnabled && x != nil { 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 if ms.LoadMessageInfo() == nil { 106 ms.StoreMessageInfo(mi) 107 } 108 return ms 109 } 110 return mi.MessageOf(x) 111} 112 113// Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. 114func (*LogEntry) Descriptor() ([]byte, []int) { 115 return file_google_api_servicecontrol_v1_log_entry_proto_rawDescGZIP(), []int{0} 116} 117 118func (x *LogEntry) GetName() string { 119 if x != nil { 120 return x.Name 121 } 122 return "" 123} 124 125func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp { 126 if x != nil { 127 return x.Timestamp 128 } 129 return nil 130} 131 132func (x *LogEntry) GetSeverity() _type.LogSeverity { 133 if x != nil { 134 return x.Severity 135 } 136 return _type.LogSeverity_DEFAULT 137} 138 139func (x *LogEntry) GetHttpRequest() *HttpRequest { 140 if x != nil { 141 return x.HttpRequest 142 } 143 return nil 144} 145 146func (x *LogEntry) GetTrace() string { 147 if x != nil { 148 return x.Trace 149 } 150 return "" 151} 152 153func (x *LogEntry) GetInsertId() string { 154 if x != nil { 155 return x.InsertId 156 } 157 return "" 158} 159 160func (x *LogEntry) GetLabels() map[string]string { 161 if x != nil { 162 return x.Labels 163 } 164 return nil 165} 166 167func (m *LogEntry) GetPayload() isLogEntry_Payload { 168 if m != nil { 169 return m.Payload 170 } 171 return nil 172} 173 174func (x *LogEntry) GetProtoPayload() *anypb.Any { 175 if x, ok := x.GetPayload().(*LogEntry_ProtoPayload); ok { 176 return x.ProtoPayload 177 } 178 return nil 179} 180 181func (x *LogEntry) GetTextPayload() string { 182 if x, ok := x.GetPayload().(*LogEntry_TextPayload); ok { 183 return x.TextPayload 184 } 185 return "" 186} 187 188func (x *LogEntry) GetStructPayload() *structpb.Struct { 189 if x, ok := x.GetPayload().(*LogEntry_StructPayload); ok { 190 return x.StructPayload 191 } 192 return nil 193} 194 195func (x *LogEntry) GetOperation() *LogEntryOperation { 196 if x != nil { 197 return x.Operation 198 } 199 return nil 200} 201 202func (x *LogEntry) GetSourceLocation() *LogEntrySourceLocation { 203 if x != nil { 204 return x.SourceLocation 205 } 206 return nil 207} 208 209type isLogEntry_Payload interface { 210 isLogEntry_Payload() 211} 212 213type LogEntry_ProtoPayload struct { 214 // The log entry payload, represented as a protocol buffer that is 215 // expressed as a JSON object. The only accepted type currently is 216 // [AuditLog][google.cloud.audit.AuditLog]. 217 ProtoPayload *anypb.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"` 218} 219 220type LogEntry_TextPayload struct { 221 // The log entry payload, represented as a Unicode string (UTF-8). 222 TextPayload string `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"` 223} 224 225type LogEntry_StructPayload struct { 226 // The log entry payload, represented as a structure that 227 // is expressed as a JSON object. 228 StructPayload *structpb.Struct `protobuf:"bytes,6,opt,name=struct_payload,json=structPayload,proto3,oneof"` 229} 230 231func (*LogEntry_ProtoPayload) isLogEntry_Payload() {} 232 233func (*LogEntry_TextPayload) isLogEntry_Payload() {} 234 235func (*LogEntry_StructPayload) isLogEntry_Payload() {} 236 237// Additional information about a potentially long-running operation with which 238// a log entry is associated. 239type LogEntryOperation struct { 240 state protoimpl.MessageState 241 sizeCache protoimpl.SizeCache 242 unknownFields protoimpl.UnknownFields 243 244 // Optional. An arbitrary operation identifier. Log entries with the 245 // same identifier are assumed to be part of the same operation. 246 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 247 // Optional. An arbitrary producer identifier. The combination of 248 // `id` and `producer` must be globally unique. Examples for `producer`: 249 // `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. 250 Producer string `protobuf:"bytes,2,opt,name=producer,proto3" json:"producer,omitempty"` 251 // Optional. Set this to True if this is the first log entry in the operation. 252 First bool `protobuf:"varint,3,opt,name=first,proto3" json:"first,omitempty"` 253 // Optional. Set this to True if this is the last log entry in the operation. 254 Last bool `protobuf:"varint,4,opt,name=last,proto3" json:"last,omitempty"` 255} 256 257func (x *LogEntryOperation) Reset() { 258 *x = LogEntryOperation{} 259 if protoimpl.UnsafeEnabled { 260 mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[1] 261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 262 ms.StoreMessageInfo(mi) 263 } 264} 265 266func (x *LogEntryOperation) String() string { 267 return protoimpl.X.MessageStringOf(x) 268} 269 270func (*LogEntryOperation) ProtoMessage() {} 271 272func (x *LogEntryOperation) ProtoReflect() protoreflect.Message { 273 mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[1] 274 if protoimpl.UnsafeEnabled && x != nil { 275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 276 if ms.LoadMessageInfo() == nil { 277 ms.StoreMessageInfo(mi) 278 } 279 return ms 280 } 281 return mi.MessageOf(x) 282} 283 284// Deprecated: Use LogEntryOperation.ProtoReflect.Descriptor instead. 285func (*LogEntryOperation) Descriptor() ([]byte, []int) { 286 return file_google_api_servicecontrol_v1_log_entry_proto_rawDescGZIP(), []int{1} 287} 288 289func (x *LogEntryOperation) GetId() string { 290 if x != nil { 291 return x.Id 292 } 293 return "" 294} 295 296func (x *LogEntryOperation) GetProducer() string { 297 if x != nil { 298 return x.Producer 299 } 300 return "" 301} 302 303func (x *LogEntryOperation) GetFirst() bool { 304 if x != nil { 305 return x.First 306 } 307 return false 308} 309 310func (x *LogEntryOperation) GetLast() bool { 311 if x != nil { 312 return x.Last 313 } 314 return false 315} 316 317// Additional information about the source code location that produced the log 318// entry. 319type LogEntrySourceLocation struct { 320 state protoimpl.MessageState 321 sizeCache protoimpl.SizeCache 322 unknownFields protoimpl.UnknownFields 323 324 // Optional. Source file name. Depending on the runtime environment, this 325 // might be a simple name or a fully-qualified name. 326 File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` 327 // Optional. Line within the source file. 1-based; 0 indicates no line number 328 // available. 329 Line int64 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` 330 // Optional. Human-readable name of the function or method being invoked, with 331 // optional context such as the class or package name. This information may be 332 // used in contexts such as the logs viewer, where a file and line number are 333 // less meaningful. The format can vary by language. For example: 334 // `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` 335 // (Python). 336 Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` 337} 338 339func (x *LogEntrySourceLocation) Reset() { 340 *x = LogEntrySourceLocation{} 341 if protoimpl.UnsafeEnabled { 342 mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[2] 343 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 344 ms.StoreMessageInfo(mi) 345 } 346} 347 348func (x *LogEntrySourceLocation) String() string { 349 return protoimpl.X.MessageStringOf(x) 350} 351 352func (*LogEntrySourceLocation) ProtoMessage() {} 353 354func (x *LogEntrySourceLocation) ProtoReflect() protoreflect.Message { 355 mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[2] 356 if protoimpl.UnsafeEnabled && x != nil { 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 if ms.LoadMessageInfo() == nil { 359 ms.StoreMessageInfo(mi) 360 } 361 return ms 362 } 363 return mi.MessageOf(x) 364} 365 366// Deprecated: Use LogEntrySourceLocation.ProtoReflect.Descriptor instead. 367func (*LogEntrySourceLocation) Descriptor() ([]byte, []int) { 368 return file_google_api_servicecontrol_v1_log_entry_proto_rawDescGZIP(), []int{2} 369} 370 371func (x *LogEntrySourceLocation) GetFile() string { 372 if x != nil { 373 return x.File 374 } 375 return "" 376} 377 378func (x *LogEntrySourceLocation) GetLine() int64 { 379 if x != nil { 380 return x.Line 381 } 382 return 0 383} 384 385func (x *LogEntrySourceLocation) GetFunction() string { 386 if x != nil { 387 return x.Function 388 } 389 return "" 390} 391 392var File_google_api_servicecontrol_v1_log_entry_proto protoreflect.FileDescriptor 393 394var file_google_api_servicecontrol_v1_log_entry_proto_rawDesc = []byte{ 395 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 396 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 397 0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 398 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 399 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x2f, 0x67, 0x6f, 400 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 401 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 402 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x67, 403 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x79, 404 0x70, 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x2e, 405 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 406 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 407 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 408 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 409 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 410 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 411 0xfb, 0x05, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 412 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 413 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0b, 0x20, 414 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 415 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 416 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3c, 0x0a, 0x08, 0x73, 0x65, 417 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 418 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 419 0x70, 0x65, 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 420 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x4c, 0x0a, 0x0c, 0x68, 0x74, 0x74, 0x70, 421 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 422 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 423 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x74, 424 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x52, 425 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 426 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 427 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 428 0x08, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x6c, 0x61, 0x62, 429 0x65, 0x6c, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 430 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 431 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 432 0x79, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 433 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3b, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 434 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 435 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 436 0x6e, 0x79, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 437 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 438 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 439 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x40, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x75, 0x63, 440 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 441 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 442 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x75, 443 0x63, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4d, 0x0a, 0x09, 0x6f, 0x70, 0x65, 444 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 445 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 446 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x45, 447 0x6e, 0x74, 0x72, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f, 448 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 449 0x63, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 450 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 451 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 452 0x2e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 453 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 454 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 455 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 456 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 457 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 458 0x38, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x69, 0x0a, 459 0x11, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 460 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 461 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x18, 0x02, 462 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x12, 0x14, 463 0x0a, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 464 0x69, 0x72, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 465 0x28, 0x08, 0x52, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x22, 0x5c, 0x0a, 0x16, 0x4c, 0x6f, 0x67, 0x45, 466 0x6e, 0x74, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 467 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 468 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 469 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 470 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 471 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xe5, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 472 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 473 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x4c, 0x6f, 0x67, 474 0x45, 0x6e, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x6f, 475 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 476 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 477 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 478 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 479 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 480 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 481 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 482 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 483 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 484 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 485 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 486 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 487} 488 489var ( 490 file_google_api_servicecontrol_v1_log_entry_proto_rawDescOnce sync.Once 491 file_google_api_servicecontrol_v1_log_entry_proto_rawDescData = file_google_api_servicecontrol_v1_log_entry_proto_rawDesc 492) 493 494func file_google_api_servicecontrol_v1_log_entry_proto_rawDescGZIP() []byte { 495 file_google_api_servicecontrol_v1_log_entry_proto_rawDescOnce.Do(func() { 496 file_google_api_servicecontrol_v1_log_entry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_servicecontrol_v1_log_entry_proto_rawDescData) 497 }) 498 return file_google_api_servicecontrol_v1_log_entry_proto_rawDescData 499} 500 501var file_google_api_servicecontrol_v1_log_entry_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 502var file_google_api_servicecontrol_v1_log_entry_proto_goTypes = []interface{}{ 503 (*LogEntry)(nil), // 0: google.api.servicecontrol.v1.LogEntry 504 (*LogEntryOperation)(nil), // 1: google.api.servicecontrol.v1.LogEntryOperation 505 (*LogEntrySourceLocation)(nil), // 2: google.api.servicecontrol.v1.LogEntrySourceLocation 506 nil, // 3: google.api.servicecontrol.v1.LogEntry.LabelsEntry 507 (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp 508 (_type.LogSeverity)(0), // 5: google.logging.type.LogSeverity 509 (*HttpRequest)(nil), // 6: google.api.servicecontrol.v1.HttpRequest 510 (*anypb.Any)(nil), // 7: google.protobuf.Any 511 (*structpb.Struct)(nil), // 8: google.protobuf.Struct 512} 513var file_google_api_servicecontrol_v1_log_entry_proto_depIdxs = []int32{ 514 4, // 0: google.api.servicecontrol.v1.LogEntry.timestamp:type_name -> google.protobuf.Timestamp 515 5, // 1: google.api.servicecontrol.v1.LogEntry.severity:type_name -> google.logging.type.LogSeverity 516 6, // 2: google.api.servicecontrol.v1.LogEntry.http_request:type_name -> google.api.servicecontrol.v1.HttpRequest 517 3, // 3: google.api.servicecontrol.v1.LogEntry.labels:type_name -> google.api.servicecontrol.v1.LogEntry.LabelsEntry 518 7, // 4: google.api.servicecontrol.v1.LogEntry.proto_payload:type_name -> google.protobuf.Any 519 8, // 5: google.api.servicecontrol.v1.LogEntry.struct_payload:type_name -> google.protobuf.Struct 520 1, // 6: google.api.servicecontrol.v1.LogEntry.operation:type_name -> google.api.servicecontrol.v1.LogEntryOperation 521 2, // 7: google.api.servicecontrol.v1.LogEntry.source_location:type_name -> google.api.servicecontrol.v1.LogEntrySourceLocation 522 8, // [8:8] is the sub-list for method output_type 523 8, // [8:8] is the sub-list for method input_type 524 8, // [8:8] is the sub-list for extension type_name 525 8, // [8:8] is the sub-list for extension extendee 526 0, // [0:8] is the sub-list for field type_name 527} 528 529func init() { file_google_api_servicecontrol_v1_log_entry_proto_init() } 530func file_google_api_servicecontrol_v1_log_entry_proto_init() { 531 if File_google_api_servicecontrol_v1_log_entry_proto != nil { 532 return 533 } 534 file_google_api_servicecontrol_v1_http_request_proto_init() 535 if !protoimpl.UnsafeEnabled { 536 file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 537 switch v := v.(*LogEntry); i { 538 case 0: 539 return &v.state 540 case 1: 541 return &v.sizeCache 542 case 2: 543 return &v.unknownFields 544 default: 545 return nil 546 } 547 } 548 file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 549 switch v := v.(*LogEntryOperation); i { 550 case 0: 551 return &v.state 552 case 1: 553 return &v.sizeCache 554 case 2: 555 return &v.unknownFields 556 default: 557 return nil 558 } 559 } 560 file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 561 switch v := v.(*LogEntrySourceLocation); i { 562 case 0: 563 return &v.state 564 case 1: 565 return &v.sizeCache 566 case 2: 567 return &v.unknownFields 568 default: 569 return nil 570 } 571 } 572 } 573 file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0].OneofWrappers = []interface{}{ 574 (*LogEntry_ProtoPayload)(nil), 575 (*LogEntry_TextPayload)(nil), 576 (*LogEntry_StructPayload)(nil), 577 } 578 type x struct{} 579 out := protoimpl.TypeBuilder{ 580 File: protoimpl.DescBuilder{ 581 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 582 RawDescriptor: file_google_api_servicecontrol_v1_log_entry_proto_rawDesc, 583 NumEnums: 0, 584 NumMessages: 4, 585 NumExtensions: 0, 586 NumServices: 0, 587 }, 588 GoTypes: file_google_api_servicecontrol_v1_log_entry_proto_goTypes, 589 DependencyIndexes: file_google_api_servicecontrol_v1_log_entry_proto_depIdxs, 590 MessageInfos: file_google_api_servicecontrol_v1_log_entry_proto_msgTypes, 591 }.Build() 592 File_google_api_servicecontrol_v1_log_entry_proto = out.File 593 file_google_api_servicecontrol_v1_log_entry_proto_rawDesc = nil 594 file_google_api_servicecontrol_v1_log_entry_proto_goTypes = nil 595 file_google_api_servicecontrol_v1_log_entry_proto_depIdxs = nil 596} 597