vendor: update all dependencies to latest versions
This commit is contained in:
+2
-5
@@ -14,14 +14,12 @@
|
||||
|
||||
// AUTO-GENERATED CODE. DO NOT EDIT.
|
||||
|
||||
// Package vision is an experimental, auto-generated package for the
|
||||
// Package vision is an auto-generated package for the
|
||||
// Google Cloud Vision API.
|
||||
//
|
||||
// Integrates Google Vision features, including image labeling, face, logo,
|
||||
// and landmark detection, optical character recognition (OCR), and detection
|
||||
// of explicit content, into applications.
|
||||
//
|
||||
// Use the client at cloud.google.com/go/vision in preference to this.
|
||||
package vision // import "cloud.google.com/go/vision/apiv1"
|
||||
|
||||
import (
|
||||
@@ -36,8 +34,7 @@ func insertXGoog(ctx context.Context, val []string) context.Context {
|
||||
return metadata.NewOutgoingContext(ctx, md)
|
||||
}
|
||||
|
||||
// DefaultAuthScopes reports the authentication scopes required
|
||||
// by this package.
|
||||
// DefaultAuthScopes reports the default set of authentication scopes to use with this package.
|
||||
func DefaultAuthScopes() []string {
|
||||
return []string{
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
|
||||
+3
-3
@@ -92,7 +92,7 @@ func NewImageAnnotatorClient(ctx context.Context, opts ...option.ClientOption) (
|
||||
|
||||
imageAnnotatorClient: visionpb.NewImageAnnotatorClient(conn),
|
||||
}
|
||||
c.SetGoogleClientInfo()
|
||||
c.setGoogleClientInfo()
|
||||
return c, nil
|
||||
}
|
||||
|
||||
@@ -107,10 +107,10 @@ func (c *ImageAnnotatorClient) Close() error {
|
||||
return c.conn.Close()
|
||||
}
|
||||
|
||||
// SetGoogleClientInfo sets the name and version of the application in
|
||||
// setGoogleClientInfo sets the name and version of the application in
|
||||
// the `x-goog-api-client` header passed on each request. Intended for
|
||||
// use by Google-written clients.
|
||||
func (c *ImageAnnotatorClient) SetGoogleClientInfo(keyval ...string) {
|
||||
func (c *ImageAnnotatorClient) setGoogleClientInfo(keyval ...string) {
|
||||
kv := append([]string{"gl-go", version.Go()}, keyval...)
|
||||
kv = append(kv, "gapic", version.Repo, "gax", gax.Version, "grpc", grpc.Version)
|
||||
c.xGoogHeader = []string{gax.XGoogHeader(kv...)}
|
||||
|
||||
Reference in New Issue
Block a user