Interface ServiceAccountOrBuilder (2.54.0)

public interface ServiceAccountOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEmail()

public abstract String getEmail()

Email address of the service account. If empty, default Compute service account will be used.

string email = 1;

Returns
Type Description
String

The email.

getEmailBytes()

public abstract ByteString getEmailBytes()

Email address of the service account. If empty, default Compute service account will be used.

string email = 1;

Returns
Type Description
ByteString

The bytes for email.

getScope(int index)

public abstract String getScope(int index)

The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.

repeated string scope = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scope at the given index.

getScopeBytes(int index)

public abstract ByteString getScopeBytes(int index)

The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.

repeated string scope = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the scope at the given index.

getScopeCount()

public abstract int getScopeCount()

The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.

repeated string scope = 2;

Returns
Type Description
int

The count of scope.

getScopeList()

public abstract List<String> getScopeList()

The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.

repeated string scope = 2;

Returns
Type Description
List<String>

A list containing the scope.