1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/api/servicecontrol/v1/log_entry.proto 3 4package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import any "github.com/golang/protobuf/ptypes/any" 10import _struct "github.com/golang/protobuf/ptypes/struct" 11import timestamp "github.com/golang/protobuf/ptypes/timestamp" 12import _ "google.golang.org/genproto/googleapis/api/annotations" 13import _type "google.golang.org/genproto/googleapis/logging/type" 14 15// Reference imports to suppress errors if they are not otherwise used. 16var _ = proto.Marshal 17var _ = fmt.Errorf 18var _ = math.Inf 19 20// This is a compile-time assertion to ensure that this generated file 21// is compatible with the proto package it is being compiled against. 22// A compilation error at this line likely means your copy of the 23// proto package needs to be updated. 24const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 25 26// An individual log entry. 27type LogEntry struct { 28 // Required. The log to which this log entry belongs. Examples: `"syslog"`, 29 // `"book_log"`. 30 Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` 31 // The time the event described by the log entry occurred. If 32 // omitted, defaults to operation start time. 33 Timestamp *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 34 // The severity of the log entry. The default value is 35 // `LogSeverity.DEFAULT`. 36 Severity _type.LogSeverity `protobuf:"varint,12,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"` 37 // A unique ID for the log entry used for deduplication. If omitted, 38 // the implementation will generate one based on operation_id. 39 InsertId string `protobuf:"bytes,4,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"` 40 // A set of user-defined (key, value) data that provides additional 41 // information about the log entry. 42 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"` 43 // The log entry payload, which can be one of multiple types. 44 // 45 // Types that are valid to be assigned to Payload: 46 // *LogEntry_ProtoPayload 47 // *LogEntry_TextPayload 48 // *LogEntry_StructPayload 49 Payload isLogEntry_Payload `protobuf_oneof:"payload"` 50 XXX_NoUnkeyedLiteral struct{} `json:"-"` 51 XXX_unrecognized []byte `json:"-"` 52 XXX_sizecache int32 `json:"-"` 53} 54 55func (m *LogEntry) Reset() { *m = LogEntry{} } 56func (m *LogEntry) String() string { return proto.CompactTextString(m) } 57func (*LogEntry) ProtoMessage() {} 58func (*LogEntry) Descriptor() ([]byte, []int) { 59 return fileDescriptor_log_entry_bf2d1c8926215d60, []int{0} 60} 61func (m *LogEntry) XXX_Unmarshal(b []byte) error { 62 return xxx_messageInfo_LogEntry.Unmarshal(m, b) 63} 64func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 65 return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic) 66} 67func (dst *LogEntry) XXX_Merge(src proto.Message) { 68 xxx_messageInfo_LogEntry.Merge(dst, src) 69} 70func (m *LogEntry) XXX_Size() int { 71 return xxx_messageInfo_LogEntry.Size(m) 72} 73func (m *LogEntry) XXX_DiscardUnknown() { 74 xxx_messageInfo_LogEntry.DiscardUnknown(m) 75} 76 77var xxx_messageInfo_LogEntry proto.InternalMessageInfo 78 79type isLogEntry_Payload interface { 80 isLogEntry_Payload() 81} 82 83type LogEntry_ProtoPayload struct { 84 ProtoPayload *any.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"` 85} 86type LogEntry_TextPayload struct { 87 TextPayload string `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"` 88} 89type LogEntry_StructPayload struct { 90 StructPayload *_struct.Struct `protobuf:"bytes,6,opt,name=struct_payload,json=structPayload,proto3,oneof"` 91} 92 93func (*LogEntry_ProtoPayload) isLogEntry_Payload() {} 94func (*LogEntry_TextPayload) isLogEntry_Payload() {} 95func (*LogEntry_StructPayload) isLogEntry_Payload() {} 96 97func (m *LogEntry) GetPayload() isLogEntry_Payload { 98 if m != nil { 99 return m.Payload 100 } 101 return nil 102} 103 104func (m *LogEntry) GetName() string { 105 if m != nil { 106 return m.Name 107 } 108 return "" 109} 110 111func (m *LogEntry) GetTimestamp() *timestamp.Timestamp { 112 if m != nil { 113 return m.Timestamp 114 } 115 return nil 116} 117 118func (m *LogEntry) GetSeverity() _type.LogSeverity { 119 if m != nil { 120 return m.Severity 121 } 122 return _type.LogSeverity_DEFAULT 123} 124 125func (m *LogEntry) GetInsertId() string { 126 if m != nil { 127 return m.InsertId 128 } 129 return "" 130} 131 132func (m *LogEntry) GetLabels() map[string]string { 133 if m != nil { 134 return m.Labels 135 } 136 return nil 137} 138 139func (m *LogEntry) GetProtoPayload() *any.Any { 140 if x, ok := m.GetPayload().(*LogEntry_ProtoPayload); ok { 141 return x.ProtoPayload 142 } 143 return nil 144} 145 146func (m *LogEntry) GetTextPayload() string { 147 if x, ok := m.GetPayload().(*LogEntry_TextPayload); ok { 148 return x.TextPayload 149 } 150 return "" 151} 152 153func (m *LogEntry) GetStructPayload() *_struct.Struct { 154 if x, ok := m.GetPayload().(*LogEntry_StructPayload); ok { 155 return x.StructPayload 156 } 157 return nil 158} 159 160// XXX_OneofFuncs is for the internal use of the proto package. 161func (*LogEntry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { 162 return _LogEntry_OneofMarshaler, _LogEntry_OneofUnmarshaler, _LogEntry_OneofSizer, []interface{}{ 163 (*LogEntry_ProtoPayload)(nil), 164 (*LogEntry_TextPayload)(nil), 165 (*LogEntry_StructPayload)(nil), 166 } 167} 168 169func _LogEntry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 170 m := msg.(*LogEntry) 171 // payload 172 switch x := m.Payload.(type) { 173 case *LogEntry_ProtoPayload: 174 b.EncodeVarint(2<<3 | proto.WireBytes) 175 if err := b.EncodeMessage(x.ProtoPayload); err != nil { 176 return err 177 } 178 case *LogEntry_TextPayload: 179 b.EncodeVarint(3<<3 | proto.WireBytes) 180 b.EncodeStringBytes(x.TextPayload) 181 case *LogEntry_StructPayload: 182 b.EncodeVarint(6<<3 | proto.WireBytes) 183 if err := b.EncodeMessage(x.StructPayload); err != nil { 184 return err 185 } 186 case nil: 187 default: 188 return fmt.Errorf("LogEntry.Payload has unexpected type %T", x) 189 } 190 return nil 191} 192 193func _LogEntry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 194 m := msg.(*LogEntry) 195 switch tag { 196 case 2: // payload.proto_payload 197 if wire != proto.WireBytes { 198 return true, proto.ErrInternalBadWireType 199 } 200 msg := new(any.Any) 201 err := b.DecodeMessage(msg) 202 m.Payload = &LogEntry_ProtoPayload{msg} 203 return true, err 204 case 3: // payload.text_payload 205 if wire != proto.WireBytes { 206 return true, proto.ErrInternalBadWireType 207 } 208 x, err := b.DecodeStringBytes() 209 m.Payload = &LogEntry_TextPayload{x} 210 return true, err 211 case 6: // payload.struct_payload 212 if wire != proto.WireBytes { 213 return true, proto.ErrInternalBadWireType 214 } 215 msg := new(_struct.Struct) 216 err := b.DecodeMessage(msg) 217 m.Payload = &LogEntry_StructPayload{msg} 218 return true, err 219 default: 220 return false, nil 221 } 222} 223 224func _LogEntry_OneofSizer(msg proto.Message) (n int) { 225 m := msg.(*LogEntry) 226 // payload 227 switch x := m.Payload.(type) { 228 case *LogEntry_ProtoPayload: 229 s := proto.Size(x.ProtoPayload) 230 n += 1 // tag and wire 231 n += proto.SizeVarint(uint64(s)) 232 n += s 233 case *LogEntry_TextPayload: 234 n += 1 // tag and wire 235 n += proto.SizeVarint(uint64(len(x.TextPayload))) 236 n += len(x.TextPayload) 237 case *LogEntry_StructPayload: 238 s := proto.Size(x.StructPayload) 239 n += 1 // tag and wire 240 n += proto.SizeVarint(uint64(s)) 241 n += s 242 case nil: 243 default: 244 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 245 } 246 return n 247} 248 249func init() { 250 proto.RegisterType((*LogEntry)(nil), "google.api.servicecontrol.v1.LogEntry") 251 proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.LogEntry.LabelsEntry") 252} 253 254func init() { 255 proto.RegisterFile("google/api/servicecontrol/v1/log_entry.proto", fileDescriptor_log_entry_bf2d1c8926215d60) 256} 257 258var fileDescriptor_log_entry_bf2d1c8926215d60 = []byte{ 259 // 454 bytes of a gzipped FileDescriptorProto 260 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4f, 0x8f, 0xd3, 0x30, 261 0x10, 0xc5, 0x9b, 0xed, 0x52, 0x1a, 0xa7, 0x5d, 0x21, 0x6b, 0x25, 0x42, 0xa8, 0x44, 0x04, 0x12, 262 0xea, 0x01, 0x39, 0xda, 0x72, 0x59, 0x58, 0x0e, 0x50, 0x09, 0xa9, 0xac, 0x7a, 0x58, 0x65, 0x39, 263 0x71, 0xa9, 0xdc, 0xd6, 0x58, 0x16, 0xae, 0x27, 0x4a, 0xdc, 0x88, 0x9c, 0xf8, 0xbc, 0x7c, 0x0b, 264 0x94, 0xb1, 0x53, 0xf6, 0x9f, 0xf6, 0xe6, 0xf1, 0xfb, 0xbd, 0x99, 0x79, 0x8e, 0x42, 0xde, 0x49, 265 0x00, 0xa9, 0x45, 0xc6, 0x0b, 0x95, 0x55, 0xa2, 0xac, 0xd5, 0x46, 0x6c, 0xc0, 0xd8, 0x12, 0x74, 266 0x56, 0x9f, 0x65, 0x1a, 0xe4, 0x4a, 0x18, 0x5b, 0x36, 0xac, 0x28, 0xc1, 0x02, 0x9d, 0x38, 0x9a, 267 0xf1, 0x42, 0xb1, 0xdb, 0x34, 0xab, 0xcf, 0x92, 0xc9, 0x8d, 0x5e, 0xdc, 0x18, 0xb0, 0xdc, 0x2a, 268 0x30, 0x95, 0xf3, 0x26, 0x6f, 0xbd, 0xaa, 0x41, 0x4a, 0x65, 0x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