Service account email
to be used for generating OAuth 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 OAuth 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 OAuthTokenOrBuilder (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.OAuthTokenOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.scheduler.v1.OAuthTokenOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.scheduler.v1.OAuthTokenOrBuilder) \n\n public interface OAuthTokenOrBuilder 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### getScope()\n\n public abstract String getScope()\n\nOAuth scope to be used for generating OAuth access token.\nIf not specified, \"\u003chttps://www.googleapis.com/auth/cloud-platform\u003e\"\nwill be used.\n\n`string scope = 2;`\n\n### getScopeBytes()\n\n public abstract ByteString getScopeBytes()\n\nOAuth scope to be used for generating OAuth access token.\nIf not specified, \"\u003chttps://www.googleapis.com/auth/cloud-platform\u003e\"\nwill be used.\n\n`string scope = 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 OAuth 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 OAuth 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;`"]]