Class ComputeEngineCredentials.Builder (1.20.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
Name Description
credentials ComputeEngineCredentials

Methods

build()

public ComputeEngineCredentials build()
Returns
Type Description
ComputeEngineCredentials
Overrides

getHttpTransportFactory()

public HttpTransportFactory getHttpTransportFactory()
Returns
Type Description
HttpTransportFactory

getScopes()

public Collection<String> getScopes()
Returns
Type Description
Collection<String>

setHttpTransportFactory(HttpTransportFactory transportFactory)

public ComputeEngineCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
Parameter
Name Description
transportFactory HttpTransportFactory
Returns
Type Description
ComputeEngineCredentials.Builder

setScopes(Collection<String> scopes)

public ComputeEngineCredentials.Builder setScopes(Collection<String> scopes)
Parameter
Name Description
scopes Collection<String>
Returns
Type Description
ComputeEngineCredentials.Builder