Debian Codegraph @

securitycenter/apiv2/securitycenterpb/data_retention_deletion_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_retention_deletion_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 durationpb "google.golang.org/protobuf/types/known/durationpb"
27 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // Type of the DRD event.
40 type DataRetentionDeletionEvent_EventType int32
41
42 const (
43 // Unspecified event type.
44 DataRetentionDeletionEvent_EVENT_TYPE_UNSPECIFIED DataRetentionDeletionEvent_EventType = 0
45 // The maximum retention time has been exceeded.
46 DataRetentionDeletionEvent_EVENT_TYPE_MAX_TTL_EXCEEDED DataRetentionDeletionEvent_EventType = 1
47 )
48
49 // Enum value maps for DataRetentionDeletionEvent_EventType.
50 var (
51 DataRetentionDeletionEvent_EventType_name = map[int32]string{
52 0: "EVENT_TYPE_UNSPECIFIED",
53 1: "EVENT_TYPE_MAX_TTL_EXCEEDED",
54 }
55 DataRetentionDeletionEvent_EventType_value = map[string]int32{
56 "EVENT_TYPE_UNSPECIFIED": 0,
57 "EVENT_TYPE_MAX_TTL_EXCEEDED": 1,
58 }
59 )
60
61 func (x DataRetentionDeletionEvent_EventType) Enum() *DataRetentionDeletionEvent_EventType {
62 p := new(DataRetentionDeletionEvent_EventType)
63 *p = x
64 return p
65 }
66
67 func (x DataRetentionDeletionEvent_EventType) String() string {
68 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
69 }
70
71 func (DataRetentionDeletionEvent_EventType) Descriptor() protoreflect.EnumDescriptor {
72 return file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_enumTypes[0].Descriptor()
73 }
74
75 func (DataRetentionDeletionEvent_EventType) Type() protoreflect.EnumType {
76 return &file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_enumTypes[0]
77 }
78
79 func (x DataRetentionDeletionEvent_EventType) Number() protoreflect.EnumNumber {
80 return protoreflect.EnumNumber(x)
81 }
82
83 // Deprecated: Use DataRetentionDeletionEvent_EventType.Descriptor instead.
84 func (DataRetentionDeletionEvent_EventType) EnumDescriptor() ([]byte, []int) {
85 return file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescGZIP(), []int{0, 0}
86 }
87
88 // Details about data retention deletion violations, in which the data is
89 // non-compliant based on their retention or deletion time, as defined in the
90 // applicable data security policy. The Data Retention Deletion (DRD) control is
91 // a control of the DSPM (Data Security Posture Management) suite that enables
92 // organizations to manage data retention and deletion policies in compliance
93 // with regulations, such as GDPR and CRPA. DRD supports two primary policy
94 // types: maximum storage length (max TTL) and minimum storage length (min TTL).
95 // Both are aimed at helping organizations meet regulatory and data management
96 // commitments.
97 type DataRetentionDeletionEvent struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 // Timestamp indicating when the event was detected.
103 EventDetectionTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_detection_time,json=eventDetectionTime,proto3" json:"event_detection_time,omitempty"`
104 // Number of objects that violated the policy for this resource. If the number
105 // is less than 1,000, then the value of this field is the exact number. If
106 // the number of objects that violated the policy is greater than or equal to
107 // 1,000, then the value of this field is 1000.
108 DataObjectCount int64 `protobuf:"varint,3,opt,name=data_object_count,json=dataObjectCount,proto3" json:"data_object_count,omitempty"`
109 // Maximum duration of retention allowed from the DRD control. This comes
110 // from the DRD control where users set a max TTL for their data. For example,
111 // suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days.
112 // However, an object in that bucket is 100 days old. In this case, a
113 // DataRetentionDeletionEvent will be generated for that Cloud Storage bucket,
114 // and the max_retention_allowed is 90 days.
115 MaxRetentionAllowed *durationpb.Duration `protobuf:"bytes,4,opt,name=max_retention_allowed,json=maxRetentionAllowed,proto3" json:"max_retention_allowed,omitempty"`
116 // Type of the DRD event.
117 EventType DataRetentionDeletionEvent_EventType `protobuf:"varint,5,opt,name=event_type,json=eventType,proto3,enum=google.cloud.securitycenter.v2.DataRetentionDeletionEvent_EventType" json:"event_type,omitempty"`
118 }
119
120 func (x *DataRetentionDeletionEvent) Reset() {
121 *x = DataRetentionDeletionEvent{}
122 mi := &file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_msgTypes[0]
123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124 ms.StoreMessageInfo(mi)
125 }
126
127 func (x *DataRetentionDeletionEvent) String() string {
128 return protoimpl.X.MessageStringOf(x)
129 }
130
131 func (*DataRetentionDeletionEvent) ProtoMessage() {}
132
133 func (x *DataRetentionDeletionEvent) ProtoReflect() protoreflect.Message {
134 mi := &file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_msgTypes[0]
135 if x != nil {
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 if ms.LoadMessageInfo() == nil {
138 ms.StoreMessageInfo(mi)
139 }
140 return ms
141 }
142 return mi.MessageOf(x)
143 }
144
145 // Deprecated: Use DataRetentionDeletionEvent.ProtoReflect.Descriptor instead.
146 func (*DataRetentionDeletionEvent) Descriptor() ([]byte, []int) {
147 return file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescGZIP(), []int{0}
148 }
149
150 func (x *DataRetentionDeletionEvent) GetEventDetectionTime() *timestamppb.Timestamp {
151 if x != nil {
152 return x.EventDetectionTime
153 }
154 return nil
155 }
156
157 func (x *DataRetentionDeletionEvent) GetDataObjectCount() int64 {
158 if x != nil {
159 return x.DataObjectCount
160 }
161 return 0
162 }
163
164 func (x *DataRetentionDeletionEvent) GetMaxRetentionAllowed() *durationpb.Duration {
165 if x != nil {
166 return x.MaxRetentionAllowed
167 }
168 return nil
169 }
170
171 func (x *DataRetentionDeletionEvent) GetEventType() DataRetentionDeletionEvent_EventType {
172 if x != nil {
173 return x.EventType
174 }
175 return DataRetentionDeletionEvent_EVENT_TYPE_UNSPECIFIED
176 }
177
178 var File_google_cloud_securitycenter_v2_data_retention_deletion_event_proto protoreflect.FileDescriptor
179
180 var file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDesc = []byte{
181 0x0a, 0x42, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
182 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
183 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
184 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70,
185 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
186 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
187 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
188 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
189 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
190 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
191 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x03, 0x0a, 0x1a, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65,
192 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x45,
193 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x14, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65,
194 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
195 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
196 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x12,
197 0x65, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69,
198 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63,
199 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x64,
200 0x61, 0x74, 0x61, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4d,
201 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
202 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
203 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
204 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x74,
205 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, 0x63, 0x0a,
206 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
207 0x0e, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
208 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
209 0x76, 0x32, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e,
210 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x76,
211 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79,
212 0x70, 0x65, 0x22, 0x48, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12,
213 0x1a, 0x0a, 0x16, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,
214 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x45,
215 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x58, 0x5f, 0x54, 0x54,
216 0x4c, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x01, 0x42, 0xf9, 0x01, 0x0a,
217 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
218 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
219 0x2e, 0x76, 0x32, 0x42, 0x1f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69,
220 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50,
221 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
222 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75,
223 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32,
224 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70,
225 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
226 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
227 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
228 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
229 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65,
230 0x72, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
231 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65,
232 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
233 }
234
235 var (
236 file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescOnce sync.Once
237 file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescData = file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDesc
238 )
239
240 func file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescGZIP() []byte {
241 file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescOnce.Do(func() {
242 file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescData)
243 })
244 return file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDescData
245 }
246
247 var file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
248 var file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
249 var file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_goTypes = []any{
250 (DataRetentionDeletionEvent_EventType)(0), // 0: google.cloud.securitycenter.v2.DataRetentionDeletionEvent.EventType
251 (*DataRetentionDeletionEvent)(nil), // 1: google.cloud.securitycenter.v2.DataRetentionDeletionEvent
252 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
253 (*durationpb.Duration)(nil), // 3: google.protobuf.Duration
254 }
255 var file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_depIdxs = []int32{
256 2, // 0: google.cloud.securitycenter.v2.DataRetentionDeletionEvent.event_detection_time:type_name -> google.protobuf.Timestamp
257 3, // 1: google.cloud.securitycenter.v2.DataRetentionDeletionEvent.max_retention_allowed:type_name -> google.protobuf.Duration
258 0, // 2: google.cloud.securitycenter.v2.DataRetentionDeletionEvent.event_type:type_name -> google.cloud.securitycenter.v2.DataRetentionDeletionEvent.EventType
259 3, // [3:3] is the sub-list for method output_type
260 3, // [3:3] is the sub-list for method input_type
261 3, // [3:3] is the sub-list for extension type_name
262 3, // [3:3] is the sub-list for extension extendee
263 0, // [0:3] is the sub-list for field type_name
264 }
265
266 func init() { file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_init() }
267 func file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_init() {
268 if File_google_cloud_securitycenter_v2_data_retention_deletion_event_proto != nil {
269 return
270 }
271 type x struct{}
272 out := protoimpl.TypeBuilder{
273 File: protoimpl.DescBuilder{
274 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
275 RawDescriptor: file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDesc,
276 NumEnums: 1,
277 NumMessages: 1,
278 NumExtensions: 0,
279 NumServices: 0,
280 },
281 GoTypes: file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_goTypes,
282 DependencyIndexes: file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_depIdxs,
283 EnumInfos: file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_enumTypes,
284 MessageInfos: file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_msgTypes,
285 }.Build()
286 File_google_cloud_securitycenter_v2_data_retention_deletion_event_proto = out.File
287 file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_rawDesc = nil
288 file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_goTypes = nil
289 file_google_cloud_securitycenter_v2_data_retention_deletion_event_proto_depIdxs = nil
290 }