Debian Codegraph @

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