File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,14 @@ func (w withCredentialsJSON) Apply(o *internal.DialSettings) {
9595}
9696
9797// WithEndpoint returns a ClientOption that overrides the default endpoint
98- // to be used for a service.
98+ // to be used for a service. Please note that by default Google APIs only
99+ // accept HTTPS traffic.
100+ //
101+ // For a gRPC client, the port number is typically included in the endpoint.
102+ // Example: "us-central1-speech.googleapis.com:443".
103+ //
104+ // For a REST client, the port number is typically not included. Example:
105+ // "https://speech.googleapis.com".
99106func WithEndpoint (url string ) ClientOption {
100107 return withEndpoint (url )
101108}
You can’t perform that action at this time.
0 commit comments