Class GoogleCredentials.Builder (1.19.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
NameDescription
credentialsGoogleCredentials

Fields

quotaProjectId

protected String quotaProjectId
Field Value
TypeDescription
String

Methods

build()

public GoogleCredentials build()
Returns
TypeDescription
GoogleCredentials
Overrides

getQuotaProjectId()

public String getQuotaProjectId()
Returns
TypeDescription
String

setAccessToken(AccessToken token)

public GoogleCredentials.Builder setAccessToken(AccessToken token)
Parameter
NameDescription
tokenAccessToken
Returns
TypeDescription
GoogleCredentials.Builder
Overrides

setQuotaProjectId(String quotaProjectId)

public GoogleCredentials.Builder setQuotaProjectId(String quotaProjectId)
Parameter
NameDescription
quotaProjectIdString
Returns
TypeDescription
GoogleCredentials.Builder