| 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/iam/v3/policy_binding_resources.proto |
| 20 |
|
| 21 |
package iampb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
expr "google.golang.org/genproto/googleapis/type/expr" |
| 26 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 27 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 28 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 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 |
// Different policy kinds supported in this binding. |
| 41 |
type PolicyBinding_PolicyKind int32 |
| 42 |
|
| 43 |
const ( |
| 44 |
// Unspecified policy kind; Not a valid state |
| 45 |
PolicyBinding_POLICY_KIND_UNSPECIFIED PolicyBinding_PolicyKind = 0 |
| 46 |
// Principal access boundary policy kind |
| 47 |
PolicyBinding_PRINCIPAL_ACCESS_BOUNDARY PolicyBinding_PolicyKind = 1 |
| 48 |
) |
| 49 |
|
| 50 |
// Enum value maps for PolicyBinding_PolicyKind. |
| 51 |
var ( |
| 52 |
PolicyBinding_PolicyKind_name = map[int32]string{ |
| 53 |
0: "POLICY_KIND_UNSPECIFIED", |
| 54 |
1: "PRINCIPAL_ACCESS_BOUNDARY", |
| 55 |
} |
| 56 |
PolicyBinding_PolicyKind_value = map[string]int32{ |
| 57 |
"POLICY_KIND_UNSPECIFIED": 0, |
| 58 |
"PRINCIPAL_ACCESS_BOUNDARY": 1, |
| 59 |
} |
| 60 |
) |
| 61 |
|
| 62 |
func (x PolicyBinding_PolicyKind) Enum() *PolicyBinding_PolicyKind { |
| 63 |
p := new(PolicyBinding_PolicyKind) |
| 64 |
*p = x |
| 65 |
return p |
| 66 |
} |
| 67 |
|
| 68 |
func (x PolicyBinding_PolicyKind) String() string { |
| 69 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 70 |
} |
| 71 |
|
| 72 |
func (PolicyBinding_PolicyKind) Descriptor() protoreflect.EnumDescriptor { |
| 73 |
return file_google_iam_v3_policy_binding_resources_proto_enumTypes[0].Descriptor() |
| 74 |
} |
| 75 |
|
| 76 |
func (PolicyBinding_PolicyKind) Type() protoreflect.EnumType { |
| 77 |
return &file_google_iam_v3_policy_binding_resources_proto_enumTypes[0] |
| 78 |
} |
| 79 |
|
| 80 |
func (x PolicyBinding_PolicyKind) Number() protoreflect.EnumNumber { |
| 81 |
return protoreflect.EnumNumber(x) |
| 82 |
} |
| 83 |
|
| 84 |
// Deprecated: Use PolicyBinding_PolicyKind.Descriptor instead. |
| 85 |
func (PolicyBinding_PolicyKind) EnumDescriptor() ([]byte, []int) { |
| 86 |
return file_google_iam_v3_policy_binding_resources_proto_rawDescGZIP(), []int{0, 0} |
| 87 |
} |
| 88 |
|
| 89 |
// IAM policy binding resource. |
| 90 |
type PolicyBinding struct { |
| 91 |
state protoimpl.MessageState |
| 92 |
sizeCache protoimpl.SizeCache |
| 93 |
unknownFields protoimpl.UnknownFields |
| 94 |
|
| 95 |
// Identifier. The name of the policy binding, in the format |
| 96 |
// `{binding_parent/locations/{location}/policyBindings/{policy_binding_id}`. |
| 97 |
// The binding parent is the closest Resource Manager resource (project, |
| 98 |
// folder, or organization) to the binding target. |
| 99 |
// |
| 100 |
// Format: |
| 101 |
// |
| 102 |
// * `projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}` |
| 103 |
// * `projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}` |
| 104 |
// * `folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}` |
| 105 |
// * `organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}` |
| 106 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 107 |
// Output only. The globally unique ID of the policy binding. Assigned when |
| 108 |
// the policy binding is created. |
| 109 |
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` |
| 110 |
// Optional. The etag for the policy binding. |
| 111 |
// If this is provided on update, it must match the server's etag. |
| 112 |
Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` |
| 113 |
// Optional. The description of the policy binding. Must be less than or equal |
| 114 |
// to 63 characters. |
| 115 |
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| 116 |
// Optional. User-defined annotations. See |
| 117 |
// https://google.aip.dev/148#annotations for more details such as format and |
| 118 |
// size limitations |
| 119 |
Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 120 |
// Required. Immutable. Target is the full resource name of the resource to |
| 121 |
// which the policy will be bound. Immutable once set. |
| 122 |
Target *PolicyBinding_Target `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"` |
| 123 |
// Immutable. The kind of the policy to attach in this binding. This field |
| 124 |
// must be one of the following: |
| 125 |
// |
| 126 |
// - Left empty (will be automatically set to the policy kind) |
| 127 |
// - The input policy kind |
| 128 |
PolicyKind PolicyBinding_PolicyKind `protobuf:"varint,11,opt,name=policy_kind,json=policyKind,proto3,enum=google.iam.v3.PolicyBinding_PolicyKind" json:"policy_kind,omitempty"` |
| 129 |
// Required. Immutable. The resource name of the policy to be bound. The |
| 130 |
// binding parent and policy must belong to the same organization. |
| 131 |
Policy string `protobuf:"bytes,7,opt,name=policy,proto3" json:"policy,omitempty"` |
| 132 |
// Output only. The globally unique ID of the policy to be bound. |
| 133 |
PolicyUid string `protobuf:"bytes,12,opt,name=policy_uid,json=policyUid,proto3" json:"policy_uid,omitempty"` |
| 134 |
// Optional. The condition to apply to the policy binding. When set, the |
| 135 |
// `expression` field in the `Expr` must include from 1 to 10 subexpressions, |
| 136 |
// joined by the |
| 137 |
// "||"(Logical OR), "&&"(Logical AND) or "!"(Logical NOT) operators and |
| 138 |
// cannot contain more than 250 characters. |
| 139 |
// |
| 140 |
// The condition is currently only supported when bound to policies of kind |
| 141 |
// principal access boundary. |
| 142 |
// |
| 143 |
// When the bound policy is a principal access boundary policy, the only |
| 144 |
// supported attributes in any subexpression are `principal.type` and |
| 145 |
// `principal.subject`. An example expression is: "principal.type == |
| 146 |
// 'iam.googleapis.com/ServiceAccount'" or "principal.subject == |
| 147 |
// '[email protected]'". |
| 148 |
// |
| 149 |
// Allowed operations for `principal.subject`: |
| 150 |
// |
| 151 |
// - `principal.subject == <principal subject string>` |
| 152 |
// - `principal.subject != <principal subject string>` |
| 153 |
// - `principal.subject in [<list of principal subjects>]` |
| 154 |
// - `principal.subject.startsWith(<string>)` |
| 155 |
// - `principal.subject.endsWith(<string>)` |
| 156 |
// |
| 157 |
// Allowed operations for `principal.type`: |
| 158 |
// |
| 159 |
// - `principal.type == <principal type string>` |
| 160 |
// - `principal.type != <principal type string>` |
| 161 |
// - `principal.type in [<list of principal types>]` |
| 162 |
// |
| 163 |
// Supported principal types are Workspace, Workforce Pool, Workload Pool and |
| 164 |
// Service Account. Allowed string must be one of: |
| 165 |
// |
| 166 |
// - iam.googleapis.com/WorkspaceIdentity |
| 167 |
// - iam.googleapis.com/WorkforcePoolIdentity |
| 168 |
// - iam.googleapis.com/WorkloadPoolIdentity |
| 169 |
// - iam.googleapis.com/ServiceAccount |
| 170 |
Condition *expr.Expr `protobuf:"bytes,8,opt,name=condition,proto3" json:"condition,omitempty"` |
| 171 |
// Output only. The time when the policy binding was created. |
| 172 |
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| 173 |
// Output only. The time when the policy binding was most recently updated. |
| 174 |
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| 175 |
} |
| 176 |
|
| 177 |
func (x *PolicyBinding) Reset() { |
| 178 |
*x = PolicyBinding{} |
| 179 |
mi := &file_google_iam_v3_policy_binding_resources_proto_msgTypes[0] |
| 180 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 181 |
ms.StoreMessageInfo(mi) |
| 182 |
} |
| 183 |
|
| 184 |
func (x *PolicyBinding) String() string { |
| 185 |
return protoimpl.X.MessageStringOf(x) |
| 186 |
} |
| 187 |
|
| 188 |
func (*PolicyBinding) ProtoMessage() {} |
| 189 |
|
| 190 |
func (x *PolicyBinding) ProtoReflect() protoreflect.Message { |
| 191 |
mi := &file_google_iam_v3_policy_binding_resources_proto_msgTypes[0] |
| 192 |
if x != nil { |
| 193 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 194 |
if ms.LoadMessageInfo() == nil { |
| 195 |
ms.StoreMessageInfo(mi) |
| 196 |
} |
| 197 |
return ms |
| 198 |
} |
| 199 |
return mi.MessageOf(x) |
| 200 |
} |
| 201 |
|
| 202 |
// Deprecated: Use PolicyBinding.ProtoReflect.Descriptor instead. |
| 203 |
func (*PolicyBinding) Descriptor() ([]byte, []int) { |
| 204 |
return file_google_iam_v3_policy_binding_resources_proto_rawDescGZIP(), []int{0} |
| 205 |
} |
| 206 |
|
| 207 |
func (x *PolicyBinding) GetName() string { |
| 208 |
if x != nil { |
| 209 |
return x.Name |
| 210 |
} |
| 211 |
return "" |
| 212 |
} |
| 213 |
|
| 214 |
func (x *PolicyBinding) GetUid() string { |
| 215 |
if x != nil { |
| 216 |
return x.Uid |
| 217 |
} |
| 218 |
return "" |
| 219 |
} |
| 220 |
|
| 221 |
func (x *PolicyBinding) GetEtag() string { |
| 222 |
if x != nil { |
| 223 |
return x.Etag |
| 224 |
} |
| 225 |
return "" |
| 226 |
} |
| 227 |
|
| 228 |
func (x *PolicyBinding) GetDisplayName() string { |
| 229 |
if x != nil { |
| 230 |
return x.DisplayName |
| 231 |
} |
| 232 |
return "" |
| 233 |
} |
| 234 |
|
| 235 |
func (x *PolicyBinding) GetAnnotations() map[string]string { |
| 236 |
if x != nil { |
| 237 |
return x.Annotations |
| 238 |
} |
| 239 |
return nil |
| 240 |
} |
| 241 |
|
| 242 |
func (x *PolicyBinding) GetTarget() *PolicyBinding_Target { |
| 243 |
if x != nil { |
| 244 |
return x.Target |
| 245 |
} |
| 246 |
return nil |
| 247 |
} |
| 248 |
|
| 249 |
func (x *PolicyBinding) GetPolicyKind() PolicyBinding_PolicyKind { |
| 250 |
if x != nil { |
| 251 |
return x.PolicyKind |
| 252 |
} |
| 253 |
return PolicyBinding_POLICY_KIND_UNSPECIFIED |
| 254 |
} |
| 255 |
|
| 256 |
func (x *PolicyBinding) GetPolicy() string { |
| 257 |
if x != nil { |
| 258 |
return x.Policy |
| 259 |
} |
| 260 |
return "" |
| 261 |
} |
| 262 |
|
| 263 |
func (x *PolicyBinding) GetPolicyUid() string { |
| 264 |
if x != nil { |
| 265 |
return x.PolicyUid |
| 266 |
} |
| 267 |
return "" |
| 268 |
} |
| 269 |
|
| 270 |
func (x *PolicyBinding) GetCondition() *expr.Expr { |
| 271 |
if x != nil { |
| 272 |
return x.Condition |
| 273 |
} |
| 274 |
return nil |
| 275 |
} |
| 276 |
|
| 277 |
func (x *PolicyBinding) GetCreateTime() *timestamppb.Timestamp { |
| 278 |
if x != nil { |
| 279 |
return x.CreateTime |
| 280 |
} |
| 281 |
return nil |
| 282 |
} |
| 283 |
|
| 284 |
func (x *PolicyBinding) GetUpdateTime() *timestamppb.Timestamp { |
| 285 |
if x != nil { |
| 286 |
return x.UpdateTime |
| 287 |
} |
| 288 |
return nil |
| 289 |
} |
| 290 |
|
| 291 |
// Target is the full resource name of the resource to which the policy will |
| 292 |
// be bound. Immutable once set. |
| 293 |
type PolicyBinding_Target struct { |
| 294 |
state protoimpl.MessageState |
| 295 |
sizeCache protoimpl.SizeCache |
| 296 |
unknownFields protoimpl.UnknownFields |
| 297 |
|
| 298 |
// The different types of targets that can be bound to a policy. |
| 299 |
// |
| 300 |
// Types that are assignable to Target: |
| 301 |
// |
| 302 |
// *PolicyBinding_Target_PrincipalSet |
| 303 |
Target isPolicyBinding_Target_Target `protobuf_oneof:"target"` |
| 304 |
} |
| 305 |
|
| 306 |
func (x *PolicyBinding_Target) Reset() { |
| 307 |
*x = PolicyBinding_Target{} |
| 308 |
mi := &file_google_iam_v3_policy_binding_resources_proto_msgTypes[1] |
| 309 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 310 |
ms.StoreMessageInfo(mi) |
| 311 |
} |
| 312 |
|
| 313 |
func (x *PolicyBinding_Target) String() string { |
| 314 |
return protoimpl.X.MessageStringOf(x) |
| 315 |
} |
| 316 |
|
| 317 |
func (*PolicyBinding_Target) ProtoMessage() {} |
| 318 |
|
| 319 |
func (x *PolicyBinding_Target) ProtoReflect() protoreflect.Message { |
| 320 |
mi := &file_google_iam_v3_policy_binding_resources_proto_msgTypes[1] |
| 321 |
if x != nil { |
| 322 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 323 |
if ms.LoadMessageInfo() == nil { |
| 324 |
ms.StoreMessageInfo(mi) |
| 325 |
} |
| 326 |
return ms |
| 327 |
} |
| 328 |
return mi.MessageOf(x) |
| 329 |
} |
| 330 |
|
| 331 |
// Deprecated: Use PolicyBinding_Target.ProtoReflect.Descriptor instead. |
| 332 |
func (*PolicyBinding_Target) Descriptor() ([]byte, []int) { |
| 333 |
return file_google_iam_v3_policy_binding_resources_proto_rawDescGZIP(), []int{0, 0} |
| 334 |
} |
| 335 |
|
| 336 |
func (m *PolicyBinding_Target) GetTarget() isPolicyBinding_Target_Target { |
| 337 |
if m != nil { |
| 338 |
return m.Target |
| 339 |
} |
| 340 |
return nil |
| 341 |
} |
| 342 |
|
| 343 |
func (x *PolicyBinding_Target) GetPrincipalSet() string { |
| 344 |
if x, ok := x.GetTarget().(*PolicyBinding_Target_PrincipalSet); ok { |
| 345 |
return x.PrincipalSet |
| 346 |
} |
| 347 |
return "" |
| 348 |
} |
| 349 |
|
| 350 |
type isPolicyBinding_Target_Target interface { |
| 351 |
isPolicyBinding_Target_Target() |
| 352 |
} |
| 353 |
|
| 354 |
type PolicyBinding_Target_PrincipalSet struct { |
| 355 |
// Immutable. Full Resource Name used for principal access boundary policy |
| 356 |
// bindings. The principal set must be directly parented by the policy |
| 357 |
// binding's parent or same as the parent if the target is a |
| 358 |
// project/folder/organization. |
| 359 |
// |
| 360 |
// Examples: |
| 361 |
// * For binding's parented by an organization: |
| 362 |
// - Organization: |
| 363 |
// `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` |
| 364 |
// - Workforce Identity: |
| 365 |
// `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID` |
| 366 |
// - Workspace Identity: |
| 367 |
// `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` |
| 368 |
// |
| 369 |
// * For binding's parented by a folder: |
| 370 |
// - Folder: |
| 371 |
// `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` |
| 372 |
// |
| 373 |
// * For binding's parented by a project: |
| 374 |
// - Project: |
| 375 |
// - `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` |
| 376 |
// - `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` |
| 377 |
// - Workload Identity Pool: |
| 378 |
// `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID` |
| 379 |
PrincipalSet string `protobuf:"bytes,1,opt,name=principal_set,json=principalSet,proto3,oneof"` |
| 380 |
} |
| 381 |
|
| 382 |
func (*PolicyBinding_Target_PrincipalSet) isPolicyBinding_Target_Target() {} |
| 383 |
|
| 384 |
var File_google_iam_v3_policy_binding_resources_proto protoreflect.FileDescriptor |
| 385 |
|
| 386 |
var file_google_iam_v3_policy_binding_resources_proto_rawDesc = []byte{ |
| 387 |
0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x33, 0x2f, |
| 388 |
0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x72, |
| 389 |
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, |
| 390 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x67, |
| 391 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, |
| 392 |
0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, |
| 393 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 394 |
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, |
| 395 |
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 396 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, |
| 397 |
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, |
| 398 |
0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 399 |
0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
| 400 |
0xe5, 0x08, 0x0a, 0x0d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, |
| 401 |
0x67, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 402 |
0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x03, 0x75, 0x69, |
| 403 |
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x03, 0xe2, 0x8c, 0xcf, 0xd7, |
| 404 |
0x08, 0x02, 0x08, 0x01, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x65, 0x74, 0x61, |
| 405 |
0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x65, 0x74, |
| 406 |
0x61, 0x67, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, |
| 407 |
0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, |
| 408 |
0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0b, 0x61, 0x6e, |
| 409 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, |
| 410 |
0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x33, 0x2e, |
| 411 |
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6e, |
| 412 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, |
| 413 |
0xe0, 0x41, 0x01, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 414 |
0x12, 0x43, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, |
| 415 |
0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x33, |
| 416 |
0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x54, |
| 417 |
0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x06, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x74, |
| 418 |
0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x4d, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, |
| 419 |
0x6b, 0x69, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, |
| 420 |
0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, |
| 421 |
0x79, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4b, |
| 422 |
0x69, 0x6e, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 423 |
0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x07, |
| 424 |
0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, |
| 425 |
0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x75, |
| 426 |
0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x70, |
| 427 |
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, |
| 428 |
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, |
| 429 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x42, 0x03, |
| 430 |
0xe0, 0x41, 0x01, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, |
| 431 |
0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, |
| 432 |
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, |
| 433 |
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, |
| 434 |
0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, |
| 435 |
0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, |
| 436 |
0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, |
| 437 |
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, |
| 438 |
0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, |
| 439 |
0x6d, 0x65, 0x1a, 0x3e, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x0d, |
| 440 |
0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, |
| 441 |
0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6e, |
| 442 |
0x63, 0x69, 0x70, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, |
| 443 |
0x65, 0x74, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 444 |
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, |
| 445 |
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 446 |
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, |
| 447 |
0x38, 0x01, 0x22, 0x48, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4b, 0x69, 0x6e, 0x64, |
| 448 |
0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, |
| 449 |
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, |
| 450 |
0x19, 0x50, 0x52, 0x49, 0x4e, 0x43, 0x49, 0x50, 0x41, 0x4c, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, |
| 451 |
0x53, 0x5f, 0x42, 0x4f, 0x55, 0x4e, 0x44, 0x41, 0x52, 0x59, 0x10, 0x01, 0x3a, 0xa8, 0x02, 0xea, |
| 452 |
0x41, 0xa4, 0x02, 0x0a, 0x20, 0x69, 0x61, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, |
| 453 |
0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x69, |
| 454 |
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x51, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, |
| 455 |
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, |
| 456 |
0x6f, 0x6e, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, |
| 457 |
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, |
| 458 |
0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, |
| 459 |
0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0x45, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, |
| 460 |
0x73, 0x2f, 0x7b, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, |
| 461 |
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, |
| 462 |
0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, |
| 463 |
0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x7d, 0x12, |
| 464 |
0x47, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, |
| 465 |
0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, |
| 466 |
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, |
| 467 |
0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, |
| 468 |
0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x7d, 0x2a, 0x0e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 469 |
0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x32, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 470 |
0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x89, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, |
| 471 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x1b, 0x50, |
| 472 |
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x6f, |
| 473 |
0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63, 0x6c, |
| 474 |
0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, |
| 475 |
0x6f, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x33, 0x2f, 0x69, 0x61, 0x6d, 0x70, |
| 476 |
0x62, 0x3b, 0x69, 0x61, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 477 |
0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x13, |
| 478 |
0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, |
| 479 |
0x5c, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 480 |
} |
| 481 |
|
| 482 |
var ( |
| 483 |
file_google_iam_v3_policy_binding_resources_proto_rawDescOnce sync.Once |
| 484 |
file_google_iam_v3_policy_binding_resources_proto_rawDescData = file_google_iam_v3_policy_binding_resources_proto_rawDesc |
| 485 |
) |
| 486 |
|
| 487 |
func file_google_iam_v3_policy_binding_resources_proto_rawDescGZIP() []byte { |
| 488 |
file_google_iam_v3_policy_binding_resources_proto_rawDescOnce.Do(func() { |
| 489 |
file_google_iam_v3_policy_binding_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v3_policy_binding_resources_proto_rawDescData) |
| 490 |
}) |
| 491 |
return file_google_iam_v3_policy_binding_resources_proto_rawDescData |
| 492 |
} |
| 493 |
|
| 494 |
var file_google_iam_v3_policy_binding_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 495 |
var file_google_iam_v3_policy_binding_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 496 |
var file_google_iam_v3_policy_binding_resources_proto_goTypes = []any{ |
| 497 |
(PolicyBinding_PolicyKind)(0), // 0: google.iam.v3.PolicyBinding.PolicyKind |
| 498 |
(*PolicyBinding)(nil), // 1: google.iam.v3.PolicyBinding |
| 499 |
(*PolicyBinding_Target)(nil), // 2: google.iam.v3.PolicyBinding.Target |
| 500 |
nil, // 3: google.iam.v3.PolicyBinding.AnnotationsEntry |
| 501 |
(*expr.Expr)(nil), // 4: google.type.Expr |
| 502 |
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp |
| 503 |
} |
| 504 |
var file_google_iam_v3_policy_binding_resources_proto_depIdxs = []int32{ |
| 505 |
3, // 0: google.iam.v3.PolicyBinding.annotations:type_name -> google.iam.v3.PolicyBinding.AnnotationsEntry |
| 506 |
2, // 1: google.iam.v3.PolicyBinding.target:type_name -> google.iam.v3.PolicyBinding.Target |
| 507 |
0, // 2: google.iam.v3.PolicyBinding.policy_kind:type_name -> google.iam.v3.PolicyBinding.PolicyKind |
| 508 |
4, // 3: google.iam.v3.PolicyBinding.condition:type_name -> google.type.Expr |
| 509 |
5, // 4: google.iam.v3.PolicyBinding.create_time:type_name -> google.protobuf.Timestamp |
| 510 |
5, // 5: google.iam.v3.PolicyBinding.update_time:type_name -> google.protobuf.Timestamp |
| 511 |
6, // [6:6] is the sub-list for method output_type |
| 512 |
6, // [6:6] is the sub-list for method input_type |
| 513 |
6, // [6:6] is the sub-list for extension type_name |
| 514 |
6, // [6:6] is the sub-list for extension extendee |
| 515 |
0, // [0:6] is the sub-list for field type_name |
| 516 |
} |
| 517 |
|
| 518 |
func init() { file_google_iam_v3_policy_binding_resources_proto_init() } |
| 519 |
func file_google_iam_v3_policy_binding_resources_proto_init() { |
| 520 |
if File_google_iam_v3_policy_binding_resources_proto != nil { |
| 521 |
return |
| 522 |
} |
| 523 |
file_google_iam_v3_policy_binding_resources_proto_msgTypes[1].OneofWrappers = []any{ |
| 524 |
(*PolicyBinding_Target_PrincipalSet)(nil), |
| 525 |
} |
| 526 |
type x struct{} |
| 527 |
out := protoimpl.TypeBuilder{ |
| 528 |
File: protoimpl.DescBuilder{ |
| 529 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 530 |
RawDescriptor: file_google_iam_v3_policy_binding_resources_proto_rawDesc, |
| 531 |
NumEnums: 1, |
| 532 |
NumMessages: 3, |
| 533 |
NumExtensions: 0, |
| 534 |
NumServices: 0, |
| 535 |
}, |
| 536 |
GoTypes: file_google_iam_v3_policy_binding_resources_proto_goTypes, |
| 537 |
DependencyIndexes: file_google_iam_v3_policy_binding_resources_proto_depIdxs, |
| 538 |
EnumInfos: file_google_iam_v3_policy_binding_resources_proto_enumTypes, |
| 539 |
MessageInfos: file_google_iam_v3_policy_binding_resources_proto_msgTypes, |
| 540 |
}.Build() |
| 541 |
File_google_iam_v3_policy_binding_resources_proto = out.File |
| 542 |
file_google_iam_v3_policy_binding_resources_proto_rawDesc = nil |
| 543 |
file_google_iam_v3_policy_binding_resources_proto_goTypes = nil |
| 544 |
file_google_iam_v3_policy_binding_resources_proto_depIdxs = nil |
| 545 |
} |