Debian Codegraph @

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