Class GoogleCredentials.Builder (1.40.0)

publicstaticclass GoogleCredentials.BuilderextendsOAuth2Credentials.Builder

Inheritance

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

Constructors

Builder()

protectedBuilder()

Builder(GoogleCredentials credentials)

protectedBuilder(GoogleCredentialscredentials)
Parameter
Name Description
credentials GoogleCredentials

Builder(GoogleCredentials.Builder builder)

protectedBuilder(GoogleCredentials.Builderbuilder)
Parameter
Name Description
builder GoogleCredentials.Builder

Fields

quotaProjectId

protectedStringquotaProjectId
Field Value
Type Description
String

universeDomain

protectedStringuniverseDomain
Field Value
Type Description
String

Methods

build()

publicGoogleCredentialsbuild()
Returns
Type Description
GoogleCredentials
Overrides

getQuotaProjectId()

publicStringgetQuotaProjectId()
Returns
Type Description
String

getUniverseDomain()

publicStringgetUniverseDomain()
Returns
Type Description
String

setAccessToken(AccessToken token)

publicGoogleCredentials.BuildersetAccessToken(AccessTokentoken)
Parameter
Name Description
token AccessToken
Returns
Type Description
GoogleCredentials.Builder
Overrides

setQuotaProjectId(String quotaProjectId)

publicGoogleCredentials.BuildersetQuotaProjectId(StringquotaProjectId)
Parameter
Name Description
quotaProjectId String
Returns
Type Description
GoogleCredentials.Builder

setUniverseDomain(String universeDomain)

publicGoogleCredentials.BuildersetUniverseDomain(StringuniverseDomain)
Parameter
Name Description
universeDomain String
Returns
Type Description
GoogleCredentials.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.