1// Copyright 2017 Google Inc.
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.22.0
18// 	protoc        v3.11.2
19// source: google/api/servicecontrol/v1/log_entry.proto
20
21package servicecontrol
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	any "github.com/golang/protobuf/ptypes/any"
29	_struct "github.com/golang/protobuf/ptypes/struct"
30	timestamp "github.com/golang/protobuf/ptypes/timestamp"
31	_ "google.golang.org/genproto/googleapis/api/annotations"
32	_type "google.golang.org/genproto/googleapis/logging/type"
33	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35)
36
37const (
38	// Verify that this generated code is sufficiently up-to-date.
39	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40	// Verify that runtime/protoimpl is sufficiently up-to-date.
41	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42)
43
44// This is a compile-time assertion that a sufficiently up-to-date version
45// of the legacy proto package is being used.
46const _ = proto.ProtoPackageIsVersion4
47
48// An individual log entry.
49type LogEntry struct {
50	state         protoimpl.MessageState
51	sizeCache     protoimpl.SizeCache
52	unknownFields protoimpl.UnknownFields
53
54	// Required. The log to which this log entry belongs. Examples: `"syslog"`,
55	// `"book_log"`.
56	Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
57	// The time the event described by the log entry occurred. If
58	// omitted, defaults to operation start time.
59	Timestamp *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
60	// The severity of the log entry. The default value is
61	// `LogSeverity.DEFAULT`.
62	Severity _type.LogSeverity `protobuf:"varint,12,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"`
63	// A unique ID for the log entry used for deduplication. If omitted,
64	// the implementation will generate one based on operation_id.
65	InsertId string `protobuf:"bytes,4,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"`
66	// A set of user-defined (key, value) data that provides additional
67	// information about the log entry.
68	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"`
69	// The log entry payload, which can be one of multiple types.
70	//
71	// Types that are assignable to Payload:
72	//	*LogEntry_ProtoPayload
73	//	*LogEntry_TextPayload
74	//	*LogEntry_StructPayload
75	Payload isLogEntry_Payload `protobuf_oneof:"payload"`
76}
77
78func (x *LogEntry) Reset() {
79	*x = LogEntry{}
80	if protoimpl.UnsafeEnabled {
81		mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0]
82		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
83		ms.StoreMessageInfo(mi)
84	}
85}
86
87func (x *LogEntry) String() string {
88	return protoimpl.X.MessageStringOf(x)
89}
90
91func (*LogEntry) ProtoMessage() {}
92
93func (x *LogEntry) ProtoReflect() protoreflect.Message {
94	mi := &file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0]
95	if protoimpl.UnsafeEnabled && x != nil {
96		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97		if ms.LoadMessageInfo() == nil {
98			ms.StoreMessageInfo(mi)
99		}
100		return ms
101	}
102	return mi.MessageOf(x)
103}
104
105// Deprecated: Use LogEntry.ProtoReflect.Descriptor instead.
106func (*LogEntry) Descriptor() ([]byte, []int) {
107	return file_google_api_servicecontrol_v1_log_entry_proto_rawDescGZIP(), []int{0}
108}
109
110func (x *LogEntry) GetName() string {
111	if x != nil {
112		return x.Name
113	}
114	return ""
115}
116
117func (x *LogEntry) GetTimestamp() *timestamp.Timestamp {
118	if x != nil {
119		return x.Timestamp
120	}
121	return nil
122}
123
124func (x *LogEntry) GetSeverity() _type.LogSeverity {
125	if x != nil {
126		return x.Severity
127	}
128	return _type.LogSeverity_DEFAULT
129}
130
131func (x *LogEntry) GetInsertId() string {
132	if x != nil {
133		return x.InsertId
134	}
135	return ""
136}
137
138func (x *LogEntry) GetLabels() map[string]string {
139	if x != nil {
140		return x.Labels
141	}
142	return nil
143}
144
145func (m *LogEntry) GetPayload() isLogEntry_Payload {
146	if m != nil {
147		return m.Payload
148	}
149	return nil
150}
151
152func (x *LogEntry) GetProtoPayload() *any.Any {
153	if x, ok := x.GetPayload().(*LogEntry_ProtoPayload); ok {
154		return x.ProtoPayload
155	}
156	return nil
157}
158
159func (x *LogEntry) GetTextPayload() string {
160	if x, ok := x.GetPayload().(*LogEntry_TextPayload); ok {
161		return x.TextPayload
162	}
163	return ""
164}
165
166func (x *LogEntry) GetStructPayload() *_struct.Struct {
167	if x, ok := x.GetPayload().(*LogEntry_StructPayload); ok {
168		return x.StructPayload
169	}
170	return nil
171}
172
173type isLogEntry_Payload interface {
174	isLogEntry_Payload()
175}
176
177type LogEntry_ProtoPayload struct {
178	// The log entry payload, represented as a protocol buffer that is
179	// expressed as a JSON object. The only accepted type currently is
180	// [AuditLog][google.cloud.audit.AuditLog].
181	ProtoPayload *any.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"`
182}
183
184type LogEntry_TextPayload struct {
185	// The log entry payload, represented as a Unicode string (UTF-8).
186	TextPayload string `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"`
187}
188
189type LogEntry_StructPayload struct {
190	// The log entry payload, represented as a structure that
191	// is expressed as a JSON object.
192	StructPayload *_struct.Struct `protobuf:"bytes,6,opt,name=struct_payload,json=structPayload,proto3,oneof"`
193}
194
195func (*LogEntry_ProtoPayload) isLogEntry_Payload() {}
196
197func (*LogEntry_TextPayload) isLogEntry_Payload() {}
198
199func (*LogEntry_StructPayload) isLogEntry_Payload() {}
200
201var File_google_api_servicecontrol_v1_log_entry_proto protoreflect.FileDescriptor
202
203var file_google_api_servicecontrol_v1_log_entry_proto_rawDesc = []byte{
204	0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72,
205	0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x6c,
206	0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c,
207	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
208	0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f,
209	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
210	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x67, 0x6f, 0x6f, 0x67,
211	0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f,
212	0x6c, 0x6f, 0x67, 0x5f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,
213	0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
214	0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67,
215	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73,
216	0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
217	0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
218	0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x03, 0x0a,
219	0x08, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
220	0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a,
221	0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b,
222	0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
223	0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69,
224	0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3c, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72,
225	0x69, 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
226	0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e,
227	0x4c, 0x6f, 0x67, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76,
228	0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x5f,
229	0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74,
230	0x49, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0d, 0x20, 0x03,
231	0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
232	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76,
233	0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c,
234	0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3b,
235	0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
236	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
237	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52, 0x0c, 0x70,
238	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74,
239	0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
240	0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
241	0x12, 0x40, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f,
242	0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
243	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
244	0x74, 0x48, 0x00, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f,
245	0x61, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72,
246	0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
247	0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
248	0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x09, 0x0a,
249	0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x7f, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e,
250	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
251	0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x4c, 0x6f,
252	0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67,
253	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
254	0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
255	0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
256	0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69,
257	0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
258	0x33,
259}
260
261var (
262	file_google_api_servicecontrol_v1_log_entry_proto_rawDescOnce sync.Once
263	file_google_api_servicecontrol_v1_log_entry_proto_rawDescData = file_google_api_servicecontrol_v1_log_entry_proto_rawDesc
264)
265
266func file_google_api_servicecontrol_v1_log_entry_proto_rawDescGZIP() []byte {
267	file_google_api_servicecontrol_v1_log_entry_proto_rawDescOnce.Do(func() {
268		file_google_api_servicecontrol_v1_log_entry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_servicecontrol_v1_log_entry_proto_rawDescData)
269	})
270	return file_google_api_servicecontrol_v1_log_entry_proto_rawDescData
271}
272
273var file_google_api_servicecontrol_v1_log_entry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
274var file_google_api_servicecontrol_v1_log_entry_proto_goTypes = []interface{}{
275	(*LogEntry)(nil),            // 0: google.api.servicecontrol.v1.LogEntry
276	nil,                         // 1: google.api.servicecontrol.v1.LogEntry.LabelsEntry
277	(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
278	(_type.LogSeverity)(0),      // 3: google.logging.type.LogSeverity
279	(*any.Any)(nil),             // 4: google.protobuf.Any
280	(*_struct.Struct)(nil),      // 5: google.protobuf.Struct
281}
282var file_google_api_servicecontrol_v1_log_entry_proto_depIdxs = []int32{
283	2, // 0: google.api.servicecontrol.v1.LogEntry.timestamp:type_name -> google.protobuf.Timestamp
284	3, // 1: google.api.servicecontrol.v1.LogEntry.severity:type_name -> google.logging.type.LogSeverity
285	1, // 2: google.api.servicecontrol.v1.LogEntry.labels:type_name -> google.api.servicecontrol.v1.LogEntry.LabelsEntry
286	4, // 3: google.api.servicecontrol.v1.LogEntry.proto_payload:type_name -> google.protobuf.Any
287	5, // 4: google.api.servicecontrol.v1.LogEntry.struct_payload:type_name -> google.protobuf.Struct
288	5, // [5:5] is the sub-list for method output_type
289	5, // [5:5] is the sub-list for method input_type
290	5, // [5:5] is the sub-list for extension type_name
291	5, // [5:5] is the sub-list for extension extendee
292	0, // [0:5] is the sub-list for field type_name
293}
294
295func init() { file_google_api_servicecontrol_v1_log_entry_proto_init() }
296func file_google_api_servicecontrol_v1_log_entry_proto_init() {
297	if File_google_api_servicecontrol_v1_log_entry_proto != nil {
298		return
299	}
300	if !protoimpl.UnsafeEnabled {
301		file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
302			switch v := v.(*LogEntry); i {
303			case 0:
304				return &v.state
305			case 1:
306				return &v.sizeCache
307			case 2:
308				return &v.unknownFields
309			default:
310				return nil
311			}
312		}
313	}
314	file_google_api_servicecontrol_v1_log_entry_proto_msgTypes[0].OneofWrappers = []interface{}{
315		(*LogEntry_ProtoPayload)(nil),
316		(*LogEntry_TextPayload)(nil),
317		(*LogEntry_StructPayload)(nil),
318	}
319	type x struct{}
320	out := protoimpl.TypeBuilder{
321		File: protoimpl.DescBuilder{
322			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
323			RawDescriptor: file_google_api_servicecontrol_v1_log_entry_proto_rawDesc,
324			NumEnums:      0,
325			NumMessages:   2,
326			NumExtensions: 0,
327			NumServices:   0,
328		},
329		GoTypes:           file_google_api_servicecontrol_v1_log_entry_proto_goTypes,
330		DependencyIndexes: file_google_api_servicecontrol_v1_log_entry_proto_depIdxs,
331		MessageInfos:      file_google_api_servicecontrol_v1_log_entry_proto_msgTypes,
332	}.Build()
333	File_google_api_servicecontrol_v1_log_entry_proto = out.File
334	file_google_api_servicecontrol_v1_log_entry_proto_rawDesc = nil
335	file_google_api_servicecontrol_v1_log_entry_proto_goTypes = nil
336	file_google_api_servicecontrol_v1_log_entry_proto_depIdxs = nil
337}
338