Class GoogleCredentials.Builder (1.24.0)

public static class GoogleCredentials.Builder extends OAuth2Credentials.Builder

Inheritance

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

Constructors

Builder()

protected Builder()

Builder(GoogleCredentials credentials)

protected Builder(GoogleCredentials credentials)
Parameter
Name Description
credentials GoogleCredentials

Builder(GoogleCredentials.Builder builder)

protected Builder(GoogleCredentials.Builder builder)
Parameter
Name Description
builder GoogleCredentials.Builder

Fields

quotaProjectId

protected String quotaProjectId
Field Value
Type Description
String

universeDomain

protected String universeDomain
Field Value
Type Description
String

Methods

build()

public GoogleCredentials build()
Returns
Type Description
GoogleCredentials
Overrides

getQuotaProjectId()

public String getQuotaProjectId()
Returns
Type Description
String

getUniverseDomain()

public String getUniverseDomain()
Returns
Type Description
String

setAccessToken(AccessToken token)

public GoogleCredentials.Builder setAccessToken(AccessToken token)
Parameter
Name Description
token AccessToken
Returns
Type Description
GoogleCredentials.Builder
Overrides

setQuotaProjectId(String quotaProjectId)

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

setUniverseDomain(String universeDomain)

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