Send feedback
Class PolicyBinding.Target (1.52.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class PolicyBinding . Target extends GeneratedMessageV3 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.v3.PolicyBinding.Target
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
PRINCIPAL_SET_FIELD_NUMBER
public static final int PRINCIPAL_SET_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static PolicyBinding . Target getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static PolicyBinding . Target . Builder newBuilder ()
newBuilder(PolicyBinding.Target prototype)
public static PolicyBinding . Target . Builder newBuilder ( PolicyBinding . Target prototype )
public static PolicyBinding . Target parseDelimitedFrom ( InputStream input )
public static PolicyBinding . Target parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static PolicyBinding . Target parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PolicyBinding . Target parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static PolicyBinding . Target parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PolicyBinding . Target parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static PolicyBinding . Target parseFrom ( CodedInputStream input )
public static PolicyBinding . Target parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static PolicyBinding . Target parseFrom ( InputStream input )
public static PolicyBinding . Target parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static PolicyBinding . Target parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PolicyBinding . Target parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<PolicyBinding . Target > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public PolicyBinding . Target getDefaultInstanceForType ()
getParserForType()
public Parser<PolicyBinding . Target > getParserForType ()
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.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getTargetCase()
public PolicyBinding . Target . TargetCase getTargetCase ()
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public PolicyBinding . Target . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PolicyBinding . Target . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public PolicyBinding . Target . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-30 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-30 UTC."],[],[]]