Debian Codegraph @

policysimulator/apiv1/policysimulatorpb/explanations.pb.go

raw symbols SCIP
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/policysimulator/v1/explanations.proto
20
21 package policysimulatorpb
22
23 import (
24 iampb "cloud.google.com/go/iam/apiv1/iampb"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 expr "google.golang.org/genproto/googleapis/type/expr"
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 reflect "reflect"
30 sync "sync"
31 )
32
33 const (
34 // Verify that this generated code is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36 // Verify that runtime/protoimpl is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40 // Whether a principal has a permission for a resource.
41 type AccessState int32
42
43 const (
44 // Default value. This value is unused.
45 AccessState_ACCESS_STATE_UNSPECIFIED AccessState = 0
46 // The principal has the permission.
47 AccessState_GRANTED AccessState = 1
48 // The principal does not have the permission.
49 AccessState_NOT_GRANTED AccessState = 2
50 // The principal has the permission only if a condition expression evaluates
51 // to `true`.
52 AccessState_UNKNOWN_CONDITIONAL AccessState = 3
53 // The user who created the
54 // [Replay][google.cloud.policysimulator.v1.Replay] does not have
55 // access to all of the policies that Policy Simulator needs to evaluate.
56 AccessState_UNKNOWN_INFO_DENIED AccessState = 4
57 )
58
59 // Enum value maps for AccessState.
60 var (
61 AccessState_name = map[int32]string{
62 0: "ACCESS_STATE_UNSPECIFIED",
63 1: "GRANTED",
64 2: "NOT_GRANTED",
65 3: "UNKNOWN_CONDITIONAL",
66 4: "UNKNOWN_INFO_DENIED",
67 }
68 AccessState_value = map[string]int32{
69 "ACCESS_STATE_UNSPECIFIED": 0,
70 "GRANTED": 1,
71 "NOT_GRANTED": 2,
72 "UNKNOWN_CONDITIONAL": 3,
73 "UNKNOWN_INFO_DENIED": 4,
74 }
75 )
76
77 func (x AccessState) Enum() *AccessState {
78 p := new(AccessState)
79 *p = x
80 return p
81 }
82
83 func (x AccessState) String() string {
84 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
85 }
86
87 func (AccessState) Descriptor() protoreflect.EnumDescriptor {
88 return file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[0].Descriptor()
89 }
90
91 func (AccessState) Type() protoreflect.EnumType {
92 return &file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[0]
93 }
94
95 func (x AccessState) Number() protoreflect.EnumNumber {
96 return protoreflect.EnumNumber(x)
97 }
98
99 // Deprecated: Use AccessState.Descriptor instead.
100 func (AccessState) EnumDescriptor() ([]byte, []int) {
101 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{0}
102 }
103
104 // The extent to which a single data point, such as the existence of a binding
105 // or whether a binding includes a specific principal, contributes to an overall
106 // determination.
107 type HeuristicRelevance int32
108
109 const (
110 // Default value. This value is unused.
111 HeuristicRelevance_HEURISTIC_RELEVANCE_UNSPECIFIED HeuristicRelevance = 0
112 // The data point has a limited effect on the result. Changing the data point
113 // is unlikely to affect the overall determination.
114 HeuristicRelevance_NORMAL HeuristicRelevance = 1
115 // The data point has a strong effect on the result. Changing the data point
116 // is likely to affect the overall determination.
117 HeuristicRelevance_HIGH HeuristicRelevance = 2
118 )
119
120 // Enum value maps for HeuristicRelevance.
121 var (
122 HeuristicRelevance_name = map[int32]string{
123 0: "HEURISTIC_RELEVANCE_UNSPECIFIED",
124 1: "NORMAL",
125 2: "HIGH",
126 }
127 HeuristicRelevance_value = map[string]int32{
128 "HEURISTIC_RELEVANCE_UNSPECIFIED": 0,
129 "NORMAL": 1,
130 "HIGH": 2,
131 }
132 )
133
134 func (x HeuristicRelevance) Enum() *HeuristicRelevance {
135 p := new(HeuristicRelevance)
136 *p = x
137 return p
138 }
139
140 func (x HeuristicRelevance) String() string {
141 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
142 }
143
144 func (HeuristicRelevance) Descriptor() protoreflect.EnumDescriptor {
145 return file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[1].Descriptor()
146 }
147
148 func (HeuristicRelevance) Type() protoreflect.EnumType {
149 return &file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[1]
150 }
151
152 func (x HeuristicRelevance) Number() protoreflect.EnumNumber {
153 return protoreflect.EnumNumber(x)
154 }
155
156 // Deprecated: Use HeuristicRelevance.Descriptor instead.
157 func (HeuristicRelevance) EnumDescriptor() ([]byte, []int) {
158 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{1}
159 }
160
161 // Whether a role includes a specific permission.
162 type BindingExplanation_RolePermission int32
163
164 const (
165 // Default value. This value is unused.
166 BindingExplanation_ROLE_PERMISSION_UNSPECIFIED BindingExplanation_RolePermission = 0
167 // The permission is included in the role.
168 BindingExplanation_ROLE_PERMISSION_INCLUDED BindingExplanation_RolePermission = 1
169 // The permission is not included in the role.
170 BindingExplanation_ROLE_PERMISSION_NOT_INCLUDED BindingExplanation_RolePermission = 2
171 // The user who created the
172 // [Replay][google.cloud.policysimulator.v1.Replay] is not
173 // allowed to access the binding.
174 BindingExplanation_ROLE_PERMISSION_UNKNOWN_INFO_DENIED BindingExplanation_RolePermission = 3
175 )
176
177 // Enum value maps for BindingExplanation_RolePermission.
178 var (
179 BindingExplanation_RolePermission_name = map[int32]string{
180 0: "ROLE_PERMISSION_UNSPECIFIED",
181 1: "ROLE_PERMISSION_INCLUDED",
182 2: "ROLE_PERMISSION_NOT_INCLUDED",
183 3: "ROLE_PERMISSION_UNKNOWN_INFO_DENIED",
184 }
185 BindingExplanation_RolePermission_value = map[string]int32{
186 "ROLE_PERMISSION_UNSPECIFIED": 0,
187 "ROLE_PERMISSION_INCLUDED": 1,
188 "ROLE_PERMISSION_NOT_INCLUDED": 2,
189 "ROLE_PERMISSION_UNKNOWN_INFO_DENIED": 3,
190 }
191 )
192
193 func (x BindingExplanation_RolePermission) Enum() *BindingExplanation_RolePermission {
194 p := new(BindingExplanation_RolePermission)
195 *p = x
196 return p
197 }
198
199 func (x BindingExplanation_RolePermission) String() string {
200 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
201 }
202
203 func (BindingExplanation_RolePermission) Descriptor() protoreflect.EnumDescriptor {
204 return file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[2].Descriptor()
205 }
206
207 func (BindingExplanation_RolePermission) Type() protoreflect.EnumType {
208 return &file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[2]
209 }
210
211 func (x BindingExplanation_RolePermission) Number() protoreflect.EnumNumber {
212 return protoreflect.EnumNumber(x)
213 }
214
215 // Deprecated: Use BindingExplanation_RolePermission.Descriptor instead.
216 func (BindingExplanation_RolePermission) EnumDescriptor() ([]byte, []int) {
217 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{2, 0}
218 }
219
220 // Whether the binding includes the principal.
221 type BindingExplanation_Membership int32
222
223 const (
224 // Default value. This value is unused.
225 BindingExplanation_MEMBERSHIP_UNSPECIFIED BindingExplanation_Membership = 0
226 // The binding includes the principal. The principal can be included
227 // directly or indirectly. For example:
228 //
229 // - A principal is included directly if that principal is listed in the
230 // binding.
231 // - A principal is included indirectly if that principal is in a Google
232 // group or Google Workspace domain that is listed in the binding.
233 BindingExplanation_MEMBERSHIP_INCLUDED BindingExplanation_Membership = 1
234 // The binding does not include the principal.
235 BindingExplanation_MEMBERSHIP_NOT_INCLUDED BindingExplanation_Membership = 2
236 // The user who created the
237 // [Replay][google.cloud.policysimulator.v1.Replay] is not
238 // allowed to access the binding.
239 BindingExplanation_MEMBERSHIP_UNKNOWN_INFO_DENIED BindingExplanation_Membership = 3
240 // The principal is an unsupported type. Only Google Accounts and service
241 // accounts are supported.
242 BindingExplanation_MEMBERSHIP_UNKNOWN_UNSUPPORTED BindingExplanation_Membership = 4
243 )
244
245 // Enum value maps for BindingExplanation_Membership.
246 var (
247 BindingExplanation_Membership_name = map[int32]string{
248 0: "MEMBERSHIP_UNSPECIFIED",
249 1: "MEMBERSHIP_INCLUDED",
250 2: "MEMBERSHIP_NOT_INCLUDED",
251 3: "MEMBERSHIP_UNKNOWN_INFO_DENIED",
252 4: "MEMBERSHIP_UNKNOWN_UNSUPPORTED",
253 }
254 BindingExplanation_Membership_value = map[string]int32{
255 "MEMBERSHIP_UNSPECIFIED": 0,
256 "MEMBERSHIP_INCLUDED": 1,
257 "MEMBERSHIP_NOT_INCLUDED": 2,
258 "MEMBERSHIP_UNKNOWN_INFO_DENIED": 3,
259 "MEMBERSHIP_UNKNOWN_UNSUPPORTED": 4,
260 }
261 )
262
263 func (x BindingExplanation_Membership) Enum() *BindingExplanation_Membership {
264 p := new(BindingExplanation_Membership)
265 *p = x
266 return p
267 }
268
269 func (x BindingExplanation_Membership) String() string {
270 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
271 }
272
273 func (BindingExplanation_Membership) Descriptor() protoreflect.EnumDescriptor {
274 return file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[3].Descriptor()
275 }
276
277 func (BindingExplanation_Membership) Type() protoreflect.EnumType {
278 return &file_google_cloud_policysimulator_v1_explanations_proto_enumTypes[3]
279 }
280
281 func (x BindingExplanation_Membership) Number() protoreflect.EnumNumber {
282 return protoreflect.EnumNumber(x)
283 }
284
285 // Deprecated: Use BindingExplanation_Membership.Descriptor instead.
286 func (BindingExplanation_Membership) EnumDescriptor() ([]byte, []int) {
287 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{2, 1}
288 }
289
290 // Information about the principal, resource, and permission to check.
291 type AccessTuple struct {
292 state protoimpl.MessageState
293 sizeCache protoimpl.SizeCache
294 unknownFields protoimpl.UnknownFields
295
296 // Required. The principal whose access you want to check, in the form of
297 // the email address that represents that principal. For example,
298 // `[email protected]` or
299 // `[email protected]`.
300 //
301 // The principal must be a Google Account or a service account. Other types of
302 // principals are not supported.
303 Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
304 // Required. The full resource name that identifies the resource. For example,
305 // `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
306 //
307 // For examples of full resource names for Google Cloud services, see
308 // https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
309 FullResourceName string `protobuf:"bytes,2,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
310 // Required. The IAM permission to check for the specified principal and
311 // resource.
312 //
313 // For a complete list of IAM permissions, see
314 // https://cloud.google.com/iam/help/permissions/reference.
315 //
316 // For a complete list of predefined IAM roles and the permissions in each
317 // role, see https://cloud.google.com/iam/help/roles/reference.
318 Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
319 }
320
321 func (x *AccessTuple) Reset() {
322 *x = AccessTuple{}
323 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[0]
324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
325 ms.StoreMessageInfo(mi)
326 }
327
328 func (x *AccessTuple) String() string {
329 return protoimpl.X.MessageStringOf(x)
330 }
331
332 func (*AccessTuple) ProtoMessage() {}
333
334 func (x *AccessTuple) ProtoReflect() protoreflect.Message {
335 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[0]
336 if x != nil {
337 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
338 if ms.LoadMessageInfo() == nil {
339 ms.StoreMessageInfo(mi)
340 }
341 return ms
342 }
343 return mi.MessageOf(x)
344 }
345
346 // Deprecated: Use AccessTuple.ProtoReflect.Descriptor instead.
347 func (*AccessTuple) Descriptor() ([]byte, []int) {
348 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{0}
349 }
350
351 func (x *AccessTuple) GetPrincipal() string {
352 if x != nil {
353 return x.Principal
354 }
355 return ""
356 }
357
358 func (x *AccessTuple) GetFullResourceName() string {
359 if x != nil {
360 return x.FullResourceName
361 }
362 return ""
363 }
364
365 func (x *AccessTuple) GetPermission() string {
366 if x != nil {
367 return x.Permission
368 }
369 return ""
370 }
371
372 // Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed
373 // to the access check.
374 type ExplainedPolicy struct {
375 state protoimpl.MessageState
376 sizeCache protoimpl.SizeCache
377 unknownFields protoimpl.UnknownFields
378
379 // Indicates whether _this policy_ provides the specified permission to the
380 // specified principal for the specified resource.
381 //
382 // This field does _not_ indicate whether the principal actually has the
383 // permission for the resource. There might be another policy that overrides
384 // this policy. To determine whether the principal actually has the
385 // permission, use the `access` field in the
386 // [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
387 Access AccessState `protobuf:"varint,1,opt,name=access,proto3,enum=google.cloud.policysimulator.v1.AccessState" json:"access,omitempty"`
388 // The full resource name that identifies the resource. For example,
389 // `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
390 //
391 // If the user who created the
392 // [Replay][google.cloud.policysimulator.v1.Replay] does not have
393 // access to the policy, this field is omitted.
394 //
395 // For examples of full resource names for Google Cloud services, see
396 // https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
397 FullResourceName string `protobuf:"bytes,2,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
398 // The IAM policy attached to the resource.
399 //
400 // If the user who created the
401 // [Replay][google.cloud.policysimulator.v1.Replay] does not have
402 // access to the policy, this field is empty.
403 Policy *iampb.Policy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
404 // Details about how each binding in the policy affects the principal's
405 // ability, or inability, to use the permission for the resource.
406 //
407 // If the user who created the
408 // [Replay][google.cloud.policysimulator.v1.Replay] does not have
409 // access to the policy, this field is omitted.
410 BindingExplanations []*BindingExplanation `protobuf:"bytes,4,rep,name=binding_explanations,json=bindingExplanations,proto3" json:"binding_explanations,omitempty"`
411 // The relevance of this policy to the overall determination in the
412 // [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
413 //
414 // If the user who created the
415 // [Replay][google.cloud.policysimulator.v1.Replay] does not have
416 // access to the policy, this field is omitted.
417 Relevance HeuristicRelevance `protobuf:"varint,5,opt,name=relevance,proto3,enum=google.cloud.policysimulator.v1.HeuristicRelevance" json:"relevance,omitempty"`
418 }
419
420 func (x *ExplainedPolicy) Reset() {
421 *x = ExplainedPolicy{}
422 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[1]
423 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
424 ms.StoreMessageInfo(mi)
425 }
426
427 func (x *ExplainedPolicy) String() string {
428 return protoimpl.X.MessageStringOf(x)
429 }
430
431 func (*ExplainedPolicy) ProtoMessage() {}
432
433 func (x *ExplainedPolicy) ProtoReflect() protoreflect.Message {
434 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[1]
435 if x != nil {
436 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
437 if ms.LoadMessageInfo() == nil {
438 ms.StoreMessageInfo(mi)
439 }
440 return ms
441 }
442 return mi.MessageOf(x)
443 }
444
445 // Deprecated: Use ExplainedPolicy.ProtoReflect.Descriptor instead.
446 func (*ExplainedPolicy) Descriptor() ([]byte, []int) {
447 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{1}
448 }
449
450 func (x *ExplainedPolicy) GetAccess() AccessState {
451 if x != nil {
452 return x.Access
453 }
454 return AccessState_ACCESS_STATE_UNSPECIFIED
455 }
456
457 func (x *ExplainedPolicy) GetFullResourceName() string {
458 if x != nil {
459 return x.FullResourceName
460 }
461 return ""
462 }
463
464 func (x *ExplainedPolicy) GetPolicy() *iampb.Policy {
465 if x != nil {
466 return x.Policy
467 }
468 return nil
469 }
470
471 func (x *ExplainedPolicy) GetBindingExplanations() []*BindingExplanation {
472 if x != nil {
473 return x.BindingExplanations
474 }
475 return nil
476 }
477
478 func (x *ExplainedPolicy) GetRelevance() HeuristicRelevance {
479 if x != nil {
480 return x.Relevance
481 }
482 return HeuristicRelevance_HEURISTIC_RELEVANCE_UNSPECIFIED
483 }
484
485 // Details about how a binding in a policy affects a principal's ability to use
486 // a permission.
487 type BindingExplanation struct {
488 state protoimpl.MessageState
489 sizeCache protoimpl.SizeCache
490 unknownFields protoimpl.UnknownFields
491
492 // Required. Indicates whether _this binding_ provides the specified
493 // permission to the specified principal for the specified resource.
494 //
495 // This field does _not_ indicate whether the principal actually has the
496 // permission for the resource. There might be another binding that overrides
497 // this binding. To determine whether the principal actually has the
498 // permission, use the `access` field in the
499 // [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
500 Access AccessState `protobuf:"varint,1,opt,name=access,proto3,enum=google.cloud.policysimulator.v1.AccessState" json:"access,omitempty"`
501 // The role that this binding grants. For example,
502 // `roles/compute.serviceAgent`.
503 //
504 // For a complete list of predefined IAM roles, as well as the permissions in
505 // each role, see https://cloud.google.com/iam/help/roles/reference.
506 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
507 // Indicates whether the role granted by this binding contains the specified
508 // permission.
509 RolePermission BindingExplanation_RolePermission `protobuf:"varint,3,opt,name=role_permission,json=rolePermission,proto3,enum=google.cloud.policysimulator.v1.BindingExplanation_RolePermission" json:"role_permission,omitempty"`
510 // The relevance of the permission's existence, or nonexistence, in the role
511 // to the overall determination for the entire policy.
512 RolePermissionRelevance HeuristicRelevance `protobuf:"varint,4,opt,name=role_permission_relevance,json=rolePermissionRelevance,proto3,enum=google.cloud.policysimulator.v1.HeuristicRelevance" json:"role_permission_relevance,omitempty"`
513 // Indicates whether each principal in the binding includes the principal
514 // specified in the request, either directly or indirectly. Each key
515 // identifies a principal in the binding, and each value indicates whether the
516 // principal in the binding includes the principal in the request.
517 //
518 // For example, suppose that a binding includes the following principals:
519 //
520 // * `user:[email protected]`
521 // * `group:[email protected]`
522 //
523 // The principal in the replayed access tuple is `user:[email protected]`. This
524 // user is a principal of the group `group:[email protected]`.
525 //
526 // For the first principal in the binding, the key is
527 // `user:[email protected]`, and the `membership` field in the value is set to
528 // `MEMBERSHIP_NOT_INCLUDED`.
529 //
530 // For the second principal in the binding, the key is
531 // `group:[email protected]`, and the `membership` field in the value is
532 // set to `MEMBERSHIP_INCLUDED`.
533 Memberships map[string]*BindingExplanation_AnnotatedMembership `protobuf:"bytes,5,rep,name=memberships,proto3" json:"memberships,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
534 // The relevance of this binding to the overall determination for the entire
535 // policy.
536 Relevance HeuristicRelevance `protobuf:"varint,6,opt,name=relevance,proto3,enum=google.cloud.policysimulator.v1.HeuristicRelevance" json:"relevance,omitempty"`
537 // A condition expression that prevents this binding from granting access
538 // unless the expression evaluates to `true`.
539 //
540 // To learn about IAM Conditions, see
541 // https://cloud.google.com/iam/docs/conditions-overview.
542 Condition *expr.Expr `protobuf:"bytes,7,opt,name=condition,proto3" json:"condition,omitempty"`
543 }
544
545 func (x *BindingExplanation) Reset() {
546 *x = BindingExplanation{}
547 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[2]
548 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
549 ms.StoreMessageInfo(mi)
550 }
551
552 func (x *BindingExplanation) String() string {
553 return protoimpl.X.MessageStringOf(x)
554 }
555
556 func (*BindingExplanation) ProtoMessage() {}
557
558 func (x *BindingExplanation) ProtoReflect() protoreflect.Message {
559 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[2]
560 if x != nil {
561 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
562 if ms.LoadMessageInfo() == nil {
563 ms.StoreMessageInfo(mi)
564 }
565 return ms
566 }
567 return mi.MessageOf(x)
568 }
569
570 // Deprecated: Use BindingExplanation.ProtoReflect.Descriptor instead.
571 func (*BindingExplanation) Descriptor() ([]byte, []int) {
572 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{2}
573 }
574
575 func (x *BindingExplanation) GetAccess() AccessState {
576 if x != nil {
577 return x.Access
578 }
579 return AccessState_ACCESS_STATE_UNSPECIFIED
580 }
581
582 func (x *BindingExplanation) GetRole() string {
583 if x != nil {
584 return x.Role
585 }
586 return ""
587 }
588
589 func (x *BindingExplanation) GetRolePermission() BindingExplanation_RolePermission {
590 if x != nil {
591 return x.RolePermission
592 }
593 return BindingExplanation_ROLE_PERMISSION_UNSPECIFIED
594 }
595
596 func (x *BindingExplanation) GetRolePermissionRelevance() HeuristicRelevance {
597 if x != nil {
598 return x.RolePermissionRelevance
599 }
600 return HeuristicRelevance_HEURISTIC_RELEVANCE_UNSPECIFIED
601 }
602
603 func (x *BindingExplanation) GetMemberships() map[string]*BindingExplanation_AnnotatedMembership {
604 if x != nil {
605 return x.Memberships
606 }
607 return nil
608 }
609
610 func (x *BindingExplanation) GetRelevance() HeuristicRelevance {
611 if x != nil {
612 return x.Relevance
613 }
614 return HeuristicRelevance_HEURISTIC_RELEVANCE_UNSPECIFIED
615 }
616
617 func (x *BindingExplanation) GetCondition() *expr.Expr {
618 if x != nil {
619 return x.Condition
620 }
621 return nil
622 }
623
624 // Details about whether the binding includes the principal.
625 type BindingExplanation_AnnotatedMembership struct {
626 state protoimpl.MessageState
627 sizeCache protoimpl.SizeCache
628 unknownFields protoimpl.UnknownFields
629
630 // Indicates whether the binding includes the principal.
631 Membership BindingExplanation_Membership `protobuf:"varint,1,opt,name=membership,proto3,enum=google.cloud.policysimulator.v1.BindingExplanation_Membership" json:"membership,omitempty"`
632 // The relevance of the principal's status to the overall determination for
633 // the binding.
634 Relevance HeuristicRelevance `protobuf:"varint,2,opt,name=relevance,proto3,enum=google.cloud.policysimulator.v1.HeuristicRelevance" json:"relevance,omitempty"`
635 }
636
637 func (x *BindingExplanation_AnnotatedMembership) Reset() {
638 *x = BindingExplanation_AnnotatedMembership{}
639 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[3]
640 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
641 ms.StoreMessageInfo(mi)
642 }
643
644 func (x *BindingExplanation_AnnotatedMembership) String() string {
645 return protoimpl.X.MessageStringOf(x)
646 }
647
648 func (*BindingExplanation_AnnotatedMembership) ProtoMessage() {}
649
650 func (x *BindingExplanation_AnnotatedMembership) ProtoReflect() protoreflect.Message {
651 mi := &file_google_cloud_policysimulator_v1_explanations_proto_msgTypes[3]
652 if x != nil {
653 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
654 if ms.LoadMessageInfo() == nil {
655 ms.StoreMessageInfo(mi)
656 }
657 return ms
658 }
659 return mi.MessageOf(x)
660 }
661
662 // Deprecated: Use BindingExplanation_AnnotatedMembership.ProtoReflect.Descriptor instead.
663 func (*BindingExplanation_AnnotatedMembership) Descriptor() ([]byte, []int) {
664 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP(), []int{2, 0}
665 }
666
667 func (x *BindingExplanation_AnnotatedMembership) GetMembership() BindingExplanation_Membership {
668 if x != nil {
669 return x.Membership
670 }
671 return BindingExplanation_MEMBERSHIP_UNSPECIFIED
672 }
673
674 func (x *BindingExplanation_AnnotatedMembership) GetRelevance() HeuristicRelevance {
675 if x != nil {
676 return x.Relevance
677 }
678 return HeuristicRelevance_HEURISTIC_RELEVANCE_UNSPECIFIED
679 }
680
681 var File_google_cloud_policysimulator_v1_explanations_proto protoreflect.FileDescriptor
682
683 var file_google_cloud_policysimulator_v1_explanations_proto_rawDesc = []byte{
684 0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70,
685 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x76,
686 0x31, 0x2f, 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
687 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
688 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74,
689 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
690 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
691 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69,
692 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f,
693 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f,
694 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01, 0x0a, 0x0b, 0x41,
695 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x75, 0x70, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x09, 0x70, 0x72,
696 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
697 0x41, 0x02, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x31, 0x0a,
698 0x12, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e,
699 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10,
700 0x66, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
701 0x12, 0x23, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03,
702 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69,
703 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xef, 0x02, 0x0a, 0x0f, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69,
704 0x6e, 0x65, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x44, 0x0a, 0x06, 0x61, 0x63, 0x63,
705 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
706 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73,
707 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65,
708 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
709 0x2c, 0x0a, 0x12, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
710 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x75, 0x6c,
711 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a,
712 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e,
713 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,
714 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x66, 0x0a, 0x14,
715 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74,
716 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f,
717 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
718 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e,
719 0x64, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
720 0x13, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74,
721 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x51, 0x0a, 0x09, 0x72, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63,
722 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
723 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d,
724 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x75, 0x72, 0x69, 0x73,
725 0x74, 0x69, 0x63, 0x52, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65,
726 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd8, 0x09, 0x0a, 0x12, 0x42, 0x69, 0x6e, 0x64,
727 0x69, 0x6e, 0x67, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49,
728 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c,
729 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f,
730 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31,
731 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41,
732 0x02, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c,
733 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x6b, 0x0a,
734 0x0f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
735 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
736 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75,
737 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67,
738 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x6f, 0x6c, 0x65,
739 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x72, 0x6f, 0x6c, 0x65,
740 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x6f, 0x0a, 0x19, 0x72, 0x6f,
741 0x6c, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65,
742 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e,
743 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c,
744 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e,
745 0x48, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e,
746 0x63, 0x65, 0x52, 0x17, 0x72, 0x6f, 0x6c, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
747 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0b, 0x6d,
748 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
749 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
750 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e,
751 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e,
752 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70,
753 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68,
754 0x69, 0x70, 0x73, 0x12, 0x51, 0x0a, 0x09, 0x72, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65,
755 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
756 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75,
757 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74,
758 0x69, 0x63, 0x52, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x6c,
759 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,
760 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
761 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f,
762 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xc8, 0x01, 0x0a, 0x13, 0x41, 0x6e, 0x6e, 0x6f,
763 0x74, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12,
764 0x5e, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x18, 0x01, 0x20,
765 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
766 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74,
767 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x70,
768 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
769 0x68, 0x69, 0x70, 0x52, 0x0a, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12,
770 0x51, 0x0a, 0x09, 0x72, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
771 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
772 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f,
773 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 0x65,
774 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e,
775 0x63, 0x65, 0x1a, 0x87, 0x01, 0x0a, 0x10, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69,
776 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
777 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x5d, 0x0a, 0x05, 0x76, 0x61, 0x6c,
778 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
779 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69,
780 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69,
781 0x6e, 0x67, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e,
782 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69,
783 0x70, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9a, 0x01, 0x0a,
784 0x0e, 0x52, 0x6f, 0x6c, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
785 0x1f, 0x0a, 0x1b, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49,
786 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
787 0x12, 0x1c, 0x0a, 0x18, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53,
788 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x20,
789 0x0a, 0x1c, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f,
790 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x44, 0x10, 0x02,
791 0x12, 0x27, 0x0a, 0x23, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53,
792 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x4e, 0x46, 0x4f,
793 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x03, 0x22, 0xa6, 0x01, 0x0a, 0x0a, 0x4d, 0x65,
794 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x45, 0x4d, 0x42,
795 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
796 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48,
797 0x49, 0x50, 0x5f, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1b, 0x0a,
798 0x17, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x4e, 0x4f, 0x54, 0x5f,
799 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x44, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x45,
800 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
801 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x03, 0x12, 0x22,
802 0x0a, 0x1e, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x55, 0x4e, 0x4b,
803 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44,
804 0x10, 0x04, 0x2a, 0x7b, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74,
805 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x53, 0x54, 0x41, 0x54,
806 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
807 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b,
808 0x4e, 0x4f, 0x54, 0x5f, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x17, 0x0a,
809 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49,
810 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
811 0x4e, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x04, 0x2a,
812 0x4f, 0x0a, 0x12, 0x48, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 0x65, 0x6c, 0x65,
813 0x76, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x1f, 0x48, 0x45, 0x55, 0x52, 0x49, 0x53, 0x54,
814 0x49, 0x43, 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x56, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53,
815 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f,
816 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x02,
817 0x42, 0xf2, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
818 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75,
819 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e,
820 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x63,
821 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
822 0x67, 0x6f, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74,
823 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x73,
824 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x70, 0x62, 0x3b, 0x70, 0x6f, 0x6c, 0x69, 0x63,
825 0x79, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47,
826 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x6f, 0x6c, 0x69,
827 0x63, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02,
828 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x6f,
829 0x6c, 0x69, 0x63, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x5c, 0x56, 0x31,
830 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
831 0x3a, 0x3a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f,
832 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
833 }
834
835 var (
836 file_google_cloud_policysimulator_v1_explanations_proto_rawDescOnce sync.Once
837 file_google_cloud_policysimulator_v1_explanations_proto_rawDescData = file_google_cloud_policysimulator_v1_explanations_proto_rawDesc
838 )
839
840 func file_google_cloud_policysimulator_v1_explanations_proto_rawDescGZIP() []byte {
841 file_google_cloud_policysimulator_v1_explanations_proto_rawDescOnce.Do(func() {
842 file_google_cloud_policysimulator_v1_explanations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_policysimulator_v1_explanations_proto_rawDescData)
843 })
844 return file_google_cloud_policysimulator_v1_explanations_proto_rawDescData
845 }
846
847 var file_google_cloud_policysimulator_v1_explanations_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
848 var file_google_cloud_policysimulator_v1_explanations_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
849 var file_google_cloud_policysimulator_v1_explanations_proto_goTypes = []any{
850 (AccessState)(0), // 0: google.cloud.policysimulator.v1.AccessState
851 (HeuristicRelevance)(0), // 1: google.cloud.policysimulator.v1.HeuristicRelevance
852 (BindingExplanation_RolePermission)(0), // 2: google.cloud.policysimulator.v1.BindingExplanation.RolePermission
853 (BindingExplanation_Membership)(0), // 3: google.cloud.policysimulator.v1.BindingExplanation.Membership
854 (*AccessTuple)(nil), // 4: google.cloud.policysimulator.v1.AccessTuple
855 (*ExplainedPolicy)(nil), // 5: google.cloud.policysimulator.v1.ExplainedPolicy
856 (*BindingExplanation)(nil), // 6: google.cloud.policysimulator.v1.BindingExplanation
857 (*BindingExplanation_AnnotatedMembership)(nil), // 7: google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership
858 nil, // 8: google.cloud.policysimulator.v1.BindingExplanation.MembershipsEntry
859 (*iampb.Policy)(nil), // 9: google.iam.v1.Policy
860 (*expr.Expr)(nil), // 10: google.type.Expr
861 }
862 var file_google_cloud_policysimulator_v1_explanations_proto_depIdxs = []int32{
863 0, // 0: google.cloud.policysimulator.v1.ExplainedPolicy.access:type_name -> google.cloud.policysimulator.v1.AccessState
864 9, // 1: google.cloud.policysimulator.v1.ExplainedPolicy.policy:type_name -> google.iam.v1.Policy
865 6, // 2: google.cloud.policysimulator.v1.ExplainedPolicy.binding_explanations:type_name -> google.cloud.policysimulator.v1.BindingExplanation
866 1, // 3: google.cloud.policysimulator.v1.ExplainedPolicy.relevance:type_name -> google.cloud.policysimulator.v1.HeuristicRelevance
867 0, // 4: google.cloud.policysimulator.v1.BindingExplanation.access:type_name -> google.cloud.policysimulator.v1.AccessState
868 2, // 5: google.cloud.policysimulator.v1.BindingExplanation.role_permission:type_name -> google.cloud.policysimulator.v1.BindingExplanation.RolePermission
869 1, // 6: google.cloud.policysimulator.v1.BindingExplanation.role_permission_relevance:type_name -> google.cloud.policysimulator.v1.HeuristicRelevance
870 8, // 7: google.cloud.policysimulator.v1.BindingExplanation.memberships:type_name -> google.cloud.policysimulator.v1.BindingExplanation.MembershipsEntry
871 1, // 8: google.cloud.policysimulator.v1.BindingExplanation.relevance:type_name -> google.cloud.policysimulator.v1.HeuristicRelevance
872 10, // 9: google.cloud.policysimulator.v1.BindingExplanation.condition:type_name -> google.type.Expr
873 3, // 10: google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership.membership:type_name -> google.cloud.policysimulator.v1.BindingExplanation.Membership
874 1, // 11: google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership.relevance:type_name -> google.cloud.policysimulator.v1.HeuristicRelevance
875 7, // 12: google.cloud.policysimulator.v1.BindingExplanation.MembershipsEntry.value:type_name -> google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership
876 13, // [13:13] is the sub-list for method output_type
877 13, // [13:13] is the sub-list for method input_type
878 13, // [13:13] is the sub-list for extension type_name
879 13, // [13:13] is the sub-list for extension extendee
880 0, // [0:13] is the sub-list for field type_name
881 }
882
883 func init() { file_google_cloud_policysimulator_v1_explanations_proto_init() }
884 func file_google_cloud_policysimulator_v1_explanations_proto_init() {
885 if File_google_cloud_policysimulator_v1_explanations_proto != nil {
886 return
887 }
888 type x struct{}
889 out := protoimpl.TypeBuilder{
890 File: protoimpl.DescBuilder{
891 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
892 RawDescriptor: file_google_cloud_policysimulator_v1_explanations_proto_rawDesc,
893 NumEnums: 4,
894 NumMessages: 5,
895 NumExtensions: 0,
896 NumServices: 0,
897 },
898 GoTypes: file_google_cloud_policysimulator_v1_explanations_proto_goTypes,
899 DependencyIndexes: file_google_cloud_policysimulator_v1_explanations_proto_depIdxs,
900 EnumInfos: file_google_cloud_policysimulator_v1_explanations_proto_enumTypes,
901 MessageInfos: file_google_cloud_policysimulator_v1_explanations_proto_msgTypes,
902 }.Build()
903 File_google_cloud_policysimulator_v1_explanations_proto = out.File
904 file_google_cloud_policysimulator_v1_explanations_proto_rawDesc = nil
905 file_google_cloud_policysimulator_v1_explanations_proto_goTypes = nil
906 file_google_cloud_policysimulator_v1_explanations_proto_depIdxs = nil
907 }