Debian Codegraph @

securitycenter/apiv1/securitycenterpb/log_entry.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/securitycenter/v1/log_entry.proto
20
21 package securitycenterpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // An individual entry in a log.
39 type LogEntry struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Types that are assignable to LogEntry:
45 //
46 // *LogEntry_CloudLoggingEntry
47 LogEntry isLogEntry_LogEntry `protobuf_oneof:"log_entry"`
48 }
49
50 func (x *LogEntry) Reset() {
51 *x = LogEntry{}
52 mi := &file_google_cloud_securitycenter_v1_log_entry_proto_msgTypes[0]
53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54 ms.StoreMessageInfo(mi)
55 }
56
57 func (x *LogEntry) String() string {
58 return protoimpl.X.MessageStringOf(x)
59 }
60
61 func (*LogEntry) ProtoMessage() {}
62
63 func (x *LogEntry) ProtoReflect() protoreflect.Message {
64 mi := &file_google_cloud_securitycenter_v1_log_entry_proto_msgTypes[0]
65 if x != nil {
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 if ms.LoadMessageInfo() == nil {
68 ms.StoreMessageInfo(mi)
69 }
70 return ms
71 }
72 return mi.MessageOf(x)
73 }
74
75 // Deprecated: Use LogEntry.ProtoReflect.Descriptor instead.
76 func (*LogEntry) Descriptor() ([]byte, []int) {
77 return file_google_cloud_securitycenter_v1_log_entry_proto_rawDescGZIP(), []int{0}
78 }
79
80 func (m *LogEntry) GetLogEntry() isLogEntry_LogEntry {
81 if m != nil {
82 return m.LogEntry
83 }
84 return nil
85 }
86
87 func (x *LogEntry) GetCloudLoggingEntry() *CloudLoggingEntry {
88 if x, ok := x.GetLogEntry().(*LogEntry_CloudLoggingEntry); ok {
89 return x.CloudLoggingEntry
90 }
91 return nil
92 }
93
94 type isLogEntry_LogEntry interface {
95 isLogEntry_LogEntry()
96 }
97
98 type LogEntry_CloudLoggingEntry struct {
99 // An individual entry in a log stored in Cloud Logging.
100 CloudLoggingEntry *CloudLoggingEntry `protobuf:"bytes,1,opt,name=cloud_logging_entry,json=cloudLoggingEntry,proto3,oneof"`
101 }
102
103 func (*LogEntry_CloudLoggingEntry) isLogEntry_LogEntry() {}
104
105 // Metadata taken from a [Cloud Logging
106 // LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
107 type CloudLoggingEntry struct {
108 state protoimpl.MessageState
109 sizeCache protoimpl.SizeCache
110 unknownFields protoimpl.UnknownFields
111
112 // A unique identifier for the log entry.
113 InsertId string `protobuf:"bytes,1,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"`
114 // The type of the log (part of `log_name`. `log_name` is the resource name of
115 // the log to which this log entry belongs). For example:
116 // `cloudresourcemanager.googleapis.com/activity`. Note that this field is not
117 // URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
118 LogId string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
119 // The organization, folder, or project of the monitored resource that
120 // produced this log entry.
121 ResourceContainer string `protobuf:"bytes,3,opt,name=resource_container,json=resourceContainer,proto3" json:"resource_container,omitempty"`
122 // The time the event described by the log entry occurred.
123 Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
124 }
125
126 func (x *CloudLoggingEntry) Reset() {
127 *x = CloudLoggingEntry{}
128 mi := &file_google_cloud_securitycenter_v1_log_entry_proto_msgTypes[1]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132
133 func (x *CloudLoggingEntry) String() string {
134 return protoimpl.X.MessageStringOf(x)
135 }
136
137 func (*CloudLoggingEntry) ProtoMessage() {}
138
139 func (x *CloudLoggingEntry) ProtoReflect() protoreflect.Message {
140 mi := &file_google_cloud_securitycenter_v1_log_entry_proto_msgTypes[1]
141 if x != nil {
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 if ms.LoadMessageInfo() == nil {
144 ms.StoreMessageInfo(mi)
145 }
146 return ms
147 }
148 return mi.MessageOf(x)
149 }
150
151 // Deprecated: Use CloudLoggingEntry.ProtoReflect.Descriptor instead.
152 func (*CloudLoggingEntry) Descriptor() ([]byte, []int) {
153 return file_google_cloud_securitycenter_v1_log_entry_proto_rawDescGZIP(), []int{1}
154 }
155
156 func (x *CloudLoggingEntry) GetInsertId() string {
157 if x != nil {
158 return x.InsertId
159 }
160 return ""
161 }
162
163 func (x *CloudLoggingEntry) GetLogId() string {
164 if x != nil {
165 return x.LogId
166 }
167 return ""
168 }
169
170 func (x *CloudLoggingEntry) GetResourceContainer() string {
171 if x != nil {
172 return x.ResourceContainer
173 }
174 return ""
175 }
176
177 func (x *CloudLoggingEntry) GetTimestamp() *timestamppb.Timestamp {
178 if x != nil {
179 return x.Timestamp
180 }
181 return nil
182 }
183
184 var File_google_cloud_securitycenter_v1_log_entry_proto protoreflect.FileDescriptor
185
186 var file_google_cloud_securitycenter_v1_log_entry_proto_rawDesc = []byte{
187 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
188 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
189 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
190 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
191 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31,
192 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
193 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
194 0x6f, 0x22, 0x7c, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x63, 0x0a,
195 0x13, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x65,
196 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f,
197 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
198 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
199 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x48, 0x00, 0x52,
200 0x11, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74,
201 0x72, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22,
202 0xb0, 0x01, 0x0a, 0x11, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
203 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x5f,
204 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74,
205 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6c, 0x6f, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
206 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x73,
207 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18,
208 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43,
209 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65,
210 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
211 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
212 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
213 0x6d, 0x70, 0x42, 0xe7, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
214 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
215 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x4c, 0x6f, 0x67, 0x45, 0x6e,
216 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75,
217 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
218 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61,
219 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
220 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
221 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
222 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65,
223 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
224 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43,
225 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
226 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69,
227 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
228 0x6f, 0x74, 0x6f, 0x33,
229 }
230
231 var (
232 file_google_cloud_securitycenter_v1_log_entry_proto_rawDescOnce sync.Once
233 file_google_cloud_securitycenter_v1_log_entry_proto_rawDescData = file_google_cloud_securitycenter_v1_log_entry_proto_rawDesc
234 )
235
236 func file_google_cloud_securitycenter_v1_log_entry_proto_rawDescGZIP() []byte {
237 file_google_cloud_securitycenter_v1_log_entry_proto_rawDescOnce.Do(func() {
238 file_google_cloud_securitycenter_v1_log_entry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_log_entry_proto_rawDescData)
239 })
240 return file_google_cloud_securitycenter_v1_log_entry_proto_rawDescData
241 }
242
243 var file_google_cloud_securitycenter_v1_log_entry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
244 var file_google_cloud_securitycenter_v1_log_entry_proto_goTypes = []any{
245 (*LogEntry)(nil), // 0: google.cloud.securitycenter.v1.LogEntry
246 (*CloudLoggingEntry)(nil), // 1: google.cloud.securitycenter.v1.CloudLoggingEntry
247 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
248 }
249 var file_google_cloud_securitycenter_v1_log_entry_proto_depIdxs = []int32{
250 1, // 0: google.cloud.securitycenter.v1.LogEntry.cloud_logging_entry:type_name -> google.cloud.securitycenter.v1.CloudLoggingEntry
251 2, // 1: google.cloud.securitycenter.v1.CloudLoggingEntry.timestamp:type_name -> google.protobuf.Timestamp
252 2, // [2:2] is the sub-list for method output_type
253 2, // [2:2] is the sub-list for method input_type
254 2, // [2:2] is the sub-list for extension type_name
255 2, // [2:2] is the sub-list for extension extendee
256 0, // [0:2] is the sub-list for field type_name
257 }
258
259 func init() { file_google_cloud_securitycenter_v1_log_entry_proto_init() }
260 func file_google_cloud_securitycenter_v1_log_entry_proto_init() {
261 if File_google_cloud_securitycenter_v1_log_entry_proto != nil {
262 return
263 }
264 file_google_cloud_securitycenter_v1_log_entry_proto_msgTypes[0].OneofWrappers = []any{
265 (*LogEntry_CloudLoggingEntry)(nil),
266 }
267 type x struct{}
268 out := protoimpl.TypeBuilder{
269 File: protoimpl.DescBuilder{
270 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
271 RawDescriptor: file_google_cloud_securitycenter_v1_log_entry_proto_rawDesc,
272 NumEnums: 0,
273 NumMessages: 2,
274 NumExtensions: 0,
275 NumServices: 0,
276 },
277 GoTypes: file_google_cloud_securitycenter_v1_log_entry_proto_goTypes,
278 DependencyIndexes: file_google_cloud_securitycenter_v1_log_entry_proto_depIdxs,
279 MessageInfos: file_google_cloud_securitycenter_v1_log_entry_proto_msgTypes,
280 }.Build()
281 File_google_cloud_securitycenter_v1_log_entry_proto = out.File
282 file_google_cloud_securitycenter_v1_log_entry_proto_rawDesc = nil
283 file_google_cloud_securitycenter_v1_log_entry_proto_goTypes = nil
284 file_google_cloud_securitycenter_v1_log_entry_proto_depIdxs = nil
285 }