Interface ServiceAccountOrBuilder (2.31.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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the scope.