Class GoogleCredentials.Builder (1.54.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 @Nullable String quotaProjectId
Field Value
Type Description
@org.jspecify.annotations.Nullable java.lang.String

universeDomain

protected @Nullable String universeDomain
Field Value
Type Description
@org.jspecify.annotations.Nullable java.lang.String

Methods

build()

public GoogleCredentials build()
Returns
Type Description
GoogleCredentials
Overrides

getQuotaProjectId()

public @Nullable String getQuotaProjectId()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

getUniverseDomain()

public @Nullable String getUniverseDomain()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

setAccessToken(@Nullable AccessToken token)

public GoogleCredentials.Builder setAccessToken(@Nullable AccessToken token)
Parameter
Name Description
token @org.jspecify.annotations.Nullable com.google.auth.oauth2.AccessToken
Returns
Type Description
GoogleCredentials.Builder
Overrides

setQuotaProjectId(@Nullable String quotaProjectId)

public GoogleCredentials.Builder setQuotaProjectId(@Nullable String quotaProjectId)
Parameter
Name Description
quotaProjectId @org.jspecify.annotations.Nullable java.lang.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