Debian Codegraph @

securitycenter/apiv1/securitycenterpb/security_posture.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/security_posture.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 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Represents a posture that is deployed on Google Cloud by the
38 // Security Command Center Posture Management service.
39 // A posture contains one or more policy sets. A policy set is a
40 // group of policies that enforce a set of security rules on Google
41 // Cloud.
42 type SecurityPosture struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // Name of the posture, for example, `CIS-Posture`.
48 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
49 // The version of the posture, for example, `c7cfa2a8`.
50 RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
51 // The project, folder, or organization on which the posture is deployed,
52 // for example, `projects/{project_number}`.
53 PostureDeploymentResource string `protobuf:"bytes,3,opt,name=posture_deployment_resource,json=postureDeploymentResource,proto3" json:"posture_deployment_resource,omitempty"`
54 // The name of the posture deployment, for example,
55 // `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
56 PostureDeployment string `protobuf:"bytes,4,opt,name=posture_deployment,json=postureDeployment,proto3" json:"posture_deployment,omitempty"`
57 // The name of the updated policy, for example,
58 // `projects/{project_id}/policies/{constraint_name}`.
59 ChangedPolicy string `protobuf:"bytes,5,opt,name=changed_policy,json=changedPolicy,proto3" json:"changed_policy,omitempty"`
60 // The name of the updated policyset, for example, `cis-policyset`.
61 PolicySet string `protobuf:"bytes,6,opt,name=policy_set,json=policySet,proto3" json:"policy_set,omitempty"`
62 // The ID of the updated policy, for example, `compute-policy-1`.
63 Policy string `protobuf:"bytes,7,opt,name=policy,proto3" json:"policy,omitempty"`
64 // The details about a change in an updated policy that violates the deployed
65 // posture.
66 PolicyDriftDetails []*SecurityPosture_PolicyDriftDetails `protobuf:"bytes,8,rep,name=policy_drift_details,json=policyDriftDetails,proto3" json:"policy_drift_details,omitempty"`
67 }
68
69 func (x *SecurityPosture) Reset() {
70 *x = SecurityPosture{}
71 mi := &file_google_cloud_securitycenter_v1_security_posture_proto_msgTypes[0]
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 ms.StoreMessageInfo(mi)
74 }
75
76 func (x *SecurityPosture) String() string {
77 return protoimpl.X.MessageStringOf(x)
78 }
79
80 func (*SecurityPosture) ProtoMessage() {}
81
82 func (x *SecurityPosture) ProtoReflect() protoreflect.Message {
83 mi := &file_google_cloud_securitycenter_v1_security_posture_proto_msgTypes[0]
84 if x != nil {
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 if ms.LoadMessageInfo() == nil {
87 ms.StoreMessageInfo(mi)
88 }
89 return ms
90 }
91 return mi.MessageOf(x)
92 }
93
94 // Deprecated: Use SecurityPosture.ProtoReflect.Descriptor instead.
95 func (*SecurityPosture) Descriptor() ([]byte, []int) {
96 return file_google_cloud_securitycenter_v1_security_posture_proto_rawDescGZIP(), []int{0}
97 }
98
99 func (x *SecurityPosture) GetName() string {
100 if x != nil {
101 return x.Name
102 }
103 return ""
104 }
105
106 func (x *SecurityPosture) GetRevisionId() string {
107 if x != nil {
108 return x.RevisionId
109 }
110 return ""
111 }
112
113 func (x *SecurityPosture) GetPostureDeploymentResource() string {
114 if x != nil {
115 return x.PostureDeploymentResource
116 }
117 return ""
118 }
119
120 func (x *SecurityPosture) GetPostureDeployment() string {
121 if x != nil {
122 return x.PostureDeployment
123 }
124 return ""
125 }
126
127 func (x *SecurityPosture) GetChangedPolicy() string {
128 if x != nil {
129 return x.ChangedPolicy
130 }
131 return ""
132 }
133
134 func (x *SecurityPosture) GetPolicySet() string {
135 if x != nil {
136 return x.PolicySet
137 }
138 return ""
139 }
140
141 func (x *SecurityPosture) GetPolicy() string {
142 if x != nil {
143 return x.Policy
144 }
145 return ""
146 }
147
148 func (x *SecurityPosture) GetPolicyDriftDetails() []*SecurityPosture_PolicyDriftDetails {
149 if x != nil {
150 return x.PolicyDriftDetails
151 }
152 return nil
153 }
154
155 // The policy field that violates the deployed posture and its expected and
156 // detected values.
157 type SecurityPosture_PolicyDriftDetails struct {
158 state protoimpl.MessageState
159 sizeCache protoimpl.SizeCache
160 unknownFields protoimpl.UnknownFields
161
162 // The name of the updated field, for example
163 // constraint.implementation.policy_rules[0].enforce
164 Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
165 // The value of this field that was configured in a posture, for example,
166 // `true` or `allowed_values={"projects/29831892"}`.
167 ExpectedValue string `protobuf:"bytes,2,opt,name=expected_value,json=expectedValue,proto3" json:"expected_value,omitempty"`
168 // The detected value that violates the deployed posture, for example,
169 // `false` or `allowed_values={"projects/22831892"}`.
170 DetectedValue string `protobuf:"bytes,3,opt,name=detected_value,json=detectedValue,proto3" json:"detected_value,omitempty"`
171 }
172
173 func (x *SecurityPosture_PolicyDriftDetails) Reset() {
174 *x = SecurityPosture_PolicyDriftDetails{}
175 mi := &file_google_cloud_securitycenter_v1_security_posture_proto_msgTypes[1]
176 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
177 ms.StoreMessageInfo(mi)
178 }
179
180 func (x *SecurityPosture_PolicyDriftDetails) String() string {
181 return protoimpl.X.MessageStringOf(x)
182 }
183
184 func (*SecurityPosture_PolicyDriftDetails) ProtoMessage() {}
185
186 func (x *SecurityPosture_PolicyDriftDetails) ProtoReflect() protoreflect.Message {
187 mi := &file_google_cloud_securitycenter_v1_security_posture_proto_msgTypes[1]
188 if x != nil {
189 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190 if ms.LoadMessageInfo() == nil {
191 ms.StoreMessageInfo(mi)
192 }
193 return ms
194 }
195 return mi.MessageOf(x)
196 }
197
198 // Deprecated: Use SecurityPosture_PolicyDriftDetails.ProtoReflect.Descriptor instead.
199 func (*SecurityPosture_PolicyDriftDetails) Descriptor() ([]byte, []int) {
200 return file_google_cloud_securitycenter_v1_security_posture_proto_rawDescGZIP(), []int{0, 0}
201 }
202
203 func (x *SecurityPosture_PolicyDriftDetails) GetField() string {
204 if x != nil {
205 return x.Field
206 }
207 return ""
208 }
209
210 func (x *SecurityPosture_PolicyDriftDetails) GetExpectedValue() string {
211 if x != nil {
212 return x.ExpectedValue
213 }
214 return ""
215 }
216
217 func (x *SecurityPosture_PolicyDriftDetails) GetDetectedValue() string {
218 if x != nil {
219 return x.DetectedValue
220 }
221 return ""
222 }
223
224 var File_google_cloud_securitycenter_v1_security_posture_proto protoreflect.FileDescriptor
225
226 var file_google_cloud_securitycenter_v1_security_posture_proto_rawDesc = []byte{
227 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
228 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
229 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x75, 0x72,
230 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
231 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
232 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22, 0x83, 0x04, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x75,
233 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x73, 0x74, 0x75, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e,
234 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
235 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02,
236 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64,
237 0x12, 0x3e, 0x0a, 0x1b, 0x70, 0x6f, 0x73, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6c,
238 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
239 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x6f, 0x73, 0x74, 0x75, 0x72, 0x65, 0x44, 0x65,
240 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
241 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x6f, 0x73, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6c,
242 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x6f,
243 0x73, 0x74, 0x75, 0x72, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12,
244 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
245 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64,
246 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
247 0x5f, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6f, 0x6c, 0x69,
248 0x63, 0x79, 0x53, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18,
249 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x74, 0x0a,
250 0x14, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x64, 0x72, 0x69, 0x66, 0x74, 0x5f, 0x64, 0x65,
251 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f,
252 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
253 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63,
254 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x73, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x50, 0x6f, 0x6c,
255 0x69, 0x63, 0x79, 0x44, 0x72, 0x69, 0x66, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52,
256 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x72, 0x69, 0x66, 0x74, 0x44, 0x65, 0x74, 0x61,
257 0x69, 0x6c, 0x73, 0x1a, 0x78, 0x0a, 0x12, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x72, 0x69,
258 0x66, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65,
259 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12,
260 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
261 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65,
262 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74,
263 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
264 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xee, 0x01,
265 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
266 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
267 0x72, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f,
268 0x73, 0x74, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c,
269 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
270 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
271 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63,
272 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
273 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
274 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
275 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67,
276 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
277 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f,
278 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75,
279 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
280 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
281 }
282
283 var (
284 file_google_cloud_securitycenter_v1_security_posture_proto_rawDescOnce sync.Once
285 file_google_cloud_securitycenter_v1_security_posture_proto_rawDescData = file_google_cloud_securitycenter_v1_security_posture_proto_rawDesc
286 )
287
288 func file_google_cloud_securitycenter_v1_security_posture_proto_rawDescGZIP() []byte {
289 file_google_cloud_securitycenter_v1_security_posture_proto_rawDescOnce.Do(func() {
290 file_google_cloud_securitycenter_v1_security_posture_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_security_posture_proto_rawDescData)
291 })
292 return file_google_cloud_securitycenter_v1_security_posture_proto_rawDescData
293 }
294
295 var file_google_cloud_securitycenter_v1_security_posture_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
296 var file_google_cloud_securitycenter_v1_security_posture_proto_goTypes = []any{
297 (*SecurityPosture)(nil), // 0: google.cloud.securitycenter.v1.SecurityPosture
298 (*SecurityPosture_PolicyDriftDetails)(nil), // 1: google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails
299 }
300 var file_google_cloud_securitycenter_v1_security_posture_proto_depIdxs = []int32{
301 1, // 0: google.cloud.securitycenter.v1.SecurityPosture.policy_drift_details:type_name -> google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails
302 1, // [1:1] is the sub-list for method output_type
303 1, // [1:1] is the sub-list for method input_type
304 1, // [1:1] is the sub-list for extension type_name
305 1, // [1:1] is the sub-list for extension extendee
306 0, // [0:1] is the sub-list for field type_name
307 }
308
309 func init() { file_google_cloud_securitycenter_v1_security_posture_proto_init() }
310 func file_google_cloud_securitycenter_v1_security_posture_proto_init() {
311 if File_google_cloud_securitycenter_v1_security_posture_proto != nil {
312 return
313 }
314 type x struct{}
315 out := protoimpl.TypeBuilder{
316 File: protoimpl.DescBuilder{
317 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
318 RawDescriptor: file_google_cloud_securitycenter_v1_security_posture_proto_rawDesc,
319 NumEnums: 0,
320 NumMessages: 2,
321 NumExtensions: 0,
322 NumServices: 0,
323 },
324 GoTypes: file_google_cloud_securitycenter_v1_security_posture_proto_goTypes,
325 DependencyIndexes: file_google_cloud_securitycenter_v1_security_posture_proto_depIdxs,
326 MessageInfos: file_google_cloud_securitycenter_v1_security_posture_proto_msgTypes,
327 }.Build()
328 File_google_cloud_securitycenter_v1_security_posture_proto = out.File
329 file_google_cloud_securitycenter_v1_security_posture_proto_rawDesc = nil
330 file_google_cloud_securitycenter_v1_security_posture_proto_goTypes = nil
331 file_google_cloud_securitycenter_v1_security_posture_proto_depIdxs = nil
332 }