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

getBindingEnforcement()

public ComputeEngineCredentials.BindingEnforcement getBindingEnforcement()

Get the BindingEnforcement type.

Returns
Type Description
ComputeEngineCredentials.BindingEnforcement

the token binding enforcement policy.

getDefaultScopes()

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

getGoogleAuthTransport()

public ComputeEngineCredentials.GoogleAuthTransport getGoogleAuthTransport()

Get the GoogleAuthTransport type.

Returns
Type Description
ComputeEngineCredentials.GoogleAuthTransport

the transport type over which to authenticate to Google APIs

getHttpTransportFactory()

public HttpTransportFactory getHttpTransportFactory()
Returns
Type Description
HttpTransportFactory

getScopes()

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

setBindingEnforcement(ComputeEngineCredentials.BindingEnforcement bindingEnforcement)

public ComputeEngineCredentials.Builder setBindingEnforcement(ComputeEngineCredentials.BindingEnforcement bindingEnforcement)

Set the BindingEnforcement type.

Parameter
Name Description
bindingEnforcement ComputeEngineCredentials.BindingEnforcement

the token binding enforcement policy.

Returns
Type Description
ComputeEngineCredentials.Builder

setDefaultScopes(Collection<String> defaultScopes)

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

setGoogleAuthTransport(ComputeEngineCredentials.GoogleAuthTransport transport)

public ComputeEngineCredentials.Builder setGoogleAuthTransport(ComputeEngineCredentials.GoogleAuthTransport transport)

Set the GoogleAuthTransport type.

Parameter
Name Description
transport ComputeEngineCredentials.GoogleAuthTransport

the transport type over which to authenticate to Google APIs

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