@Beta public static class ComputeCredential.Builder extends Credential.Builder
Constructor and Description |
---|
Builder(HttpTransport transport,
JsonFactory jsonFactory) |
Modifier and Type | Method and Description |
---|---|
ComputeCredential.Builder |
addRefreshListener(CredentialRefreshListener refreshListener) |
ComputeCredential |
build() |
ComputeCredential.Builder |
setClientAuthentication(HttpExecuteInterceptor clientAuthentication) |
ComputeCredential.Builder |
setClock(Clock clock) |
ComputeCredential.Builder |
setJsonFactory(JsonFactory jsonFactory) |
ComputeCredential.Builder |
setRefreshListeners(Collection<CredentialRefreshListener> refreshListeners) |
ComputeCredential.Builder |
setRequestInitializer(HttpRequestInitializer requestInitializer) |
ComputeCredential.Builder |
setTokenServerEncodedUrl(String tokenServerEncodedUrl) |
ComputeCredential.Builder |
setTokenServerUrl(GenericUrl tokenServerUrl) |
ComputeCredential.Builder |
setTransport(HttpTransport transport) |
getClientAuthentication, getClock, getJsonFactory, getMethod, getRefreshListeners, getRequestInitializer, getTokenServerUrl, getTransport
public Builder(HttpTransport transport, JsonFactory jsonFactory)
transport
- HTTP transportjsonFactory
- JSON factorypublic ComputeCredential build()
build
in class Credential.Builder
public ComputeCredential.Builder setTransport(HttpTransport transport)
setTransport
in class Credential.Builder
public ComputeCredential.Builder setClock(Clock clock)
setClock
in class Credential.Builder
public ComputeCredential.Builder setJsonFactory(JsonFactory jsonFactory)
setJsonFactory
in class Credential.Builder
public ComputeCredential.Builder setTokenServerUrl(GenericUrl tokenServerUrl)
setTokenServerUrl
in class Credential.Builder
public ComputeCredential.Builder setTokenServerEncodedUrl(String tokenServerEncodedUrl)
setTokenServerEncodedUrl
in class Credential.Builder
public ComputeCredential.Builder setClientAuthentication(HttpExecuteInterceptor clientAuthentication)
setClientAuthentication
in class Credential.Builder
public ComputeCredential.Builder setRequestInitializer(HttpRequestInitializer requestInitializer)
setRequestInitializer
in class Credential.Builder
public ComputeCredential.Builder addRefreshListener(CredentialRefreshListener refreshListener)
addRefreshListener
in class Credential.Builder
public ComputeCredential.Builder setRefreshListeners(Collection<CredentialRefreshListener> refreshListeners)
setRefreshListeners
in class Credential.Builder
Copyright © 2010–2020 Google. All rights reserved.