Class PolicyBinding.Target.Builder (1.52.0)

public static final class PolicyBinding.Target.Builder extends GeneratedMessageV3.Builder<PolicyBinding.Target.Builder> implements PolicyBinding.TargetOrBuilder

Target is the full resource name of the resource to which the policy will be bound. Immutable once set.

Protobuf type google.iam.v3beta.PolicyBinding.Target

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PolicyBinding.Target.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

build()

public PolicyBinding.Target build()
Returns
Type Description
PolicyBinding.Target

buildPartial()

public PolicyBinding.Target buildPartial()
Returns
Type Description
PolicyBinding.Target

clear()

public PolicyBinding.Target.Builder clear()
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PolicyBinding.Target.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PolicyBinding.Target.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

clearPrincipalSet()

public PolicyBinding.Target.Builder clearPrincipalSet()

Immutable. Full Resource Name used for principal access boundary policy bindings. The principal set must be directly parented by the policy binding's parent or same as the parent if the target is a project/folder/organization.

Examples:

  • For binding's parented by an organization:
    • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
    • Workforce Identity: //iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID
    • Workspace Identity: //iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
  • For binding's parented by a folder:
    • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For binding's parented by a project:
    • Project:
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID
    • Workload Identity Pool: //iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID

string principal_set = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
PolicyBinding.Target.Builder

This builder for chaining.

clearTarget()

public PolicyBinding.Target.Builder clearTarget()
Returns
Type Description
PolicyBinding.Target.Builder

clone()

public PolicyBinding.Target.Builder clone()
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

getDefaultInstanceForType()

public PolicyBinding.Target getDefaultInstanceForType()
Returns
Type Description
PolicyBinding.Target

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrincipalSet()

public String getPrincipalSet()

Immutable. Full Resource Name used for principal access boundary policy bindings. The principal set must be directly parented by the policy binding's parent or same as the parent if the target is a project/folder/organization.

Examples:

  • For binding's parented by an organization:
    • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
    • Workforce Identity: //iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID
    • Workspace Identity: //iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
  • For binding's parented by a folder:
    • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For binding's parented by a project:
    • Project:
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID
    • Workload Identity Pool: //iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID

string principal_set = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The principalSet.

getPrincipalSetBytes()

public ByteString getPrincipalSetBytes()

Immutable. Full Resource Name used for principal access boundary policy bindings. The principal set must be directly parented by the policy binding's parent or same as the parent if the target is a project/folder/organization.

Examples:

  • For binding's parented by an organization:
    • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
    • Workforce Identity: //iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID
    • Workspace Identity: //iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
  • For binding's parented by a folder:
    • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For binding's parented by a project:
    • Project:
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID
    • Workload Identity Pool: //iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID

string principal_set = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for principalSet.

getTargetCase()

public PolicyBinding.Target.TargetCase getTargetCase()
Returns
Type Description
PolicyBinding.Target.TargetCase

hasPrincipalSet()

public boolean hasPrincipalSet()

Immutable. Full Resource Name used for principal access boundary policy bindings. The principal set must be directly parented by the policy binding's parent or same as the parent if the target is a project/folder/organization.

Examples:

  • For binding's parented by an organization:
    • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
    • Workforce Identity: //iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID
    • Workspace Identity: //iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
  • For binding's parented by a folder:
    • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For binding's parented by a project:
    • Project:
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID
    • Workload Identity Pool: //iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID

string principal_set = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the principalSet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PolicyBinding.Target other)

public PolicyBinding.Target.Builder mergeFrom(PolicyBinding.Target other)
Parameter
Name Description
other PolicyBinding.Target
Returns
Type Description
PolicyBinding.Target.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PolicyBinding.Target.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBinding.Target.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PolicyBinding.Target.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PolicyBinding.Target.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PolicyBinding.Target.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

setPrincipalSet(String value)

public PolicyBinding.Target.Builder setPrincipalSet(String value)

Immutable. Full Resource Name used for principal access boundary policy bindings. The principal set must be directly parented by the policy binding's parent or same as the parent if the target is a project/folder/organization.

Examples:

  • For binding's parented by an organization:
    • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
    • Workforce Identity: //iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID
    • Workspace Identity: //iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
  • For binding's parented by a folder:
    • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For binding's parented by a project:
    • Project:
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID
    • Workload Identity Pool: //iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID

string principal_set = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The principalSet to set.

Returns
Type Description
PolicyBinding.Target.Builder

This builder for chaining.

setPrincipalSetBytes(ByteString value)

public PolicyBinding.Target.Builder setPrincipalSetBytes(ByteString value)

Immutable. Full Resource Name used for principal access boundary policy bindings. The principal set must be directly parented by the policy binding's parent or same as the parent if the target is a project/folder/organization.

Examples:

  • For binding's parented by an organization:
    • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
    • Workforce Identity: //iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID
    • Workspace Identity: //iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
  • For binding's parented by a folder:
    • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For binding's parented by a project:
    • Project:
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
      • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID
    • Workload Identity Pool: //iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID

string principal_set = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for principalSet to set.

Returns
Type Description
PolicyBinding.Target.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PolicyBinding.Target.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PolicyBinding.Target.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PolicyBinding.Target.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyBinding.Target.Builder
Overrides