Interface ServiceAccountOrBuilder (0.11.0)

public interface ServiceAccountOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEmail()

public abstract String getEmail()

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.

string email = 1;

Returns
Type Description
String

The email.

getEmailBytes()

public abstract ByteString getEmailBytes()

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.

string email = 1;

Returns
Type Description
ByteString

The bytes for email.

getScopes(int index)

public abstract String getScopes(int index)

List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.

repeated string scopes = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scopes at the given index.

getScopesBytes(int index)

public abstract ByteString getScopesBytes(int index)

List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.

repeated string scopes = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the scopes at the given index.

getScopesCount()

public abstract int getScopesCount()

List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.

repeated string scopes = 2;

Returns
Type Description
int

The count of scopes.

getScopesList()

public abstract List<String> getScopesList()

List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.

repeated string scopes = 2;

Returns
Type Description
List<String>

A list containing the scopes.