Debian Codegraph @

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