Interface PolicyBinding.TargetOrBuilder (1.67.0)

public static interface PolicyBinding.TargetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPrincipalSet()

public abstract String getPrincipalSet()

Immutable. The full resource name that's 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, or organization.

Examples:

  • For bindings 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 bindings parented by a folder:
  • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For bindings 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 abstract ByteString getPrincipalSetBytes()

Immutable. The full resource name that's 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, or organization.

Examples:

  • For bindings 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 bindings parented by a folder:
  • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For bindings 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.

getResource()

public abstract String getResource()

Immutable. The full resource name that's used for access policy bindings.

Examples:

  • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
  • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • Project:
  • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
  • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID

string resource = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The resource.

getResourceBytes()

public abstract ByteString getResourceBytes()

Immutable. The full resource name that's used for access policy bindings.

Examples:

  • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
  • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • Project:
  • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
  • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID

string resource = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for resource.

getTargetCase()

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

hasPrincipalSet()

public abstract boolean hasPrincipalSet()

Immutable. The full resource name that's 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, or organization.

Examples:

  • For bindings 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 bindings parented by a folder:
  • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For bindings 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.

hasResource()

public abstract boolean hasResource()

Immutable. The full resource name that's used for access policy bindings.

Examples:

  • Organization: //cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID
  • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • Project:
  • //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER
  • //cloudresourcemanager.googleapis.com/projects/PROJECT_ID

string resource = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the resource field is set.