You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Apiary Host returns user set host if set (#2455)
Bug: googleapis/java-bigquery#3125 (Removing
`Fixes:` as I don't want to close the ticket until BigQuery is able to
pull in a new version of shared-deps).
Following guidance in doc for Apiary (ping me internally for link).
If the user configures the host to be the `DEFAULT_HOST` (a non-valid
endpoint for any service using java-core), then it should construct a
valid service endpoint back using the universe domain.
Copy file name to clipboardExpand all lines: java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -851,17 +851,24 @@ public String getResolvedHost(String serviceName) {
851
851
}
852
852
853
853
/**
854
-
* Temporarily used for BigQuery and Storage Apiary Wrapped Libraries. To be removed in the future
855
-
* when Apiary clients can resolve their endpoints. Returns the host to be used as the rootUrl.
854
+
* Returns a host value to be used for BigQuery and Storage Apiary Wrapped Libraries. To be
855
+
* removed in the future when Apiary clients can resolve their endpoints. Returns the host to be
856
+
* used as the rootUrl.
856
857
*
857
858
* <p>The resolved host will be in `https://{serviceName}.{resolvedUniverseDomain}/` format. The
858
859
* resolvedUniverseDomain will be set to `googleapis.com` if universeDomain is null.
859
860
*
861
+
* <p>The host value is set to DEFAULT_HOST if the user didn't configure a host. Returns the host
862
+
* value the user set, otherwise constructs the host for the user.
0 commit comments