gapic-generator-java
gapic-generator-java copied to clipboard
ObsoleteApi: `getDefualtEndpoint()` in the generated ServiceStubSettings
Changes:
- The
getDefaultEndpoint()will be marked with@ObsoleteApiannotation with the intention of removing it in a future major version bump. - The generated ServiceStubSetting classes will no longer be passing the a default endpoint via the
getDefaultEndpoint()method.
Example of the generated endpoints:
What's Changing (Behavior/ Code)
There are no changes required on the user's end. The client will automatically determine the endpoint and the default value used remains {service}.googleapis.com. If there are user configurations for the endpoint, the configured value will be used.
How to set a custom endpoint
See this as an example of how to configure the endpoint