Interface ServiceAccountOrBuilder (0.14.0)

publicinterface ServiceAccountOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getEmail()

publicabstractStringgetEmail()

Optional. Email address of the service account.

optional string email = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The email.

getEmailBytes()

publicabstractByteStringgetEmailBytes()

Optional. Email address of the service account.

optional string email = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for email.

getScopes(int index)

publicabstractStringgetScopes(intindex)

Optional. The list of scopes to be made available for this service account.

repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];

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)

publicabstractByteStringgetScopesBytes(intindex)

Optional. The list of scopes to be made available for this service account.

repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];

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()

publicabstractintgetScopesCount()

Optional. The list of scopes to be made available for this service account.

repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of scopes.

getScopesList()

publicabstractList<String>getScopesList()

Optional. The list of scopes to be made available for this service account.

repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the scopes.

hasEmail()

publicabstractbooleanhasEmail()

Optional. Email address of the service account.

optional string email = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the email field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.