googleapis / googleapis/google-cloud-java

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

Đang mở
#12,459 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
priority: p4 type: cleanup
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.