We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b9abf7 commit fe0dd61Copy full SHA for fe0dd61
option/option.go
@@ -95,7 +95,14 @@ func (w withCredentialsJSON) Apply(o *internal.DialSettings) {
95
}
96
97
// WithEndpoint returns a ClientOption that overrides the default endpoint
98
-// to be used for a service.
+// 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".
106
func WithEndpoint(url string) ClientOption {
107
return withEndpoint(url)
108
0 commit comments