Returns the default project ID, or null if no default project ID could be found. This
method returns the first available project ID among the following sources:
The project ID specified by the GOOGLE_CLOUD_PROJECT environment variable
The App Engine project ID
The project ID specified in the JSON credentials file pointed by the
GOOGLE_APPLICATION_CREDENTIALS environment variable
Some services may have different backoff requirements listed in their SLAs. Be sure to override
this method in options subclasses when the service's backoff requirement differs from the
default parameters listed in RetrySettings.
Returns the application's name as a string in the format gcloud-java/[version],
optionally prepended with externally supplied User-Agent header value (via setting custom
header provider).
Returns a host value to be used for BigQuery and Storage Apiary Wrapped Libraries. To be
removed in the future when Apiary clients can resolve their endpoints. Returns the host to be
used as the rootUrl.
The resolved host will be in https://{serviceName}.{resolvedUniverseDomain}/ format. The
resolvedUniverseDomain will be set to googleapis.com if universeDomain is null.
The host value is set to DEFAULT_HOST if the user didn't configure a host. Returns the host
value the user set, otherwise constructs the host for the user.
See Also: rootUrl
Returns the resolved host for the Service to connect to Google Cloud
The resolved host will be in https://{serviceName}.{resolvedUniverseDomain} format. The
resolvedUniverseDomain will be set to googleapis.com if universeDomain is null. The format is
similar to the DEFAULT_HOST value in java-core.
See Also: DEFAULT_HOST
Universe Domain is the domain for Google Cloud Services. A Google Cloud endpoint follows the
format of {ServiceName}.{UniverseDomain}. For example, speech.googleapis.com would have a
Universe Domain value of googleapis.com and cloudasset.test.com would have a Universe Domain
of test.com.
Validates that Credentials' Universe Domain matches the resolved Universe Domain. Currently,
this is only intended for BigQuery and Storage Apiary Wrapped Libraries.
This validation call should be made prior to any RPC invocation. This call is used to gate
the RPC invocation if there is no valid universe domain.
[[["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-12-12 UTC."],[],[]]