Interface IdentityOrBuilder (0.67.0)

public interface IdentityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPrincipal()

public abstract String getPrincipal()

Output only. The principal of the identity.

Supported formats:

  • sa://my-sa@PROJECT_ID.iam.gserviceaccount.com for GCP Service Account
  • principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID for Managed Workload Identity

string principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The principal.

getPrincipalBytes()

public abstract ByteString getPrincipalBytes()

Output only. The principal of the identity.

Supported formats:

  • sa://my-sa@PROJECT_ID.iam.gserviceaccount.com for GCP Service Account
  • principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID for Managed Workload Identity

string principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for principal.