Debian Codegraph @

securitycenter/apiv2/securitycenterpb/data_access_event.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/data_access_event.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 // The operation of a data access event.
39 type DataAccessEvent_Operation int32
40
41 const (
42 // The operation is unspecified.
43 DataAccessEvent_OPERATION_UNSPECIFIED DataAccessEvent_Operation = 0
44 // Represents a read operation.
45 DataAccessEvent_READ DataAccessEvent_Operation = 1
46 // Represents a move operation.
47 DataAccessEvent_MOVE DataAccessEvent_Operation = 2
48 // Represents a copy operation.
49 DataAccessEvent_COPY DataAccessEvent_Operation = 3
50 )
51
52 // Enum value maps for DataAccessEvent_Operation.
53 var (
54 DataAccessEvent_Operation_name = map[int32]string{
55 0: "OPERATION_UNSPECIFIED",
56 1: "READ",
57 2: "MOVE",
58 3: "COPY",
59 }
60 DataAccessEvent_Operation_value = map[string]int32{
61 "OPERATION_UNSPECIFIED": 0,
62 "READ": 1,
63 "MOVE": 2,
64 "COPY": 3,
65 }
66 )
67
68 func (x DataAccessEvent_Operation) Enum() *DataAccessEvent_Operation {
69 p := new(DataAccessEvent_Operation)
70 *p = x
71 return p
72 }
73
74 func (x DataAccessEvent_Operation) String() string {
75 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
76 }
77
78 func (DataAccessEvent_Operation) Descriptor() protoreflect.EnumDescriptor {
79 return file_google_cloud_securitycenter_v2_data_access_event_proto_enumTypes[0].Descriptor()
80 }
81
82 func (DataAccessEvent_Operation) Type() protoreflect.EnumType {
83 return &file_google_cloud_securitycenter_v2_data_access_event_proto_enumTypes[0]
84 }
85
86 func (x DataAccessEvent_Operation) Number() protoreflect.EnumNumber {
87 return protoreflect.EnumNumber(x)
88 }
89
90 // Deprecated: Use DataAccessEvent_Operation.Descriptor instead.
91 func (DataAccessEvent_Operation) EnumDescriptor() ([]byte, []int) {
92 return file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescGZIP(), []int{0, 0}
93 }
94
95 // Details about a data access attempt made by a principal not authorized under
96 // applicable data security policy.
97 type DataAccessEvent struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 // Unique identifier for data access event.
103 EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
104 // The email address of the principal that accessed the data. The principal
105 // could be a user account, service account, Google group, or other.
106 PrincipalEmail string `protobuf:"bytes,2,opt,name=principal_email,json=principalEmail,proto3" json:"principal_email,omitempty"`
107 // The operation performed by the principal to access the data.
108 Operation DataAccessEvent_Operation `protobuf:"varint,3,opt,name=operation,proto3,enum=google.cloud.securitycenter.v2.DataAccessEvent_Operation" json:"operation,omitempty"`
109 // Timestamp of data access event.
110 EventTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
111 }
112
113 func (x *DataAccessEvent) Reset() {
114 *x = DataAccessEvent{}
115 mi := &file_google_cloud_securitycenter_v2_data_access_event_proto_msgTypes[0]
116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
117 ms.StoreMessageInfo(mi)
118 }
119
120 func (x *DataAccessEvent) String() string {
121 return protoimpl.X.MessageStringOf(x)
122 }
123
124 func (*DataAccessEvent) ProtoMessage() {}
125
126 func (x *DataAccessEvent) ProtoReflect() protoreflect.Message {
127 mi := &file_google_cloud_securitycenter_v2_data_access_event_proto_msgTypes[0]
128 if x != nil {
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 if ms.LoadMessageInfo() == nil {
131 ms.StoreMessageInfo(mi)
132 }
133 return ms
134 }
135 return mi.MessageOf(x)
136 }
137
138 // Deprecated: Use DataAccessEvent.ProtoReflect.Descriptor instead.
139 func (*DataAccessEvent) Descriptor() ([]byte, []int) {
140 return file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescGZIP(), []int{0}
141 }
142
143 func (x *DataAccessEvent) GetEventId() string {
144 if x != nil {
145 return x.EventId
146 }
147 return ""
148 }
149
150 func (x *DataAccessEvent) GetPrincipalEmail() string {
151 if x != nil {
152 return x.PrincipalEmail
153 }
154 return ""
155 }
156
157 func (x *DataAccessEvent) GetOperation() DataAccessEvent_Operation {
158 if x != nil {
159 return x.Operation
160 }
161 return DataAccessEvent_OPERATION_UNSPECIFIED
162 }
163
164 func (x *DataAccessEvent) GetEventTime() *timestamppb.Timestamp {
165 if x != nil {
166 return x.EventTime
167 }
168 return nil
169 }
170
171 var File_google_cloud_securitycenter_v2_data_access_event_proto protoreflect.FileDescriptor
172
173 var file_google_cloud_securitycenter_v2_data_access_event_proto_rawDesc = []byte{
174 0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
175 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
176 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x65, 0x76, 0x65,
177 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
178 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63,
179 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
180 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
181 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x02, 0x0a, 0x0f, 0x44, 0x61,
182 0x74, 0x61, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a,
183 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
184 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6e,
185 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
186 0x09, 0x52, 0x0e, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x45, 0x6d, 0x61, 0x69,
187 0x6c, 0x12, 0x57, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
188 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
189 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
190 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
191 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
192 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x76,
193 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
194 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
195 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e,
196 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x44, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
197 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
198 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a,
199 0x04, 0x52, 0x45, 0x41, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4f, 0x56, 0x45, 0x10,
200 0x02, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x50, 0x59, 0x10, 0x03, 0x42, 0xee, 0x01, 0x0a, 0x22,
201 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
202 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
203 0x76, 0x32, 0x42, 0x14, 0x44, 0x61, 0x74, 0x61, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x45, 0x76,
204 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75,
205 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
206 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61,
207 0x70, 0x69, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
208 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
209 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
210 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65,
211 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
212 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43,
213 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
214 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69,
215 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72,
216 0x6f, 0x74, 0x6f, 0x33,
217 }
218
219 var (
220 file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescOnce sync.Once
221 file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescData = file_google_cloud_securitycenter_v2_data_access_event_proto_rawDesc
222 )
223
224 func file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescGZIP() []byte {
225 file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescOnce.Do(func() {
226 file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescData)
227 })
228 return file_google_cloud_securitycenter_v2_data_access_event_proto_rawDescData
229 }
230
231 var file_google_cloud_securitycenter_v2_data_access_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
232 var file_google_cloud_securitycenter_v2_data_access_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
233 var file_google_cloud_securitycenter_v2_data_access_event_proto_goTypes = []any{
234 (DataAccessEvent_Operation)(0), // 0: google.cloud.securitycenter.v2.DataAccessEvent.Operation
235 (*DataAccessEvent)(nil), // 1: google.cloud.securitycenter.v2.DataAccessEvent
236 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
237 }
238 var file_google_cloud_securitycenter_v2_data_access_event_proto_depIdxs = []int32{
239 0, // 0: google.cloud.securitycenter.v2.DataAccessEvent.operation:type_name -> google.cloud.securitycenter.v2.DataAccessEvent.Operation
240 2, // 1: google.cloud.securitycenter.v2.DataAccessEvent.event_time:type_name -> google.protobuf.Timestamp
241 2, // [2:2] is the sub-list for method output_type
242 2, // [2:2] is the sub-list for method input_type
243 2, // [2:2] is the sub-list for extension type_name
244 2, // [2:2] is the sub-list for extension extendee
245 0, // [0:2] is the sub-list for field type_name
246 }
247
248 func init() { file_google_cloud_securitycenter_v2_data_access_event_proto_init() }
249 func file_google_cloud_securitycenter_v2_data_access_event_proto_init() {
250 if File_google_cloud_securitycenter_v2_data_access_event_proto != nil {
251 return
252 }
253 type x struct{}
254 out := protoimpl.TypeBuilder{
255 File: protoimpl.DescBuilder{
256 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
257 RawDescriptor: file_google_cloud_securitycenter_v2_data_access_event_proto_rawDesc,
258 NumEnums: 1,
259 NumMessages: 1,
260 NumExtensions: 0,
261 NumServices: 0,
262 },
263 GoTypes: file_google_cloud_securitycenter_v2_data_access_event_proto_goTypes,
264 DependencyIndexes: file_google_cloud_securitycenter_v2_data_access_event_proto_depIdxs,
265 EnumInfos: file_google_cloud_securitycenter_v2_data_access_event_proto_enumTypes,
266 MessageInfos: file_google_cloud_securitycenter_v2_data_access_event_proto_msgTypes,
267 }.Build()
268 File_google_cloud_securitycenter_v2_data_access_event_proto = out.File
269 file_google_cloud_securitycenter_v2_data_access_event_proto_rawDesc = nil
270 file_google_cloud_securitycenter_v2_data_access_event_proto_goTypes = nil
271 file_google_cloud_securitycenter_v2_data_access_event_proto_depIdxs = nil
272 }