Sets the ExecutorProvider to use for getting the executor to use for running asynchronous API
call logic (such as retries and long-running operations), and also to pass to the transport
settings if an executor is needed for the transport and it doesn't have its own executor
provider.
public B setGdchApiAudience(String gdchApiAudience)
Sets the API audience used by com.google.auth.oauth2.GdchCredentials It cannot be
used if other type of com.google.auth.Credentials is used. If the provided
credentials already have an api audience set, then it will be overriden by this audience
the audience to be used - must be a valid URI string
Returns
Type
Description
B
setHeaderProvider(HeaderProvider headerProvider)
public B setHeaderProvider(HeaderProvider headerProvider)
Sets the HeaderProvider for getting custom static headers for http requests. The header
provider will be called during client construction only once. The headers returned by the
provider will be cached and supplied as is for each request issued by the constructed client.
Some reserved headers can be overridden (e.g. Content-Type) or merged with the default value
(e.g. User-Agent) by the underlying transport layer.
protected B setInternalHeaderProvider(HeaderProvider internalHeaderProvider)
Sets the HeaderProvider for getting internal (library-defined) static headers for http
requests. The header provider will be called during client construction only once. The
headers returned by the provider will be cached and supplied as is for each request issued by
the constructed client. Some reserved headers can be overridden (e.g. Content-Type) or merged
with the default value (e.g. User-Agent) by the underlying transport layer.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]