Service account email
to be used for generating OIDC token.
The service account must be within the same project as the job. The caller
must have iam.serviceAccounts.actAs permission for the service account.
Service account email
to be used for generating OIDC token.
The service account must be within the same project as the job. The caller
must have iam.serviceAccounts.actAs permission for the service account.
[[["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-08-07 UTC."],[],[],null,["# Interface OidcTokenOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.scheduler.v1.OidcTokenOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.scheduler.v1.OidcTokenOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.scheduler.v1.OidcTokenOrBuilder) \n\n public interface OidcTokenOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAudience()\n\n public abstract String getAudience()\n\nAudience to be used when generating OIDC token. If not specified, the URI\nspecified in target will be used.\n\n`string audience = 2;`\n\n### getAudienceBytes()\n\n public abstract ByteString getAudienceBytes()\n\nAudience to be used when generating OIDC token. If not specified, the URI\nspecified in target will be used.\n\n`string audience = 2;`\n\n### getServiceAccountEmail()\n\n public abstract String getServiceAccountEmail()\n\n[Service account email](https://cloud.google.com/iam/docs/service-accounts)\nto be used for generating OIDC token.\nThe service account must be within the same project as the job. The caller\nmust have iam.serviceAccounts.actAs permission for the service account.\n\n`string service_account_email = 1;`\n\n### getServiceAccountEmailBytes()\n\n public abstract ByteString getServiceAccountEmailBytes()\n\n[Service account email](https://cloud.google.com/iam/docs/service-accounts)\nto be used for generating OIDC token.\nThe service account must be within the same project as the job. The caller\nmust have iam.serviceAccounts.actAs permission for the service account.\n\n`string service_account_email = 1;`"]]