googleapis / googleapis/google-cloud-java

[sdk-platform-java] ObsoleteApi: `getDefualtEndpoint()` in the generated ServiceStubSettings

未关闭
#12,459 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p4 type: cleanup
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

Changes:
- The `getDefaultEndpoint()` will be marked with `@ObsoleteApi` annotation 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:
- [AccessApproval](https://github.com/googleapis/google-cloud-java/blob/e4107b2bc4f018119ae62c1af63484a52a1d37e1/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java#L281-L283)
- [Redis](https://github.com/googleapis/google-cloud-java/blob/e4107b2bc4f018119ae62c1af63484a52a1d37e1/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java#L404-L406)

## 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](https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library) as an example of how to configure the endpoint

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。