Class ComputeEngineCredentials.Builder (1.27.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

getDefaultScopes()

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

getHttpTransportFactory()

public HttpTransportFactory getHttpTransportFactory()
Returns
Type Description
HttpTransportFactory

getScopes()

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

setDefaultScopes(Collection<String> defaultScopes)

public ComputeEngineCredentials.Builder setDefaultScopes(Collection<String> defaultScopes)
Parameter
Name Description
defaultScopes Collection<String>
Returns
Type Description
ComputeEngineCredentials.Builder

setHttpTransportFactory(HttpTransportFactory transportFactory)

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

setQuotaProjectId(String quotaProjectId)

public ComputeEngineCredentials.Builder setQuotaProjectId(String quotaProjectId)
Parameter
Name Description
quotaProjectId String
Returns
Type Description
ComputeEngineCredentials.Builder
Overrides

setScopes(Collection<String> scopes)

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

setUniverseDomain(String universeDomain)

public ComputeEngineCredentials.Builder setUniverseDomain(String universeDomain)
Parameter
Name Description
universeDomain String
Returns
Type Description
ComputeEngineCredentials.Builder
Overrides