feat: Remove setting the default endpoint in StubSettings#2348
Conversation
|
Removing setting the default endpoint maybe breaking for customers, especially for some handwritten libraries like Bigtable, can you please verify? If yes, I don't think we want to change it until |
c826fe6 to
fd024d5
Compare
|
|
blakeli0
left a comment
There was a problem hiding this comment.
LGTM. Before merging, please update the PR title and description to reflect the new changes, and change the type of the PR from chore to feat.

What does this do
{serviceName}.googleapis.com.getEndpoint()will return the user set endpoint. If the user does not set an endpoint, the method will return the endpoint set by the service.Showcase
Showcase Clients do not have a valid serviceName and cannot construct an endpoint via the EndpointContext without an explicit endpoint input. To run these locally, we must configure the endpoint explicitly to point to
localhost:7469for gRPC andhttp://localhost:7469for httpjson.Google Cloud Libraries
For Google Cloud client libraries, the service name is stored in the EndpointContext and parsed from the proto or service yaml file.
BEGIN_COMMIT_OVERRIDE
feat: Do not set the default endpoint in StubSettings
feat: StubSettings'
getEndpoint()will return the service's pre-configured endpoint if there are no user configurationsEND_COMMIT_OVERRIDE