Email address of the service account. If not specified, the default
Compute Engine service account for the project will be used. If instance
template is being used, the service account has to be specified in the
instance template and it has to match the email field here.
Email address of the service account. If not specified, the default
Compute Engine service account for the project will be used. If instance
template is being used, the service account has to be specified in the
instance template and it has to match the email field here.
[[["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 ServiceAccountOrBuilder (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.batch.v1.ServiceAccountOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.batch.v1.ServiceAccountOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.batch.v1.ServiceAccountOrBuilder) \n\n public interface ServiceAccountOrBuilder 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### getEmail()\n\n public abstract String getEmail()\n\nEmail address of the service account. If not specified, the default\nCompute Engine service account for the project will be used. If instance\ntemplate is being used, the service account has to be specified in the\ninstance template and it has to match the email field here.\n\n`string email = 1;`\n\n### getEmailBytes()\n\n public abstract ByteString getEmailBytes()\n\nEmail address of the service account. If not specified, the default\nCompute Engine service account for the project will be used. If instance\ntemplate is being used, the service account has to be specified in the\ninstance template and it has to match the email field here.\n\n`string email = 1;`\n\n### getScopes(int index)\n\n public abstract String getScopes(int index)\n\nList of scopes to be enabled for this service account on the VM, in\naddition to the cloud-platform API scope that will be added by default.\n\n`repeated string scopes = 2;`\n\n### getScopesBytes(int index)\n\n public abstract ByteString getScopesBytes(int index)\n\nList of scopes to be enabled for this service account on the VM, in\naddition to the cloud-platform API scope that will be added by default.\n\n`repeated string scopes = 2;`\n\n### getScopesCount()\n\n public abstract int getScopesCount()\n\nList of scopes to be enabled for this service account on the VM, in\naddition to the cloud-platform API scope that will be added by default.\n\n`repeated string scopes = 2;`\n\n### getScopesList()\n\n public abstract List\u003cString\u003e getScopesList()\n\nList of scopes to be enabled for this service account on the VM, in\naddition to the cloud-platform API scope that will be added by default.\n\n`repeated string scopes = 2;`"]]