Class ComputeEngineCredentials.Builder (1.4.0)

public static class ComputeEngineCredentials.Builder extends GoogleCredentials.Builder

Inheritance

java.lang.Object > OAuth2Credentials.Builder > GoogleCredentials.Builder > ComputeEngineCredentials.Builder

Constructors

Builder()

protected Builder()

Builder(ComputeEngineCredentials credentials)

protected Builder(ComputeEngineCredentials credentials)
Parameter
NameDescription
credentialsComputeEngineCredentials

Methods

build()

public ComputeEngineCredentials build()
Returns
TypeDescription
ComputeEngineCredentials
Overrides

getHttpTransportFactory()

public HttpTransportFactory getHttpTransportFactory()
Returns
TypeDescription
HttpTransportFactory

getScopes()

public Collection<String> getScopes()
Returns
TypeDescription
Collection<String>

setHttpTransportFactory(HttpTransportFactory transportFactory)

public ComputeEngineCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
Parameter
NameDescription
transportFactoryHttpTransportFactory
Returns
TypeDescription
ComputeEngineCredentials.Builder

setScopes(Collection<String> scopes)

public ComputeEngineCredentials.Builder setScopes(Collection<String> scopes)
Parameter
NameDescription
scopesCollection<String>
Returns
TypeDescription
ComputeEngineCredentials.Builder