1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/api/servicecontrol/v1/log_entry.proto 3 4package servicecontrol 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 any "github.com/golang/protobuf/ptypes/any" 12 _struct "github.com/golang/protobuf/ptypes/struct" 13 timestamp "github.com/golang/protobuf/ptypes/timestamp" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 _type "google.golang.org/genproto/googleapis/logging/type" 16) 17 18// Reference imports to suppress errors if they are not otherwise used. 19var _ = proto.Marshal 20var _ = fmt.Errorf 21var _ = math.Inf 22 23// This is a compile-time assertion to ensure that this generated file 24// is compatible with the proto package it is being compiled against. 25// A compilation error at this line likely means your copy of the 26// proto package needs to be updated. 27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29// An individual log entry. 30type LogEntry struct { 31 // Required. The log to which this log entry belongs. Examples: `"syslog"`, 32 // `"book_log"`. 33 Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` 34 // The time the event described by the log entry occurred. If 35 // omitted, defaults to operation start time. 36 Timestamp *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 37 // The severity of the log entry. The default value is 38 // `LogSeverity.DEFAULT`. 39 Severity _type.LogSeverity `protobuf:"varint,12,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"` 40 // A unique ID for the log entry used for deduplication. If omitted, 41 // the implementation will generate one based on operation_id. 42 InsertId string `protobuf:"bytes,4,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"` 43 // A set of user-defined (key, value) data that provides additional 44 // information about the log entry. 45 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"` 46 // The log entry payload, which can be one of multiple types. 47 // 48 // Types that are valid to be assigned to Payload: 49 // *LogEntry_ProtoPayload 50 // *LogEntry_TextPayload 51 // *LogEntry_StructPayload 52 Payload isLogEntry_Payload `protobuf_oneof:"payload"` 53 XXX_NoUnkeyedLiteral struct{} `json:"-"` 54 XXX_unrecognized []byte `json:"-"` 55 XXX_sizecache int32 `json:"-"` 56} 57 58func (m *LogEntry) Reset() { *m = LogEntry{} } 59func (m *LogEntry) String() string { return proto.CompactTextString(m) } 60func (*LogEntry) ProtoMessage() {} 61func (*LogEntry) Descriptor() ([]byte, []int) { 62 return fileDescriptor_ca6b95357c9a05d1, []int{0} 63} 64 65func (m *LogEntry) XXX_Unmarshal(b []byte) error { 66 return xxx_messageInfo_LogEntry.Unmarshal(m, b) 67} 68func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 69 return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic) 70} 71func (m *LogEntry) XXX_Merge(src proto.Message) { 72 xxx_messageInfo_LogEntry.Merge(m, src) 73} 74func (m *LogEntry) XXX_Size() int { 75 return xxx_messageInfo_LogEntry.Size(m) 76} 77func (m *LogEntry) XXX_DiscardUnknown() { 78 xxx_messageInfo_LogEntry.DiscardUnknown(m) 79} 80 81var xxx_messageInfo_LogEntry proto.InternalMessageInfo 82 83func (m *LogEntry) GetName() string { 84 if m != nil { 85 return m.Name 86 } 87 return "" 88} 89 90func (m *LogEntry) GetTimestamp() *timestamp.Timestamp { 91 if m != nil { 92 return m.Timestamp 93 } 94 return nil 95} 96 97func (m *LogEntry) GetSeverity() _type.LogSeverity { 98 if m != nil { 99 return m.Severity 100 } 101 return _type.LogSeverity_DEFAULT 102} 103 104func (m *LogEntry) GetInsertId() string { 105 if m != nil { 106 return m.InsertId 107 } 108 return "" 109} 110 111func (m *LogEntry) GetLabels() map[string]string { 112 if m != nil { 113 return m.Labels 114 } 115 return nil 116} 117 118type isLogEntry_Payload interface { 119 isLogEntry_Payload() 120} 121 122type LogEntry_ProtoPayload struct { 123 ProtoPayload *any.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"` 124} 125 126type LogEntry_TextPayload struct { 127 TextPayload string `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"` 128} 129 130type LogEntry_StructPayload struct { 131 StructPayload *_struct.Struct `protobuf:"bytes,6,opt,name=struct_payload,json=structPayload,proto3,oneof"` 132} 133 134func (*LogEntry_ProtoPayload) isLogEntry_Payload() {} 135 136func (*LogEntry_TextPayload) isLogEntry_Payload() {} 137 138func (*LogEntry_StructPayload) isLogEntry_Payload() {} 139 140func (m *LogEntry) GetPayload() isLogEntry_Payload { 141 if m != nil { 142 return m.Payload 143 } 144 return nil 145} 146 147func (m *LogEntry) GetProtoPayload() *any.Any { 148 if x, ok := m.GetPayload().(*LogEntry_ProtoPayload); ok { 149 return x.ProtoPayload 150 } 151 return nil 152} 153 154func (m *LogEntry) GetTextPayload() string { 155 if x, ok := m.GetPayload().(*LogEntry_TextPayload); ok { 156 return x.TextPayload 157 } 158 return "" 159} 160 161func (m *LogEntry) GetStructPayload() *_struct.Struct { 162 if x, ok := m.GetPayload().(*LogEntry_StructPayload); ok { 163 return x.StructPayload 164 } 165 return nil 166} 167 168// XXX_OneofWrappers is for the internal use of the proto package. 169func (*LogEntry) XXX_OneofWrappers() []interface{} { 170 return []interface{}{ 171 (*LogEntry_ProtoPayload)(nil), 172 (*LogEntry_TextPayload)(nil), 173 (*LogEntry_StructPayload)(nil), 174 } 175} 176 177func init() { 178 proto.RegisterType((*LogEntry)(nil), "google.api.servicecontrol.v1.LogEntry") 179 proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.LogEntry.LabelsEntry") 180} 181 182func init() { 183 proto.RegisterFile("google/api/servicecontrol/v1/log_entry.proto", fileDescriptor_ca6b95357c9a05d1) 184} 185 186var fileDescriptor_ca6b95357c9a05d1 = []byte{ 187 // 454 bytes of a gzipped FileDescriptorProto 188 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4f, 0x8f, 0xd3, 0x30, 189 0x10, 0xc5, 0x9b, 0xed, 0x52, 0x1a, 0xa7, 0x5d, 0x21, 0x6b, 0x25, 0x42, 0xa8, 0x44, 0x04, 0x12, 190 0xea, 0x01, 0x39, 0xda, 0x72, 0x59, 0x58, 0x0e, 0x50, 0x09, 0xa9, 0xac, 0x7a, 0x58, 0x65, 0x39, 191 0x71, 0xa9, 0xdc, 0xd6, 0x58, 0x16, 0xae, 0x27, 0x4a, 0xdc, 0x88, 0x9c, 0xf8, 0xbc, 0x7c, 0x0b, 192 0x94, 0xb1, 0x53, 0xf6, 0x9f, 0xf6, 0xe6, 0xf1, 0xfb, 0xbd, 0x99, 0x79, 0x8e, 0x42, 0xde, 0x49, 193 0x00, 0xa9, 0x45, 0xc6, 0x0b, 0x95, 0x55, 0xa2, 0xac, 0xd5, 0x46, 0x6c, 0xc0, 0xd8, 0x12, 0x74, 194 0x56, 0x9f, 0x65, 0x1a, 0xe4, 0x4a, 0x18, 0x5b, 0x36, 0xac, 0x28, 0xc1, 0x02, 0x9d, 0x38, 0x9a, 195 0xf1, 0x42, 0xb1, 0xdb, 0x34, 0xab, 0xcf, 0x92, 0xc9, 0x8d, 0x5e, 0xdc, 0x18, 0xb0, 0xdc, 0x2a, 196 0x30, 0x95, 0xf3, 0x26, 0x6f, 0xbd, 0xaa, 0x41, 0x4a, 0x65, 0x64, 0x66, 0x9b, 0x02, 0x8b, 0x55, 197 0x25, 0x6a, 0x51, 0x2a, 0xeb, 0x67, 0x24, 0x2f, 0x3c, 0x87, 0xd5, 0x7a, 0xff, 0x33, 0xe3, 0xa6, 198 0x93, 0x26, 0x77, 0xa5, 0xca, 0x96, 0xfb, 0x8d, 0xf5, 0xea, 0xab, 0xbb, 0xaa, 0x55, 0x3b, 0x51, 199 0x59, 0xbe, 0x2b, 0x1c, 0xf0, 0xfa, 0x6f, 0x9f, 0x0c, 0x97, 0x20, 0xbf, 0xb6, 0x81, 0x28, 0x25, 200 0xc7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