mirror of
https://github.com/restic/restic.git
synced 2025-08-25 06:17:30 +00:00
Update dependencies
This commit is contained in:
5
vendor/cloud.google.com/go/videointelligence/apiv1beta1/doc.go
generated
vendored
5
vendor/cloud.google.com/go/videointelligence/apiv1beta1/doc.go
generated
vendored
@@ -18,8 +18,6 @@
|
||||
// Google Cloud Video Intelligence API.
|
||||
//
|
||||
// Google Cloud Video Intelligence API.
|
||||
//
|
||||
// Use the client at cloud.google.com/go/videointelligence in preference to this.
|
||||
package videointelligence // import "cloud.google.com/go/videointelligence/apiv1beta1"
|
||||
|
||||
import (
|
||||
@@ -34,8 +32,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",
|
||||
|
14
vendor/cloud.google.com/go/videointelligence/apiv1beta1/video_intelligence_client.go
generated
vendored
14
vendor/cloud.google.com/go/videointelligence/apiv1beta1/video_intelligence_client.go
generated
vendored
@@ -98,7 +98,7 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error
|
||||
|
||||
client: videointelligencepb.NewVideoIntelligenceServiceClient(conn),
|
||||
}
|
||||
c.SetGoogleClientInfo()
|
||||
c.setGoogleClientInfo()
|
||||
|
||||
c.LROClient, err = lroauto.NewOperationsClient(ctx, option.WithGRPCConn(conn))
|
||||
if err != nil {
|
||||
@@ -124,19 +124,19 @@ func (c *Client) 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 *Client) SetGoogleClientInfo(keyval ...string) {
|
||||
func (c *Client) 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...)}
|
||||
}
|
||||
|
||||
// AnnotateVideo performs asynchronous video annotation. Progress and results can be
|
||||
// retrieved through the `google.longrunning.Operations` interface.
|
||||
// `Operation.metadata` contains `AnnotateVideoProgress` (progress).
|
||||
// `Operation.response` contains `AnnotateVideoResponse` (results).
|
||||
// retrieved through the google.longrunning.Operations interface.
|
||||
// Operation.metadata contains AnnotateVideoProgress (progress).
|
||||
// Operation.response contains AnnotateVideoResponse (results).
|
||||
func (c *Client) AnnotateVideo(ctx context.Context, req *videointelligencepb.AnnotateVideoRequest, opts ...gax.CallOption) (*AnnotateVideoOperation, error) {
|
||||
ctx = insertXGoog(ctx, c.xGoogHeader)
|
||||
opts = append(c.CallOptions.AnnotateVideo[0:len(c.CallOptions.AnnotateVideo):len(c.CallOptions.AnnotateVideo)], opts...)
|
||||
@@ -172,7 +172,7 @@ func (c *Client) AnnotateVideoOperation(name string) *AnnotateVideoOperation {
|
||||
// See documentation of Poll for error-handling information.
|
||||
func (op *AnnotateVideoOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*videointelligencepb.AnnotateVideoResponse, error) {
|
||||
var resp videointelligencepb.AnnotateVideoResponse
|
||||
if err := op.lro.Wait(ctx, &resp, opts...); err != nil {
|
||||
if err := op.lro.WaitWithInterval(ctx, &resp, 45000*time.Millisecond, opts...); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resp, nil
|
||||
|
Reference in New Issue
Block a user