Vision AI API v1 - Package cloud.google.com/go/visionai/apiv1 (v0.4.6)

Note: To get more information about this package, such as access to older versions, viewthis package on pkg.go.dev.

Package visionai is an auto-generated package for theVision AI API.

General documentation

For information that is relevant for all client libraries please referencehttps://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on thispage includes:

Example usage

To get started with this package, create a client.

// go get cloud.google.com/go/visionai/apiv1@latestctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()

The client will use your default application credentials. Clients should be reused instead of created as needed.The methods of Client are safe for concurrent use by multiple goroutines.The returned client must be Closed when it is done being used.

Using the Client

The following is an example of making an API call with the newly created client, mentioned above.

req:=&visionaipb.BatchRunProcessRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#BatchRunProcessRequest.}op,err:=c.BatchRunProcess(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp

Use of Context

The ctx passed to NewLiveVideoAnalyticsClient is used for authentication requests andfor creating the underlying connection, but is not used for subsequent calls.Individual methods on the client use the ctx given to them.

To close the open connection, use the Close() method.

Functions

func DefaultAuthScopes

funcDefaultAuthScopes()[]string

DefaultAuthScopes reports the default set of authentication scopes to use with this package.

AddApplicationStreamInputOperation

typeAddApplicationStreamInputOperationstruct{// contains filtered or unexported fields}

AddApplicationStreamInputOperation manages a long-running operation from AddApplicationStreamInput.

func (*AddApplicationStreamInputOperation) Done

Done reports whether the long-running operation has completed.

func (*AddApplicationStreamInputOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*AddApplicationStreamInputOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*AddApplicationStreamInputOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*AddApplicationStreamInputOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

AnalysisIterator

typeAnalysisIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Analysis,nextPageTokenstring,errerror)// contains filtered or unexported fields}

AnalysisIterator manages a stream of *visionaipb.Analysis.

func (*AnalysisIterator) All

func(it*AnalysisIterator)All()iter.Seq2[*visionaipb.Analysis,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*AnalysisIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*AnalysisIterator) PageInfo

func(it*AnalysisIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

AnalyzeAssetOperation

typeAnalyzeAssetOperationstruct{// contains filtered or unexported fields}

AnalyzeAssetOperation manages a long-running operation from AnalyzeAsset.

func (*AnalyzeAssetOperation) Done

Done reports whether the long-running operation has completed.

func (*AnalyzeAssetOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*AnalyzeAssetOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*AnalyzeAssetOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*AnalyzeAssetOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

AnalyzeCorpusOperation

typeAnalyzeCorpusOperationstruct{// contains filtered or unexported fields}

AnalyzeCorpusOperation manages a long-running operation from AnalyzeCorpus.

func (*AnalyzeCorpusOperation) Done

Done reports whether the long-running operation has completed.

func (*AnalyzeCorpusOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*AnalyzeCorpusOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*AnalyzeCorpusOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*AnalyzeCorpusOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

AnnotationIterator

typeAnnotationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Annotation,nextPageTokenstring,errerror)// contains filtered or unexported fields}

AnnotationIterator manages a stream of *visionaipb.Annotation.

func (*AnnotationIterator) All

func(it*AnnotationIterator)All()iter.Seq2[*visionaipb.Annotation,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*AnnotationIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*AnnotationIterator) PageInfo

func(it*AnnotationIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

AppPlatformCallOptions

typeAppPlatformCallOptionsstruct{ListApplications[]gax.CallOptionGetApplication[]gax.CallOptionCreateApplication[]gax.CallOptionUpdateApplication[]gax.CallOptionDeleteApplication[]gax.CallOptionDeployApplication[]gax.CallOptionUndeployApplication[]gax.CallOptionAddApplicationStreamInput[]gax.CallOptionRemoveApplicationStreamInput[]gax.CallOptionUpdateApplicationStreamInput[]gax.CallOptionListInstances[]gax.CallOptionGetInstance[]gax.CallOptionCreateApplicationInstances[]gax.CallOptionDeleteApplicationInstances[]gax.CallOptionUpdateApplicationInstances[]gax.CallOptionListDrafts[]gax.CallOptionGetDraft[]gax.CallOptionCreateDraft[]gax.CallOptionUpdateDraft[]gax.CallOptionDeleteDraft[]gax.CallOptionListProcessors[]gax.CallOptionListPrebuiltProcessors[]gax.CallOptionGetProcessor[]gax.CallOptionCreateProcessor[]gax.CallOptionUpdateProcessor[]gax.CallOptionDeleteProcessor[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}

AppPlatformCallOptions contains the retry settings for each method of AppPlatformClient.

AppPlatformClient

typeAppPlatformClientstruct{// The call options for this service.CallOptions*AppPlatformCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}

AppPlatformClient is a client for interacting with Vision AI API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service describing handlers for resources

func NewAppPlatformClient

funcNewAppPlatformClient(ctxcontext.Context,opts...option.ClientOption)(*AppPlatformClient,error)

NewAppPlatformClient creates a new app platform client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.

Service describing handlers for resources

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func NewAppPlatformRESTClient

funcNewAppPlatformRESTClient(ctxcontext.Context,opts...option.ClientOption)(*AppPlatformClient,error)

NewAppPlatformRESTClient creates a new app platform rest client.

Service describing handlers for resources

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func (*AppPlatformClient) AddApplicationStreamInput

AddApplicationStreamInput adds target stream input to the Application.If the Application is deployed, the corresponding new Application instancewill be created. If the stream has already been in the Application, the RPCwill fail.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.AddApplicationStreamInputRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#AddApplicationStreamInputRequest.}op,err:=c.AddApplicationStreamInput(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) AddApplicationStreamInputOperation

func(c*AppPlatformClient)AddApplicationStreamInputOperation(namestring)*AddApplicationStreamInputOperation

AddApplicationStreamInputOperation returns a new AddApplicationStreamInputOperation from a given name.The name must be that of a previously created AddApplicationStreamInputOperation, possibly from a different process.

func (*AppPlatformClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*AppPlatformClient) Close

func(c*AppPlatformClient)Close()error

Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.

func (*AppPlatformClient) Connection (deprecated)

func(c*AppPlatformClient)Connection()*grpc.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.

func (*AppPlatformClient) CreateApplication

CreateApplication creates a new Application in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateApplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateApplicationRequest.}op,err:=c.CreateApplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) CreateApplicationInstances

CreateApplicationInstances adds target stream input to the Application.If the Application is deployed, the corresponding new Application instancewill be created. If the stream has already been in the Application, the RPCwill fail.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateApplicationInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateApplicationInstancesRequest.}op,err:=c.CreateApplicationInstances(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) CreateApplicationInstancesOperation

func(c*AppPlatformClient)CreateApplicationInstancesOperation(namestring)*CreateApplicationInstancesOperation

CreateApplicationInstancesOperation returns a new CreateApplicationInstancesOperation from a given name.The name must be that of a previously created CreateApplicationInstancesOperation, possibly from a different process.

func (*AppPlatformClient) CreateApplicationOperation

func(c*AppPlatformClient)CreateApplicationOperation(namestring)*CreateApplicationOperation

CreateApplicationOperation returns a new CreateApplicationOperation from a given name.The name must be that of a previously created CreateApplicationOperation, possibly from a different process.

func (*AppPlatformClient) CreateDraft

CreateDraft creates a new Draft in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateDraftRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateDraftRequest.}op,err:=c.CreateDraft(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) CreateDraftOperation

func(c*AppPlatformClient)CreateDraftOperation(namestring)*CreateDraftOperation

CreateDraftOperation returns a new CreateDraftOperation from a given name.The name must be that of a previously created CreateDraftOperation, possibly from a different process.

func (*AppPlatformClient) CreateProcessor

CreateProcessor creates a new Processor in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateProcessorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateProcessorRequest.}op,err:=c.CreateProcessor(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) CreateProcessorOperation

func(c*AppPlatformClient)CreateProcessorOperation(namestring)*CreateProcessorOperation

CreateProcessorOperation returns a new CreateProcessorOperation from a given name.The name must be that of a previously created CreateProcessorOperation, possibly from a different process.

func (*AppPlatformClient) DeleteApplication

DeleteApplication deletes a single Application.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteApplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteApplicationRequest.}op,err:=c.DeleteApplication(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*AppPlatformClient) DeleteApplicationInstances

DeleteApplicationInstances remove target stream input to the Application, if the Application isdeployed, the corresponding instance based will be deleted. If the streamis not in the Application, the RPC will fail.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteApplicationInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteApplicationInstancesRequest.}op,err:=c.DeleteApplicationInstances(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) DeleteApplicationInstancesOperation

func(c*AppPlatformClient)DeleteApplicationInstancesOperation(namestring)*DeleteApplicationInstancesOperation

DeleteApplicationInstancesOperation returns a new DeleteApplicationInstancesOperation from a given name.The name must be that of a previously created DeleteApplicationInstancesOperation, possibly from a different process.

func (*AppPlatformClient) DeleteApplicationOperation

func(c*AppPlatformClient)DeleteApplicationOperation(namestring)*DeleteApplicationOperation

DeleteApplicationOperation returns a new DeleteApplicationOperation from a given name.The name must be that of a previously created DeleteApplicationOperation, possibly from a different process.

func (*AppPlatformClient) DeleteDraft

DeleteDraft deletes a single Draft.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteDraftRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteDraftRequest.}op,err:=c.DeleteDraft(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*AppPlatformClient) DeleteDraftOperation

func(c*AppPlatformClient)DeleteDraftOperation(namestring)*DeleteDraftOperation

DeleteDraftOperation returns a new DeleteDraftOperation from a given name.The name must be that of a previously created DeleteDraftOperation, possibly from a different process.

func (*AppPlatformClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*AppPlatformClient) DeleteProcessor

DeleteProcessor deletes a single Processor.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteProcessorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteProcessorRequest.}op,err:=c.DeleteProcessor(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*AppPlatformClient) DeleteProcessorOperation

func(c*AppPlatformClient)DeleteProcessorOperation(namestring)*DeleteProcessorOperation

DeleteProcessorOperation returns a new DeleteProcessorOperation from a given name.The name must be that of a previously created DeleteProcessorOperation, possibly from a different process.

func (*AppPlatformClient) DeployApplication

DeployApplication deploys a single Application.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeployApplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeployApplicationRequest.}op,err:=c.DeployApplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) DeployApplicationOperation

func(c*AppPlatformClient)DeployApplicationOperation(namestring)*DeployApplicationOperation

DeployApplicationOperation returns a new DeployApplicationOperation from a given name.The name must be that of a previously created DeployApplicationOperation, possibly from a different process.

func (*AppPlatformClient) GetApplication

GetApplication gets details of a single Application.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetApplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetApplicationRequest.}resp,err:=c.GetApplication(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) GetDraft

GetDraft gets details of a single Draft.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetDraftRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetDraftRequest.}resp,err:=c.GetDraft(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) GetInstance

GetInstance gets details of a single Instance.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetInstanceRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetInstanceRequest.}resp,err:=c.GetInstance(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) GetProcessor

GetProcessor gets details of a single Processor.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetProcessorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetProcessorRequest.}resp,err:=c.GetProcessor(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) ListApplications

ListApplications lists Applications in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListApplicationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListApplicationsRequest.}it:=c.ListApplications(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListApplicationsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListApplicationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListApplicationsRequest.}forresp,err:=rangec.ListApplications(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*AppPlatformClient) ListDrafts

ListDrafts lists Drafts in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListDraftsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListDraftsRequest.}it:=c.ListDrafts(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListDraftsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListDraftsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListDraftsRequest.}forresp,err:=rangec.ListDrafts(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*AppPlatformClient) ListInstances

ListInstances lists Instances in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListInstancesRequest.}it:=c.ListInstances(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListInstancesResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListInstancesRequest.}forresp,err:=rangec.ListInstances(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*AppPlatformClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Examples

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}
all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*AppPlatformClient) ListPrebuiltProcessors

ListPrebuiltProcessors listPrebuiltProcessors is a custom pass-through verb that Lists PrebuiltProcessors.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListPrebuiltProcessorsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListPrebuiltProcessorsRequest.}resp,err:=c.ListPrebuiltProcessors(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) ListProcessors

ListProcessors lists Processors in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListProcessorsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListProcessorsRequest.}it:=c.ListProcessors(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListProcessorsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListProcessorsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListProcessorsRequest.}forresp,err:=rangec.ListProcessors(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*AppPlatformClient) RemoveApplicationStreamInput

RemoveApplicationStreamInput remove target stream input to the Application, if the Application isdeployed, the corresponding instance based will be deleted. If the streamis not in the Application, the RPC will fail.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.RemoveApplicationStreamInputRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#RemoveApplicationStreamInputRequest.}op,err:=c.RemoveApplicationStreamInput(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) RemoveApplicationStreamInputOperation

func(c*AppPlatformClient)RemoveApplicationStreamInputOperation(namestring)*RemoveApplicationStreamInputOperation

RemoveApplicationStreamInputOperation returns a new RemoveApplicationStreamInputOperation from a given name.The name must be that of a previously created RemoveApplicationStreamInputOperation, possibly from a different process.

func (*AppPlatformClient) UndeployApplication

UndeployApplication undeploys a single Application.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UndeployApplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UndeployApplicationRequest.}op,err:=c.UndeployApplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) UndeployApplicationOperation

func(c*AppPlatformClient)UndeployApplicationOperation(namestring)*UndeployApplicationOperation

UndeployApplicationOperation returns a new UndeployApplicationOperation from a given name.The name must be that of a previously created UndeployApplicationOperation, possibly from a different process.

func (*AppPlatformClient) UpdateApplication

UpdateApplication updates the parameters of a single Application.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateApplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateApplicationRequest.}op,err:=c.UpdateApplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) UpdateApplicationInstances

UpdateApplicationInstances adds target stream input to the Application.If the Application is deployed, the corresponding new Application instancewill be created. If the stream has already been in the Application, the RPCwill fail.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateApplicationInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateApplicationInstancesRequest.}op,err:=c.UpdateApplicationInstances(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) UpdateApplicationInstancesOperation

func(c*AppPlatformClient)UpdateApplicationInstancesOperation(namestring)*UpdateApplicationInstancesOperation

UpdateApplicationInstancesOperation returns a new UpdateApplicationInstancesOperation from a given name.The name must be that of a previously created UpdateApplicationInstancesOperation, possibly from a different process.

func (*AppPlatformClient) UpdateApplicationOperation

func(c*AppPlatformClient)UpdateApplicationOperation(namestring)*UpdateApplicationOperation

UpdateApplicationOperation returns a new UpdateApplicationOperation from a given name.The name must be that of a previously created UpdateApplicationOperation, possibly from a different process.

func (*AppPlatformClient) UpdateApplicationStreamInput

UpdateApplicationStreamInput update target stream input to the Application, if the Application isdeployed, the corresponding instance based will be deployed. ForCreateOrUpdate behavior, set allow_missing to true.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateApplicationStreamInputRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateApplicationStreamInputRequest.}op,err:=c.UpdateApplicationStreamInput(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) UpdateApplicationStreamInputOperation

func(c*AppPlatformClient)UpdateApplicationStreamInputOperation(namestring)*UpdateApplicationStreamInputOperation

UpdateApplicationStreamInputOperation returns a new UpdateApplicationStreamInputOperation from a given name.The name must be that of a previously created UpdateApplicationStreamInputOperation, possibly from a different process.

func (*AppPlatformClient) UpdateDraft

UpdateDraft updates the parameters of a single Draft.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateDraftRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateDraftRequest.}op,err:=c.UpdateDraft(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) UpdateDraftOperation

func(c*AppPlatformClient)UpdateDraftOperation(namestring)*UpdateDraftOperation

UpdateDraftOperation returns a new UpdateDraftOperation from a given name.The name must be that of a previously created UpdateDraftOperation, possibly from a different process.

func (*AppPlatformClient) UpdateProcessor

UpdateProcessor updates the parameters of a single Processor.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewAppPlatformClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateProcessorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateProcessorRequest.}op,err:=c.UpdateProcessor(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*AppPlatformClient) UpdateProcessorOperation

func(c*AppPlatformClient)UpdateProcessorOperation(namestring)*UpdateProcessorOperation

UpdateProcessorOperation returns a new UpdateProcessorOperation from a given name.The name must be that of a previously created UpdateProcessorOperation, possibly from a different process.

ApplicationIterator

typeApplicationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Application,nextPageTokenstring,errerror)// contains filtered or unexported fields}

ApplicationIterator manages a stream of *visionaipb.Application.

func (*ApplicationIterator) All

func(it*ApplicationIterator)All()iter.Seq2[*visionaipb.Application,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*ApplicationIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*ApplicationIterator) PageInfo

func(it*ApplicationIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

AssetIterator

typeAssetIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Asset,nextPageTokenstring,errerror)// contains filtered or unexported fields}

AssetIterator manages a stream of *visionaipb.Asset.

func (*AssetIterator) All

func(it*AssetIterator)All()iter.Seq2[*visionaipb.Asset,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*AssetIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*AssetIterator) PageInfo

func(it*AssetIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

BatchRunProcessOperation

typeBatchRunProcessOperationstruct{// contains filtered or unexported fields}

BatchRunProcessOperation manages a long-running operation from BatchRunProcess.

func (*BatchRunProcessOperation) Done

Done reports whether the long-running operation has completed.

func (*BatchRunProcessOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*BatchRunProcessOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*BatchRunProcessOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*BatchRunProcessOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

ClusterIterator

typeClusterIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Cluster,nextPageTokenstring,errerror)// contains filtered or unexported fields}

ClusterIterator manages a stream of *visionaipb.Cluster.

func (*ClusterIterator) All

func(it*ClusterIterator)All()iter.Seq2[*visionaipb.Cluster,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*ClusterIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*ClusterIterator) PageInfo

func(it*ClusterIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

CollectionItemIterator

typeCollectionItemIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.CollectionItem,nextPageTokenstring,errerror)// contains filtered or unexported fields}

CollectionItemIterator manages a stream of *visionaipb.CollectionItem.

func (*CollectionItemIterator) All

func(it*CollectionItemIterator)All()iter.Seq2[*visionaipb.CollectionItem,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*CollectionItemIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*CollectionItemIterator) PageInfo

func(it*CollectionItemIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

CollectionIterator

typeCollectionIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Collection,nextPageTokenstring,errerror)// contains filtered or unexported fields}

CollectionIterator manages a stream of *visionaipb.Collection.

func (*CollectionIterator) All

func(it*CollectionIterator)All()iter.Seq2[*visionaipb.Collection,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*CollectionIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*CollectionIterator) PageInfo

func(it*CollectionIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

CorpusIterator

typeCorpusIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Corpus,nextPageTokenstring,errerror)// contains filtered or unexported fields}

CorpusIterator manages a stream of *visionaipb.Corpus.

func (*CorpusIterator) All

func(it*CorpusIterator)All()iter.Seq2[*visionaipb.Corpus,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*CorpusIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*CorpusIterator) PageInfo

func(it*CorpusIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

CreateAnalysisOperation

typeCreateAnalysisOperationstruct{// contains filtered or unexported fields}

CreateAnalysisOperation manages a long-running operation from CreateAnalysis.

func (*CreateAnalysisOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateAnalysisOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateAnalysisOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateAnalysisOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateAnalysisOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateApplicationInstancesOperation

typeCreateApplicationInstancesOperationstruct{// contains filtered or unexported fields}

CreateApplicationInstancesOperation manages a long-running operation from CreateApplicationInstances.

func (*CreateApplicationInstancesOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateApplicationInstancesOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateApplicationInstancesOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateApplicationInstancesOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateApplicationInstancesOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateApplicationOperation

typeCreateApplicationOperationstruct{// contains filtered or unexported fields}

CreateApplicationOperation manages a long-running operation from CreateApplication.

func (*CreateApplicationOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateApplicationOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateApplicationOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateApplicationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateApplicationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateClusterOperation

typeCreateClusterOperationstruct{// contains filtered or unexported fields}

CreateClusterOperation manages a long-running operation from CreateCluster.

func (*CreateClusterOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateClusterOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateClusterOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateClusterOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateClusterOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateCollectionOperation

typeCreateCollectionOperationstruct{// contains filtered or unexported fields}

CreateCollectionOperation manages a long-running operation from CreateCollection.

func (*CreateCollectionOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateCollectionOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateCollectionOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateCollectionOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateCollectionOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateCorpusOperation

typeCreateCorpusOperationstruct{// contains filtered or unexported fields}

CreateCorpusOperation manages a long-running operation from CreateCorpus.

func (*CreateCorpusOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateCorpusOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateCorpusOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateCorpusOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateCorpusOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateDraftOperation

typeCreateDraftOperationstruct{// contains filtered or unexported fields}

CreateDraftOperation manages a long-running operation from CreateDraft.

func (*CreateDraftOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateDraftOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateDraftOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateDraftOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateDraftOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateEventOperation

typeCreateEventOperationstruct{// contains filtered or unexported fields}

CreateEventOperation manages a long-running operation from CreateEvent.

func (*CreateEventOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateEventOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateEventOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateEventOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateEventOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateIndexEndpointOperation

typeCreateIndexEndpointOperationstruct{// contains filtered or unexported fields}

CreateIndexEndpointOperation manages a long-running operation from CreateIndexEndpoint.

func (*CreateIndexEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateIndexEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateIndexEndpointOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateIndexEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateIndexEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateIndexOperation

typeCreateIndexOperationstruct{// contains filtered or unexported fields}

CreateIndexOperation manages a long-running operation from CreateIndex.

func (*CreateIndexOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateIndexOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateIndexOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateIndexOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateIndexOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateOperatorOperation

typeCreateOperatorOperationstruct{// contains filtered or unexported fields}

CreateOperatorOperation manages a long-running operation from CreateOperator.

func (*CreateOperatorOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateOperatorOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateOperatorOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateOperatorOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateOperatorOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateProcessOperation

typeCreateProcessOperationstruct{// contains filtered or unexported fields}

CreateProcessOperation manages a long-running operation from CreateProcess.

func (*CreateProcessOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateProcessOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateProcessOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateProcessOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateProcessOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateProcessorOperation

typeCreateProcessorOperationstruct{// contains filtered or unexported fields}

CreateProcessorOperation manages a long-running operation from CreateProcessor.

func (*CreateProcessorOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateProcessorOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateProcessorOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateProcessorOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateProcessorOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateSeriesOperation

typeCreateSeriesOperationstruct{// contains filtered or unexported fields}

CreateSeriesOperation manages a long-running operation from CreateSeries.

func (*CreateSeriesOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateSeriesOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateSeriesOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateSeriesOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateSeriesOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

CreateStreamOperation

typeCreateStreamOperationstruct{// contains filtered or unexported fields}

CreateStreamOperation manages a long-running operation from CreateStream.

func (*CreateStreamOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateStreamOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*CreateStreamOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateStreamOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateStreamOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DataSchemaIterator

typeDataSchemaIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.DataSchema,nextPageTokenstring,errerror)// contains filtered or unexported fields}

DataSchemaIterator manages a stream of *visionaipb.DataSchema.

func (*DataSchemaIterator) All

func(it*DataSchemaIterator)All()iter.Seq2[*visionaipb.DataSchema,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*DataSchemaIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*DataSchemaIterator) PageInfo

func(it*DataSchemaIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

DeleteAnalysisOperation

typeDeleteAnalysisOperationstruct{// contains filtered or unexported fields}

DeleteAnalysisOperation manages a long-running operation from DeleteAnalysis.

func (*DeleteAnalysisOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteAnalysisOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteAnalysisOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteAnalysisOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteAnalysisOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteApplicationInstancesOperation

typeDeleteApplicationInstancesOperationstruct{// contains filtered or unexported fields}

DeleteApplicationInstancesOperation manages a long-running operation from DeleteApplicationInstances.

func (*DeleteApplicationInstancesOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteApplicationInstancesOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteApplicationInstancesOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteApplicationInstancesOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteApplicationInstancesOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteApplicationOperation

typeDeleteApplicationOperationstruct{// contains filtered or unexported fields}

DeleteApplicationOperation manages a long-running operation from DeleteApplication.

func (*DeleteApplicationOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteApplicationOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteApplicationOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteApplicationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteApplicationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteAssetOperation

typeDeleteAssetOperationstruct{// contains filtered or unexported fields}

DeleteAssetOperation manages a long-running operation from DeleteAsset.

func (*DeleteAssetOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteAssetOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteAssetOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteAssetOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteAssetOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteClusterOperation

typeDeleteClusterOperationstruct{// contains filtered or unexported fields}

DeleteClusterOperation manages a long-running operation from DeleteCluster.

func (*DeleteClusterOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteClusterOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteClusterOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteClusterOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteClusterOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteCollectionOperation

typeDeleteCollectionOperationstruct{// contains filtered or unexported fields}

DeleteCollectionOperation manages a long-running operation from DeleteCollection.

func (*DeleteCollectionOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteCollectionOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteCollectionOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteCollectionOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteCollectionOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteDraftOperation

typeDeleteDraftOperationstruct{// contains filtered or unexported fields}

DeleteDraftOperation manages a long-running operation from DeleteDraft.

func (*DeleteDraftOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteDraftOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteDraftOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteDraftOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteDraftOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteEventOperation

typeDeleteEventOperationstruct{// contains filtered or unexported fields}

DeleteEventOperation manages a long-running operation from DeleteEvent.

func (*DeleteEventOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteEventOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteEventOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteEventOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteEventOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteIndexEndpointOperation

typeDeleteIndexEndpointOperationstruct{// contains filtered or unexported fields}

DeleteIndexEndpointOperation manages a long-running operation from DeleteIndexEndpoint.

func (*DeleteIndexEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteIndexEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteIndexEndpointOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteIndexEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteIndexEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteIndexOperation

typeDeleteIndexOperationstruct{// contains filtered or unexported fields}

DeleteIndexOperation manages a long-running operation from DeleteIndex.

func (*DeleteIndexOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteIndexOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteIndexOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteIndexOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteIndexOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteOperatorOperation

typeDeleteOperatorOperationstruct{// contains filtered or unexported fields}

DeleteOperatorOperation manages a long-running operation from DeleteOperator.

func (*DeleteOperatorOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteOperatorOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteOperatorOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteOperatorOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteOperatorOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteProcessOperation

typeDeleteProcessOperationstruct{// contains filtered or unexported fields}

DeleteProcessOperation manages a long-running operation from DeleteProcess.

func (*DeleteProcessOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteProcessOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteProcessOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteProcessOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteProcessOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteProcessorOperation

typeDeleteProcessorOperationstruct{// contains filtered or unexported fields}

DeleteProcessorOperation manages a long-running operation from DeleteProcessor.

func (*DeleteProcessorOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteProcessorOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteProcessorOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteProcessorOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteProcessorOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteSeriesOperation

typeDeleteSeriesOperationstruct{// contains filtered or unexported fields}

DeleteSeriesOperation manages a long-running operation from DeleteSeries.

func (*DeleteSeriesOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteSeriesOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteSeriesOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteSeriesOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteSeriesOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeleteStreamOperation

typeDeleteStreamOperationstruct{// contains filtered or unexported fields}

DeleteStreamOperation manages a long-running operation from DeleteStream.

func (*DeleteStreamOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteStreamOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteStreamOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteStreamOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteStreamOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeployApplicationOperation

typeDeployApplicationOperationstruct{// contains filtered or unexported fields}

DeployApplicationOperation manages a long-running operation from DeployApplication.

func (*DeployApplicationOperation) Done

Done reports whether the long-running operation has completed.

func (*DeployApplicationOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeployApplicationOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeployApplicationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeployApplicationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DeployIndexOperation

typeDeployIndexOperationstruct{// contains filtered or unexported fields}

DeployIndexOperation manages a long-running operation from DeployIndex.

func (*DeployIndexOperation) Done

Done reports whether the long-running operation has completed.

func (*DeployIndexOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*DeployIndexOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeployIndexOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeployIndexOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

DraftIterator

typeDraftIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Draft,nextPageTokenstring,errerror)// contains filtered or unexported fields}

DraftIterator manages a stream of *visionaipb.Draft.

func (*DraftIterator) All

func(it*DraftIterator)All()iter.Seq2[*visionaipb.Draft,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*DraftIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*DraftIterator) PageInfo

func(it*DraftIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

EventIterator

typeEventIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Event,nextPageTokenstring,errerror)// contains filtered or unexported fields}

EventIterator manages a stream of *visionaipb.Event.

func (*EventIterator) All

func(it*EventIterator)All()iter.Seq2[*visionaipb.Event,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*EventIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*EventIterator) PageInfo

func(it*EventIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

GetStreamThumbnailOperation

typeGetStreamThumbnailOperationstruct{// contains filtered or unexported fields}

GetStreamThumbnailOperation manages a long-running operation from GetStreamThumbnail.

func (*GetStreamThumbnailOperation) Done

Done reports whether the long-running operation has completed.

func (*GetStreamThumbnailOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*GetStreamThumbnailOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*GetStreamThumbnailOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*GetStreamThumbnailOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

HealthCheckCallOptions

typeHealthCheckCallOptionsstruct{HealthCheck[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}

HealthCheckCallOptions contains the retry settings for each method of HealthCheckClient.

HealthCheckClient

typeHealthCheckClientstruct{// The call options for this service.CallOptions*HealthCheckCallOptions// contains filtered or unexported fields}

HealthCheckClient is a client for interacting with Vision AI API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

HealthCheckService provides an interface for Vertex AI Vision Cluster HealthCheck.

func NewHealthCheckClient

funcNewHealthCheckClient(ctxcontext.Context,opts...option.ClientOption)(*HealthCheckClient,error)

NewHealthCheckClient creates a new health check service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.

HealthCheckService provides an interface for Vertex AI Vision Cluster HealthCheck.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func NewHealthCheckRESTClient

funcNewHealthCheckRESTClient(ctxcontext.Context,opts...option.ClientOption)(*HealthCheckClient,error)

NewHealthCheckRESTClient creates a new health check service rest client.

HealthCheckService provides an interface for Vertex AI Vision Cluster HealthCheck.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func (*HealthCheckClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*HealthCheckClient) Close

func(c*HealthCheckClient)Close()error

Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.

func (*HealthCheckClient) Connection (deprecated)

func(c*HealthCheckClient)Connection()*grpc.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.

func (*HealthCheckClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*HealthCheckClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*HealthCheckClient) HealthCheck

HealthCheck healthCheck method checks the health status of the cluster.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.HealthCheckRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#HealthCheckRequest.}resp,err:=c.HealthCheck(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*HealthCheckClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Examples

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}
all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewHealthCheckClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

ImportAssetsOperation

typeImportAssetsOperationstruct{// contains filtered or unexported fields}

ImportAssetsOperation manages a long-running operation from ImportAssets.

func (*ImportAssetsOperation) Done

Done reports whether the long-running operation has completed.

func (*ImportAssetsOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*ImportAssetsOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*ImportAssetsOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*ImportAssetsOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

IndexAssetOperation

typeIndexAssetOperationstruct{// contains filtered or unexported fields}

IndexAssetOperation manages a long-running operation from IndexAsset.

func (*IndexAssetOperation) Done

Done reports whether the long-running operation has completed.

func (*IndexAssetOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*IndexAssetOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*IndexAssetOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*IndexAssetOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

IndexEndpointIterator

typeIndexEndpointIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.IndexEndpoint,nextPageTokenstring,errerror)// contains filtered or unexported fields}

IndexEndpointIterator manages a stream of *visionaipb.IndexEndpoint.

func (*IndexEndpointIterator) All

func(it*IndexEndpointIterator)All()iter.Seq2[*visionaipb.IndexEndpoint,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*IndexEndpointIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*IndexEndpointIterator) PageInfo

func(it*IndexEndpointIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

IndexIterator

typeIndexIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Index,nextPageTokenstring,errerror)// contains filtered or unexported fields}

IndexIterator manages a stream of *visionaipb.Index.

func (*IndexIterator) All

func(it*IndexIterator)All()iter.Seq2[*visionaipb.Index,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*IndexIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*IndexIterator) PageInfo

func(it*IndexIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

IndexedAssetIterator

typeIndexedAssetIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.IndexedAsset,nextPageTokenstring,errerror)// contains filtered or unexported fields}

IndexedAssetIterator manages a stream of *visionaipb.IndexedAsset.

func (*IndexedAssetIterator) All

func(it*IndexedAssetIterator)All()iter.Seq2[*visionaipb.IndexedAsset,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*IndexedAssetIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*IndexedAssetIterator) PageInfo

func(it*IndexedAssetIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

InstanceIterator

typeInstanceIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Instance,nextPageTokenstring,errerror)// contains filtered or unexported fields}

InstanceIterator manages a stream of *visionaipb.Instance.

func (*InstanceIterator) All

func(it*InstanceIterator)All()iter.Seq2[*visionaipb.Instance,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*InstanceIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*InstanceIterator) PageInfo

func(it*InstanceIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

LiveVideoAnalyticsCallOptions

typeLiveVideoAnalyticsCallOptionsstruct{ListPublicOperators[]gax.CallOptionResolveOperatorInfo[]gax.CallOptionListOperators[]gax.CallOptionGetOperator[]gax.CallOptionCreateOperator[]gax.CallOptionUpdateOperator[]gax.CallOptionDeleteOperator[]gax.CallOptionListAnalyses[]gax.CallOptionGetAnalysis[]gax.CallOptionCreateAnalysis[]gax.CallOptionUpdateAnalysis[]gax.CallOptionDeleteAnalysis[]gax.CallOptionListProcesses[]gax.CallOptionGetProcess[]gax.CallOptionCreateProcess[]gax.CallOptionUpdateProcess[]gax.CallOptionDeleteProcess[]gax.CallOptionBatchRunProcess[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}

LiveVideoAnalyticsCallOptions contains the retry settings for each method of LiveVideoAnalyticsClient.

LiveVideoAnalyticsClient

typeLiveVideoAnalyticsClientstruct{// The call options for this service.CallOptions*LiveVideoAnalyticsCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}

LiveVideoAnalyticsClient is a client for interacting with Vision AI API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service describing handlers for resources. The service enables clients to runLive Video Analytics (LVA) on the streaming inputs.

func NewLiveVideoAnalyticsClient

funcNewLiveVideoAnalyticsClient(ctxcontext.Context,opts...option.ClientOption)(*LiveVideoAnalyticsClient,error)

NewLiveVideoAnalyticsClient creates a new live video analytics client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.

Service describing handlers for resources. The service enables clients to runLive Video Analytics (LVA) on the streaming inputs.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func NewLiveVideoAnalyticsRESTClient

funcNewLiveVideoAnalyticsRESTClient(ctxcontext.Context,opts...option.ClientOption)(*LiveVideoAnalyticsClient,error)

NewLiveVideoAnalyticsRESTClient creates a new live video analytics rest client.

Service describing handlers for resources. The service enables clients to runLive Video Analytics (LVA) on the streaming inputs.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func (*LiveVideoAnalyticsClient) BatchRunProcess

BatchRunProcess run all of the processes to “completion”. Max time for each process isthe LRO time limit.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.BatchRunProcessRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#BatchRunProcessRequest.}op,err:=c.BatchRunProcess(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) BatchRunProcessOperation

func(c*LiveVideoAnalyticsClient)BatchRunProcessOperation(namestring)*BatchRunProcessOperation

BatchRunProcessOperation returns a new BatchRunProcessOperation from a given name.The name must be that of a previously created BatchRunProcessOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*LiveVideoAnalyticsClient) Close

Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.

func (*LiveVideoAnalyticsClient) Connection (deprecated)

func(c*LiveVideoAnalyticsClient)Connection()*grpc.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.

func (*LiveVideoAnalyticsClient) CreateAnalysis

CreateAnalysis creates a new Analysis in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateAnalysisRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateAnalysisRequest.}op,err:=c.CreateAnalysis(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) CreateAnalysisOperation

func(c*LiveVideoAnalyticsClient)CreateAnalysisOperation(namestring)*CreateAnalysisOperation

CreateAnalysisOperation returns a new CreateAnalysisOperation from a given name.The name must be that of a previously created CreateAnalysisOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) CreateOperator

CreateOperator creates a new Operator in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateOperatorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateOperatorRequest.}op,err:=c.CreateOperator(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) CreateOperatorOperation

func(c*LiveVideoAnalyticsClient)CreateOperatorOperation(namestring)*CreateOperatorOperation

CreateOperatorOperation returns a new CreateOperatorOperation from a given name.The name must be that of a previously created CreateOperatorOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) CreateProcess

CreateProcess creates a new Process in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateProcessRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateProcessRequest.}op,err:=c.CreateProcess(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) CreateProcessOperation

func(c*LiveVideoAnalyticsClient)CreateProcessOperation(namestring)*CreateProcessOperation

CreateProcessOperation returns a new CreateProcessOperation from a given name.The name must be that of a previously created CreateProcessOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) DeleteAnalysis

DeleteAnalysis deletes a single Analysis.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteAnalysisRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteAnalysisRequest.}op,err:=c.DeleteAnalysis(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*LiveVideoAnalyticsClient) DeleteAnalysisOperation

func(c*LiveVideoAnalyticsClient)DeleteAnalysisOperation(namestring)*DeleteAnalysisOperation

DeleteAnalysisOperation returns a new DeleteAnalysisOperation from a given name.The name must be that of a previously created DeleteAnalysisOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*LiveVideoAnalyticsClient) DeleteOperator

DeleteOperator deletes a single Operator.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteOperatorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteOperatorRequest.}op,err:=c.DeleteOperator(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*LiveVideoAnalyticsClient) DeleteOperatorOperation

func(c*LiveVideoAnalyticsClient)DeleteOperatorOperation(namestring)*DeleteOperatorOperation

DeleteOperatorOperation returns a new DeleteOperatorOperation from a given name.The name must be that of a previously created DeleteOperatorOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) DeleteProcess

DeleteProcess deletes a single Process.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteProcessRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteProcessRequest.}op,err:=c.DeleteProcess(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*LiveVideoAnalyticsClient) DeleteProcessOperation

func(c*LiveVideoAnalyticsClient)DeleteProcessOperation(namestring)*DeleteProcessOperation

DeleteProcessOperation returns a new DeleteProcessOperation from a given name.The name must be that of a previously created DeleteProcessOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) GetAnalysis

GetAnalysis gets details of a single Analysis.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetAnalysisRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetAnalysisRequest.}resp,err:=c.GetAnalysis(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) GetOperator

GetOperator gets details of a single Operator.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetOperatorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetOperatorRequest.}resp,err:=c.GetOperator(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) GetProcess

GetProcess gets details of a single Process.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetProcessRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetProcessRequest.}resp,err:=c.GetProcess(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) ListAnalyses

ListAnalyses lists Analyses in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListAnalysesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListAnalysesRequest.}it:=c.ListAnalyses(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListAnalysesResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListAnalysesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListAnalysesRequest.}forresp,err:=rangec.ListAnalyses(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*LiveVideoAnalyticsClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Examples

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}
all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*LiveVideoAnalyticsClient) ListOperators

ListOperators lists Operators in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListOperatorsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListOperatorsRequest.}it:=c.ListOperators(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListOperatorsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListOperatorsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListOperatorsRequest.}forresp,err:=rangec.ListOperators(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*LiveVideoAnalyticsClient) ListProcesses

ListProcesses lists Processes in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListProcessesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListProcessesRequest.}it:=c.ListProcesses(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListProcessesResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListProcessesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListProcessesRequest.}forresp,err:=rangec.ListProcesses(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*LiveVideoAnalyticsClient) ListPublicOperators

ListPublicOperators listPublicOperators returns all the operators in public registry.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListPublicOperatorsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListPublicOperatorsRequest.}it:=c.ListPublicOperators(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListPublicOperatorsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListPublicOperatorsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListPublicOperatorsRequest.}forresp,err:=rangec.ListPublicOperators(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*LiveVideoAnalyticsClient) ResolveOperatorInfo

ResolveOperatorInfo resolveOperatorInfo returns the operator information based on the request.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ResolveOperatorInfoRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ResolveOperatorInfoRequest.}resp,err:=c.ResolveOperatorInfo(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) UpdateAnalysis

UpdateAnalysis updates the parameters of a single Analysis.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateAnalysisRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateAnalysisRequest.}op,err:=c.UpdateAnalysis(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) UpdateAnalysisOperation

func(c*LiveVideoAnalyticsClient)UpdateAnalysisOperation(namestring)*UpdateAnalysisOperation

UpdateAnalysisOperation returns a new UpdateAnalysisOperation from a given name.The name must be that of a previously created UpdateAnalysisOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) UpdateOperator

UpdateOperator updates the parameters of a single Operator.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateOperatorRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateOperatorRequest.}op,err:=c.UpdateOperator(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) UpdateOperatorOperation

func(c*LiveVideoAnalyticsClient)UpdateOperatorOperation(namestring)*UpdateOperatorOperation

UpdateOperatorOperation returns a new UpdateOperatorOperation from a given name.The name must be that of a previously created UpdateOperatorOperation, possibly from a different process.

func (*LiveVideoAnalyticsClient) UpdateProcess

UpdateProcess updates the parameters of a single Process.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewLiveVideoAnalyticsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateProcessRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateProcessRequest.}op,err:=c.UpdateProcess(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*LiveVideoAnalyticsClient) UpdateProcessOperation

func(c*LiveVideoAnalyticsClient)UpdateProcessOperation(namestring)*UpdateProcessOperation

UpdateProcessOperation returns a new UpdateProcessOperation from a given name.The name must be that of a previously created UpdateProcessOperation, possibly from a different process.

MaterializeChannelOperation

typeMaterializeChannelOperationstruct{// contains filtered or unexported fields}

MaterializeChannelOperation manages a long-running operation from MaterializeChannel.

func (*MaterializeChannelOperation) Done

Done reports whether the long-running operation has completed.

func (*MaterializeChannelOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*MaterializeChannelOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*MaterializeChannelOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*MaterializeChannelOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

OperationIterator

typeOperationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*longrunningpb.Operation,nextPageTokenstring,errerror)// contains filtered or unexported fields}

OperationIterator manages a stream of *longrunningpb.Operation.

func (*OperationIterator) All

func(it*OperationIterator)All()iter.Seq2[*longrunningpb.Operation,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*OperationIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*OperationIterator) PageInfo

func(it*OperationIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

OperatorIterator

typeOperatorIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Operator,nextPageTokenstring,errerror)// contains filtered or unexported fields}

OperatorIterator manages a stream of *visionaipb.Operator.

func (*OperatorIterator) All

func(it*OperatorIterator)All()iter.Seq2[*visionaipb.Operator,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*OperatorIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*OperatorIterator) PageInfo

func(it*OperatorIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

ProcessIterator

typeProcessIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Process,nextPageTokenstring,errerror)// contains filtered or unexported fields}

ProcessIterator manages a stream of *visionaipb.Process.

func (*ProcessIterator) All

func(it*ProcessIterator)All()iter.Seq2[*visionaipb.Process,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*ProcessIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*ProcessIterator) PageInfo

func(it*ProcessIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

ProcessorIterator

typeProcessorIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Processor,nextPageTokenstring,errerror)// contains filtered or unexported fields}

ProcessorIterator manages a stream of *visionaipb.Processor.

func (*ProcessorIterator) All

func(it*ProcessorIterator)All()iter.Seq2[*visionaipb.Processor,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*ProcessorIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*ProcessorIterator) PageInfo

func(it*ProcessorIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

RemoveApplicationStreamInputOperation

typeRemoveApplicationStreamInputOperationstruct{// contains filtered or unexported fields}

RemoveApplicationStreamInputOperation manages a long-running operation from RemoveApplicationStreamInput.

func (*RemoveApplicationStreamInputOperation) Done

Done reports whether the long-running operation has completed.

func (*RemoveApplicationStreamInputOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*RemoveApplicationStreamInputOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*RemoveApplicationStreamInputOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*RemoveApplicationStreamInputOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

RemoveIndexAssetOperation

typeRemoveIndexAssetOperationstruct{// contains filtered or unexported fields}

RemoveIndexAssetOperation manages a long-running operation from RemoveIndexAsset.

func (*RemoveIndexAssetOperation) Done

Done reports whether the long-running operation has completed.

func (*RemoveIndexAssetOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*RemoveIndexAssetOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*RemoveIndexAssetOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*RemoveIndexAssetOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

SearchConfigIterator

typeSearchConfigIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.SearchConfig,nextPageTokenstring,errerror)// contains filtered or unexported fields}

SearchConfigIterator manages a stream of *visionaipb.SearchConfig.

func (*SearchConfigIterator) All

func(it*SearchConfigIterator)All()iter.Seq2[*visionaipb.SearchConfig,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*SearchConfigIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*SearchConfigIterator) PageInfo

func(it*SearchConfigIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

SearchHypernymIterator

typeSearchHypernymIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.SearchHypernym,nextPageTokenstring,errerror)// contains filtered or unexported fields}

SearchHypernymIterator manages a stream of *visionaipb.SearchHypernym.

func (*SearchHypernymIterator) All

func(it*SearchHypernymIterator)All()iter.Seq2[*visionaipb.SearchHypernym,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*SearchHypernymIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*SearchHypernymIterator) PageInfo

func(it*SearchHypernymIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

SearchResultItemIterator

typeSearchResultItemIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.SearchResultItem,nextPageTokenstring,errerror)// contains filtered or unexported fields}

SearchResultItemIterator manages a stream of *visionaipb.SearchResultItem.

func (*SearchResultItemIterator) All

func(it*SearchResultItemIterator)All()iter.Seq2[*visionaipb.SearchResultItem,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*SearchResultItemIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*SearchResultItemIterator) PageInfo

func(it*SearchResultItemIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

SeriesIterator

typeSeriesIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Series,nextPageTokenstring,errerror)// contains filtered or unexported fields}

SeriesIterator manages a stream of *visionaipb.Series.

func (*SeriesIterator) All

func(it*SeriesIterator)All()iter.Seq2[*visionaipb.Series,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*SeriesIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*SeriesIterator) PageInfo

func(it*SeriesIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

StreamIterator

typeStreamIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*visionaipb.Stream,nextPageTokenstring,errerror)// contains filtered or unexported fields}

StreamIterator manages a stream of *visionaipb.Stream.

func (*StreamIterator) All

func(it*StreamIterator)All()iter.Seq2[*visionaipb.Stream,error]

All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.

func (*StreamIterator) Next

Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.

func (*StreamIterator) PageInfo

func(it*StreamIterator)PageInfo()*iterator.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.

StreamingCallOptions

typeStreamingCallOptionsstruct{SendPackets[]gax.CallOptionReceivePackets[]gax.CallOptionReceiveEvents[]gax.CallOptionAcquireLease[]gax.CallOptionRenewLease[]gax.CallOptionReleaseLease[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}

StreamingCallOptions contains the retry settings for each method of StreamingClient.

StreamingClient

typeStreamingClientstruct{// The call options for this service.CallOptions*StreamingCallOptions// contains filtered or unexported fields}

StreamingClient is a client for interacting with Vision AI API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Streaming service for receiving and sending packets.

func NewStreamingClient

funcNewStreamingClient(ctxcontext.Context,opts...option.ClientOption)(*StreamingClient,error)

NewStreamingClient creates a new streaming service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.

Streaming service for receiving and sending packets.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func NewStreamingRESTClient

funcNewStreamingRESTClient(ctxcontext.Context,opts...option.ClientOption)(*StreamingClient,error)

NewStreamingRESTClient creates a new streaming service rest client.

Streaming service for receiving and sending packets.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func (*StreamingClient) AcquireLease

AcquireLease acquireLease acquires a lease.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.AcquireLeaseRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#AcquireLeaseRequest.}resp,err:=c.AcquireLease(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamingClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*StreamingClient) Close

func(c*StreamingClient)Close()error

Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.

func (*StreamingClient) Connection (deprecated)

func(c*StreamingClient)Connection()*grpc.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.

func (*StreamingClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*StreamingClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamingClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Examples

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}
all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*StreamingClient) ReceiveEvents

ReceiveEvents receive events given the stream name.

This method is not supported for the REST transport.

Example

packagemainimport("context""io"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()stream,err:=c.ReceiveEvents(ctx)iferr!=nil{// TODO: Handle error.}gofunc(){reqs:=[]*visionaipb.ReceiveEventsRequest{// TODO: Create requests.}for_,req:=rangereqs{iferr:=stream.Send(req);err!=nil{// TODO: Handle error.}}stream.CloseSend()}()for{resp,err:=stream.Recv()iferr==io.EOF{break}iferr!=nil{// TODO: handle error.}// TODO: Use resp._=resp}}

func (*StreamingClient) ReceivePackets

ReceivePackets receive packets from the series.

This method is not supported for the REST transport.

Example

packagemainimport("context""io"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()stream,err:=c.ReceivePackets(ctx)iferr!=nil{// TODO: Handle error.}gofunc(){reqs:=[]*visionaipb.ReceivePacketsRequest{// TODO: Create requests.}for_,req:=rangereqs{iferr:=stream.Send(req);err!=nil{// TODO: Handle error.}}stream.CloseSend()}()for{resp,err:=stream.Recv()iferr==io.EOF{break}iferr!=nil{// TODO: handle error.}// TODO: Use resp._=resp}}

func (*StreamingClient) ReleaseLease

ReleaseLease rleaseLease releases a lease.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ReleaseLeaseRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ReleaseLeaseRequest.}resp,err:=c.ReleaseLease(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamingClient) RenewLease

RenewLease renewLease renews a lease.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.RenewLeaseRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#RenewLeaseRequest.}resp,err:=c.RenewLease(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamingClient) SendPackets

SendPackets send packets to the series.

This method is not supported for the REST transport.

Example

packagemainimport("context""io"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamingClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()stream,err:=c.SendPackets(ctx)iferr!=nil{// TODO: Handle error.}gofunc(){reqs:=[]*visionaipb.SendPacketsRequest{// TODO: Create requests.}for_,req:=rangereqs{iferr:=stream.Send(req);err!=nil{// TODO: Handle error.}}stream.CloseSend()}()for{resp,err:=stream.Recv()iferr==io.EOF{break}iferr!=nil{// TODO: handle error.}// TODO: Use resp._=resp}}

StreamsCallOptions

typeStreamsCallOptionsstruct{ListClusters[]gax.CallOptionGetCluster[]gax.CallOptionCreateCluster[]gax.CallOptionUpdateCluster[]gax.CallOptionDeleteCluster[]gax.CallOptionListStreams[]gax.CallOptionGetStream[]gax.CallOptionCreateStream[]gax.CallOptionUpdateStream[]gax.CallOptionDeleteStream[]gax.CallOptionGetStreamThumbnail[]gax.CallOptionGenerateStreamHlsToken[]gax.CallOptionListEvents[]gax.CallOptionGetEvent[]gax.CallOptionCreateEvent[]gax.CallOptionUpdateEvent[]gax.CallOptionDeleteEvent[]gax.CallOptionListSeries[]gax.CallOptionGetSeries[]gax.CallOptionCreateSeries[]gax.CallOptionUpdateSeries[]gax.CallOptionDeleteSeries[]gax.CallOptionMaterializeChannel[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}

StreamsCallOptions contains the retry settings for each method of StreamsClient.

StreamsClient

typeStreamsClientstruct{// The call options for this service.CallOptions*StreamsCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}

StreamsClient is a client for interacting with Vision AI API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service describing handlers for resources.Vision API and Vision AI API are two independent APIs developed by the sameteam. Vision API is for people to annotate their image while Vision AI is ane2e solution for customer to build their own computer vision application.

func NewStreamsClient

funcNewStreamsClient(ctxcontext.Context,opts...option.ClientOption)(*StreamsClient,error)

NewStreamsClient creates a new streams service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.

Service describing handlers for resources.Vision API and Vision AI API are two independent APIs developed by the sameteam. Vision API is for people to annotate their image while Vision AI is ane2e solution for customer to build their own computer vision application.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func NewStreamsRESTClient

funcNewStreamsRESTClient(ctxcontext.Context,opts...option.ClientOption)(*StreamsClient,error)

NewStreamsRESTClient creates a new streams service rest client.

Service describing handlers for resources.Vision API and Vision AI API are two independent APIs developed by the sameteam. Vision API is for people to annotate their image while Vision AI is ane2e solution for customer to build their own computer vision application.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func (*StreamsClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*StreamsClient) Close

func(c*StreamsClient)Close()error

Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.

func (*StreamsClient) Connection (deprecated)

func(c*StreamsClient)Connection()*grpc.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.

func (*StreamsClient) CreateCluster

CreateCluster creates a new Cluster in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateClusterRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateClusterRequest.}op,err:=c.CreateCluster(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) CreateClusterOperation

func(c*StreamsClient)CreateClusterOperation(namestring)*CreateClusterOperation

CreateClusterOperation returns a new CreateClusterOperation from a given name.The name must be that of a previously created CreateClusterOperation, possibly from a different process.

func (*StreamsClient) CreateEvent

CreateEvent creates a new Event in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateEventRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateEventRequest.}op,err:=c.CreateEvent(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) CreateEventOperation

func(c*StreamsClient)CreateEventOperation(namestring)*CreateEventOperation

CreateEventOperation returns a new CreateEventOperation from a given name.The name must be that of a previously created CreateEventOperation, possibly from a different process.

func (*StreamsClient) CreateSeries

CreateSeries creates a new Series in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateSeriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateSeriesRequest.}op,err:=c.CreateSeries(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) CreateSeriesOperation

func(c*StreamsClient)CreateSeriesOperation(namestring)*CreateSeriesOperation

CreateSeriesOperation returns a new CreateSeriesOperation from a given name.The name must be that of a previously created CreateSeriesOperation, possibly from a different process.

func (*StreamsClient) CreateStream

CreateStream creates a new Stream in a given project and location.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateStreamRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateStreamRequest.}op,err:=c.CreateStream(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) CreateStreamOperation

func(c*StreamsClient)CreateStreamOperation(namestring)*CreateStreamOperation

CreateStreamOperation returns a new CreateStreamOperation from a given name.The name must be that of a previously created CreateStreamOperation, possibly from a different process.

func (*StreamsClient) DeleteCluster

DeleteCluster deletes a single Cluster.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteClusterRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteClusterRequest.}op,err:=c.DeleteCluster(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*StreamsClient) DeleteClusterOperation

func(c*StreamsClient)DeleteClusterOperation(namestring)*DeleteClusterOperation

DeleteClusterOperation returns a new DeleteClusterOperation from a given name.The name must be that of a previously created DeleteClusterOperation, possibly from a different process.

func (*StreamsClient) DeleteEvent

DeleteEvent deletes a single Event.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteEventRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteEventRequest.}op,err:=c.DeleteEvent(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*StreamsClient) DeleteEventOperation

func(c*StreamsClient)DeleteEventOperation(namestring)*DeleteEventOperation

DeleteEventOperation returns a new DeleteEventOperation from a given name.The name must be that of a previously created DeleteEventOperation, possibly from a different process.

func (*StreamsClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*StreamsClient) DeleteSeries

DeleteSeries deletes a single Series.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteSeriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteSeriesRequest.}op,err:=c.DeleteSeries(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*StreamsClient) DeleteSeriesOperation

func(c*StreamsClient)DeleteSeriesOperation(namestring)*DeleteSeriesOperation

DeleteSeriesOperation returns a new DeleteSeriesOperation from a given name.The name must be that of a previously created DeleteSeriesOperation, possibly from a different process.

func (*StreamsClient) DeleteStream

DeleteStream deletes a single Stream.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteStreamRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteStreamRequest.}op,err:=c.DeleteStream(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*StreamsClient) DeleteStreamOperation

func(c*StreamsClient)DeleteStreamOperation(namestring)*DeleteStreamOperation

DeleteStreamOperation returns a new DeleteStreamOperation from a given name.The name must be that of a previously created DeleteStreamOperation, possibly from a different process.

func (*StreamsClient) GenerateStreamHlsToken

GenerateStreamHlsToken generate the JWT auth token required to get the stream HLS contents.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GenerateStreamHlsTokenRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GenerateStreamHlsTokenRequest.}resp,err:=c.GenerateStreamHlsToken(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) GetCluster

GetCluster gets details of a single Cluster.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetClusterRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetClusterRequest.}resp,err:=c.GetCluster(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) GetEvent

GetEvent gets details of a single Event.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetEventRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetEventRequest.}resp,err:=c.GetEvent(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) GetSeries

GetSeries gets details of a single Series.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetSeriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetSeriesRequest.}resp,err:=c.GetSeries(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) GetStream

GetStream gets details of a single Stream.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetStreamRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetStreamRequest.}resp,err:=c.GetStream(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) GetStreamThumbnail

GetStreamThumbnail gets the thumbnail (image snapshot) of a single Stream.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetStreamThumbnailRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetStreamThumbnailRequest.}op,err:=c.GetStreamThumbnail(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) GetStreamThumbnailOperation

func(c*StreamsClient)GetStreamThumbnailOperation(namestring)*GetStreamThumbnailOperation

GetStreamThumbnailOperation returns a new GetStreamThumbnailOperation from a given name.The name must be that of a previously created GetStreamThumbnailOperation, possibly from a different process.

func (*StreamsClient) ListClusters

ListClusters lists Clusters in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListClustersRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListClustersRequest.}it:=c.ListClusters(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListClustersResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListClustersRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListClustersRequest.}forresp,err:=rangec.ListClusters(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*StreamsClient) ListEvents

ListEvents lists Events in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListEventsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListEventsRequest.}it:=c.ListEvents(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListEventsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListEventsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListEventsRequest.}forresp,err:=rangec.ListEvents(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*StreamsClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Examples

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}
all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*StreamsClient) ListSeries

ListSeries lists Series in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListSeriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListSeriesRequest.}it:=c.ListSeries(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListSeriesResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListSeriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListSeriesRequest.}forresp,err:=rangec.ListSeries(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*StreamsClient) ListStreams

ListStreams lists Streams in a given project and location.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListStreamsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListStreamsRequest.}it:=c.ListStreams(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListStreamsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListStreamsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListStreamsRequest.}forresp,err:=rangec.ListStreams(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*StreamsClient) MaterializeChannel

MaterializeChannel materialize a channel.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.MaterializeChannelRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#MaterializeChannelRequest.}op,err:=c.MaterializeChannel(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) MaterializeChannelOperation

func(c*StreamsClient)MaterializeChannelOperation(namestring)*MaterializeChannelOperation

MaterializeChannelOperation returns a new MaterializeChannelOperation from a given name.The name must be that of a previously created MaterializeChannelOperation, possibly from a different process.

func (*StreamsClient) UpdateCluster

UpdateCluster updates the parameters of a single Cluster.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateClusterRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateClusterRequest.}op,err:=c.UpdateCluster(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) UpdateClusterOperation

func(c*StreamsClient)UpdateClusterOperation(namestring)*UpdateClusterOperation

UpdateClusterOperation returns a new UpdateClusterOperation from a given name.The name must be that of a previously created UpdateClusterOperation, possibly from a different process.

func (*StreamsClient) UpdateEvent

UpdateEvent updates the parameters of a single Event.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateEventRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateEventRequest.}op,err:=c.UpdateEvent(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) UpdateEventOperation

func(c*StreamsClient)UpdateEventOperation(namestring)*UpdateEventOperation

UpdateEventOperation returns a new UpdateEventOperation from a given name.The name must be that of a previously created UpdateEventOperation, possibly from a different process.

func (*StreamsClient) UpdateSeries

UpdateSeries updates the parameters of a single Event.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateSeriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateSeriesRequest.}op,err:=c.UpdateSeries(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) UpdateSeriesOperation

func(c*StreamsClient)UpdateSeriesOperation(namestring)*UpdateSeriesOperation

UpdateSeriesOperation returns a new UpdateSeriesOperation from a given name.The name must be that of a previously created UpdateSeriesOperation, possibly from a different process.

func (*StreamsClient) UpdateStream

UpdateStream updates the parameters of a single Stream.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewStreamsClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateStreamRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateStreamRequest.}op,err:=c.UpdateStream(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*StreamsClient) UpdateStreamOperation

func(c*StreamsClient)UpdateStreamOperation(namestring)*UpdateStreamOperation

UpdateStreamOperation returns a new UpdateStreamOperation from a given name.The name must be that of a previously created UpdateStreamOperation, possibly from a different process.

UndeployApplicationOperation

typeUndeployApplicationOperationstruct{// contains filtered or unexported fields}

UndeployApplicationOperation manages a long-running operation from UndeployApplication.

func (*UndeployApplicationOperation) Done

Done reports whether the long-running operation has completed.

func (*UndeployApplicationOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UndeployApplicationOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UndeployApplicationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UndeployApplicationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UndeployIndexOperation

typeUndeployIndexOperationstruct{// contains filtered or unexported fields}

UndeployIndexOperation manages a long-running operation from UndeployIndex.

func (*UndeployIndexOperation) Done

Done reports whether the long-running operation has completed.

func (*UndeployIndexOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UndeployIndexOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UndeployIndexOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UndeployIndexOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateAnalysisOperation

typeUpdateAnalysisOperationstruct{// contains filtered or unexported fields}

UpdateAnalysisOperation manages a long-running operation from UpdateAnalysis.

func (*UpdateAnalysisOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateAnalysisOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateAnalysisOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateAnalysisOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateAnalysisOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateApplicationInstancesOperation

typeUpdateApplicationInstancesOperationstruct{// contains filtered or unexported fields}

UpdateApplicationInstancesOperation manages a long-running operation from UpdateApplicationInstances.

func (*UpdateApplicationInstancesOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateApplicationInstancesOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateApplicationInstancesOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateApplicationInstancesOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateApplicationInstancesOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateApplicationOperation

typeUpdateApplicationOperationstruct{// contains filtered or unexported fields}

UpdateApplicationOperation manages a long-running operation from UpdateApplication.

func (*UpdateApplicationOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateApplicationOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateApplicationOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateApplicationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateApplicationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateApplicationStreamInputOperation

typeUpdateApplicationStreamInputOperationstruct{// contains filtered or unexported fields}

UpdateApplicationStreamInputOperation manages a long-running operation from UpdateApplicationStreamInput.

func (*UpdateApplicationStreamInputOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateApplicationStreamInputOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateApplicationStreamInputOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateApplicationStreamInputOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateApplicationStreamInputOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateClusterOperation

typeUpdateClusterOperationstruct{// contains filtered or unexported fields}

UpdateClusterOperation manages a long-running operation from UpdateCluster.

func (*UpdateClusterOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateClusterOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateClusterOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateClusterOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateClusterOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateDraftOperation

typeUpdateDraftOperationstruct{// contains filtered or unexported fields}

UpdateDraftOperation manages a long-running operation from UpdateDraft.

func (*UpdateDraftOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateDraftOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateDraftOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateDraftOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateDraftOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateEventOperation

typeUpdateEventOperationstruct{// contains filtered or unexported fields}

UpdateEventOperation manages a long-running operation from UpdateEvent.

func (*UpdateEventOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateEventOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateEventOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateEventOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateEventOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateIndexEndpointOperation

typeUpdateIndexEndpointOperationstruct{// contains filtered or unexported fields}

UpdateIndexEndpointOperation manages a long-running operation from UpdateIndexEndpoint.

func (*UpdateIndexEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateIndexEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateIndexEndpointOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateIndexEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateIndexEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateIndexOperation

typeUpdateIndexOperationstruct{// contains filtered or unexported fields}

UpdateIndexOperation manages a long-running operation from UpdateIndex.

func (*UpdateIndexOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateIndexOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateIndexOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateIndexOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateIndexOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateOperatorOperation

typeUpdateOperatorOperationstruct{// contains filtered or unexported fields}

UpdateOperatorOperation manages a long-running operation from UpdateOperator.

func (*UpdateOperatorOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateOperatorOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateOperatorOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateOperatorOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateOperatorOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateProcessOperation

typeUpdateProcessOperationstruct{// contains filtered or unexported fields}

UpdateProcessOperation manages a long-running operation from UpdateProcess.

func (*UpdateProcessOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateProcessOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateProcessOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateProcessOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateProcessOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateProcessorOperation

typeUpdateProcessorOperationstruct{// contains filtered or unexported fields}

UpdateProcessorOperation manages a long-running operation from UpdateProcessor.

func (*UpdateProcessorOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateProcessorOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateProcessorOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateProcessorOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateProcessorOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateSeriesOperation

typeUpdateSeriesOperationstruct{// contains filtered or unexported fields}

UpdateSeriesOperation manages a long-running operation from UpdateSeries.

func (*UpdateSeriesOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateSeriesOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateSeriesOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateSeriesOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateSeriesOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UpdateStreamOperation

typeUpdateStreamOperationstruct{// contains filtered or unexported fields}

UpdateStreamOperation manages a long-running operation from UpdateStream.

func (*UpdateStreamOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateStreamOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateStreamOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateStreamOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateStreamOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

UploadAssetOperation

typeUploadAssetOperationstruct{// contains filtered or unexported fields}

UploadAssetOperation manages a long-running operation from UploadAsset.

func (*UploadAssetOperation) Done

Done reports whether the long-running operation has completed.

func (*UploadAssetOperation) Metadata

Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.

func (*UploadAssetOperation) Name

Name returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.

func (*UploadAssetOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UploadAssetOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

WarehouseCallOptions

typeWarehouseCallOptionsstruct{CreateAsset[]gax.CallOptionUpdateAsset[]gax.CallOptionGetAsset[]gax.CallOptionListAssets[]gax.CallOptionDeleteAsset[]gax.CallOptionUploadAsset[]gax.CallOptionGenerateRetrievalUrl[]gax.CallOptionAnalyzeAsset[]gax.CallOptionIndexAsset[]gax.CallOptionRemoveIndexAsset[]gax.CallOptionViewIndexedAssets[]gax.CallOptionCreateIndex[]gax.CallOptionUpdateIndex[]gax.CallOptionGetIndex[]gax.CallOptionListIndexes[]gax.CallOptionDeleteIndex[]gax.CallOptionCreateCorpus[]gax.CallOptionGetCorpus[]gax.CallOptionUpdateCorpus[]gax.CallOptionListCorpora[]gax.CallOptionDeleteCorpus[]gax.CallOptionAnalyzeCorpus[]gax.CallOptionCreateDataSchema[]gax.CallOptionUpdateDataSchema[]gax.CallOptionGetDataSchema[]gax.CallOptionDeleteDataSchema[]gax.CallOptionListDataSchemas[]gax.CallOptionCreateAnnotation[]gax.CallOptionGetAnnotation[]gax.CallOptionListAnnotations[]gax.CallOptionUpdateAnnotation[]gax.CallOptionDeleteAnnotation[]gax.CallOptionIngestAsset[]gax.CallOptionClipAsset[]gax.CallOptionGenerateHlsUri[]gax.CallOptionImportAssets[]gax.CallOptionCreateSearchConfig[]gax.CallOptionUpdateSearchConfig[]gax.CallOptionGetSearchConfig[]gax.CallOptionDeleteSearchConfig[]gax.CallOptionListSearchConfigs[]gax.CallOptionCreateSearchHypernym[]gax.CallOptionUpdateSearchHypernym[]gax.CallOptionGetSearchHypernym[]gax.CallOptionDeleteSearchHypernym[]gax.CallOptionListSearchHypernyms[]gax.CallOptionSearchAssets[]gax.CallOptionSearchIndexEndpoint[]gax.CallOptionCreateIndexEndpoint[]gax.CallOptionGetIndexEndpoint[]gax.CallOptionListIndexEndpoints[]gax.CallOptionUpdateIndexEndpoint[]gax.CallOptionDeleteIndexEndpoint[]gax.CallOptionDeployIndex[]gax.CallOptionUndeployIndex[]gax.CallOptionCreateCollection[]gax.CallOptionDeleteCollection[]gax.CallOptionGetCollection[]gax.CallOptionUpdateCollection[]gax.CallOptionListCollections[]gax.CallOptionAddCollectionItem[]gax.CallOptionRemoveCollectionItem[]gax.CallOptionViewCollectionItems[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}

WarehouseCallOptions contains the retry settings for each method of WarehouseClient.

WarehouseClient

typeWarehouseClientstruct{// The call options for this service.CallOptions*WarehouseCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}

WarehouseClient is a client for interacting with Vision AI API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service that manages media content + metadata for streaming.

func NewWarehouseClient

funcNewWarehouseClient(ctxcontext.Context,opts...option.ClientOption)(*WarehouseClient,error)

NewWarehouseClient creates a new warehouse client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.

Service that manages media content + metadata for streaming.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func NewWarehouseRESTClient

funcNewWarehouseRESTClient(ctxcontext.Context,opts...option.ClientOption)(*WarehouseClient,error)

NewWarehouseRESTClient creates a new warehouse rest client.

Service that manages media content + metadata for streaming.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}

func (*WarehouseClient) AddCollectionItem

AddCollectionItem adds an item into a Collection.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.AddCollectionItemRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#AddCollectionItemRequest.}resp,err:=c.AddCollectionItem(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) AnalyzeAsset

AnalyzeAsset analyze asset to power search capability.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.AnalyzeAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#AnalyzeAssetRequest.}op,err:=c.AnalyzeAsset(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) AnalyzeAssetOperation

func(c*WarehouseClient)AnalyzeAssetOperation(namestring)*AnalyzeAssetOperation

AnalyzeAssetOperation returns a new AnalyzeAssetOperation from a given name.The name must be that of a previously created AnalyzeAssetOperation, possibly from a different process.

func (*WarehouseClient) AnalyzeCorpus

AnalyzeCorpus analyzes a corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.AnalyzeCorpusRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#AnalyzeCorpusRequest.}op,err:=c.AnalyzeCorpus(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) AnalyzeCorpusOperation

func(c*WarehouseClient)AnalyzeCorpusOperation(namestring)*AnalyzeCorpusOperation

AnalyzeCorpusOperation returns a new AnalyzeCorpusOperation from a given name.The name must be that of a previously created AnalyzeCorpusOperation, possibly from a different process.

func (*WarehouseClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) ClipAsset

ClipAsset supported by STREAM_VIDEO corpus type.Generates clips for downloading. The api takes in a time range, andgenerates a clip of the first content available after start_time andbefore end_time, which may overflow beyond these bounds.Returned clips are truncated if the total size of the clips are largerthan 100MB.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ClipAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ClipAssetRequest.}resp,err:=c.ClipAsset(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) Close

func(c*WarehouseClient)Close()error

Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.

func (*WarehouseClient) Connection (deprecated)

func(c*WarehouseClient)Connection()*grpc.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.

func (*WarehouseClient) CreateAnnotation

CreateAnnotation creates annotation inside asset.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateAnnotationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateAnnotationRequest.}resp,err:=c.CreateAnnotation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateAsset

CreateAsset creates an asset inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateAssetRequest.}resp,err:=c.CreateAsset(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateCollection

CreateCollection creates a collection.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateCollectionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateCollectionRequest.}op,err:=c.CreateCollection(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateCollectionOperation

func(c*WarehouseClient)CreateCollectionOperation(namestring)*CreateCollectionOperation

CreateCollectionOperation returns a new CreateCollectionOperation from a given name.The name must be that of a previously created CreateCollectionOperation, possibly from a different process.

func (*WarehouseClient) CreateCorpus

CreateCorpus creates a corpus inside a project.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateCorpusRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateCorpusRequest.}op,err:=c.CreateCorpus(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateCorpusOperation

func(c*WarehouseClient)CreateCorpusOperation(namestring)*CreateCorpusOperation

CreateCorpusOperation returns a new CreateCorpusOperation from a given name.The name must be that of a previously created CreateCorpusOperation, possibly from a different process.

func (*WarehouseClient) CreateDataSchema

CreateDataSchema creates data schema inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateDataSchemaRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateDataSchemaRequest.}resp,err:=c.CreateDataSchema(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateIndex

CreateIndex creates an Index under the corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateIndexRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateIndexRequest.}op,err:=c.CreateIndex(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateIndexEndpoint

CreateIndexEndpoint creates an IndexEndpoint.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateIndexEndpointRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateIndexEndpointRequest.}op,err:=c.CreateIndexEndpoint(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateIndexEndpointOperation

func(c*WarehouseClient)CreateIndexEndpointOperation(namestring)*CreateIndexEndpointOperation

CreateIndexEndpointOperation returns a new CreateIndexEndpointOperation from a given name.The name must be that of a previously created CreateIndexEndpointOperation, possibly from a different process.

func (*WarehouseClient) CreateIndexOperation

func(c*WarehouseClient)CreateIndexOperation(namestring)*CreateIndexOperation

CreateIndexOperation returns a new CreateIndexOperation from a given name.The name must be that of a previously created CreateIndexOperation, possibly from a different process.

func (*WarehouseClient) CreateSearchConfig

CreateSearchConfig creates a search configuration inside a corpus.

Please follow the rules below to create a valid CreateSearchConfigRequest.— General Rules —

Request.search_config_id must not be associated with an existingSearchConfig.

Request must contain at least one non-empty search_criteria_property orfacet_property.

mapped_fields must not be empty, and must map to existing UGA keys.

All mapped_fields must be of the same type.

All mapped_fields must share the same granularity.

All mapped_fields must share the same semantic SearchConfig matchoptions.For property-specific rules, please reference the comments forFacetProperty and SearchCriteriaProperty.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateSearchConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateSearchConfigRequest.}resp,err:=c.CreateSearchConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) CreateSearchHypernym

CreateSearchHypernym creates a SearchHypernym inside a corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.CreateSearchHypernymRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#CreateSearchHypernymRequest.}resp,err:=c.CreateSearchHypernym(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) DeleteAnnotation

DeleteAnnotation deletes annotation inside asset.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteAnnotationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteAnnotationRequest.}err=c.DeleteAnnotation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteAsset

DeleteAsset deletes asset inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteAssetRequest.}op,err:=c.DeleteAsset(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteAssetOperation

func(c*WarehouseClient)DeleteAssetOperation(namestring)*DeleteAssetOperation

DeleteAssetOperation returns a new DeleteAssetOperation from a given name.The name must be that of a previously created DeleteAssetOperation, possibly from a different process.

func (*WarehouseClient) DeleteCollection

DeleteCollection deletes a collection.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteCollectionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteCollectionRequest.}op,err:=c.DeleteCollection(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteCollectionOperation

func(c*WarehouseClient)DeleteCollectionOperation(namestring)*DeleteCollectionOperation

DeleteCollectionOperation returns a new DeleteCollectionOperation from a given name.The name must be that of a previously created DeleteCollectionOperation, possibly from a different process.

func (*WarehouseClient) DeleteCorpus

DeleteCorpus deletes a corpus only if its empty.Returns empty response.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteCorpusRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteCorpusRequest.}err=c.DeleteCorpus(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteDataSchema

DeleteDataSchema deletes data schema inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteDataSchemaRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteDataSchemaRequest.}err=c.DeleteDataSchema(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteIndex

DeleteIndex delete a single Index. In order to delete an index, the caller mustmake sure that it is not deployed to any index endpoint.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteIndexRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteIndexRequest.}op,err:=c.DeleteIndex(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteIndexEndpoint

DeleteIndexEndpoint deletes an IndexEndpoint.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteIndexEndpointRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteIndexEndpointRequest.}op,err:=c.DeleteIndexEndpoint(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteIndexEndpointOperation

func(c*WarehouseClient)DeleteIndexEndpointOperation(namestring)*DeleteIndexEndpointOperation

DeleteIndexEndpointOperation returns a new DeleteIndexEndpointOperation from a given name.The name must be that of a previously created DeleteIndexEndpointOperation, possibly from a different process.

func (*WarehouseClient) DeleteIndexOperation

func(c*WarehouseClient)DeleteIndexOperation(namestring)*DeleteIndexOperation

DeleteIndexOperation returns a new DeleteIndexOperation from a given name.The name must be that of a previously created DeleteIndexOperation, possibly from a different process.

func (*WarehouseClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteSearchConfig

DeleteSearchConfig deletes a search configuration inside a corpus.

For a DeleteSearchConfigRequest to be valid,Request.search_configuration.name must already exist.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteSearchConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteSearchConfigRequest.}err=c.DeleteSearchConfig(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeleteSearchHypernym

DeleteSearchHypernym deletes a SearchHypernym inside a corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeleteSearchHypernymRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeleteSearchHypernymRequest.}err=c.DeleteSearchHypernym(ctx,req)iferr!=nil{// TODO: Handle error.}}

func (*WarehouseClient) DeployIndex

DeployIndex deploys an Index to IndexEndpoint.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.DeployIndexRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#DeployIndexRequest.}op,err:=c.DeployIndex(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) DeployIndexOperation

func(c*WarehouseClient)DeployIndexOperation(namestring)*DeployIndexOperation

DeployIndexOperation returns a new DeployIndexOperation from a given name.The name must be that of a previously created DeployIndexOperation, possibly from a different process.

func (*WarehouseClient) GenerateHlsUri

GenerateHlsUri generates a uri for an HLS manifest. The api takes in a collection of timeranges, and generates a URI for an HLS manifest that covers all therequested time ranges.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GenerateHlsUriRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GenerateHlsUriRequest.}resp,err:=c.GenerateHlsUri(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GenerateRetrievalUrl

GenerateRetrievalUrl generates a signed url for downloading the asset.For video warehouse, please see comment of UploadAsset about how to allowretrieval of cloud storage files in a different project.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GenerateRetrievalUrlRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GenerateRetrievalUrlRequest.}resp,err:=c.GenerateRetrievalUrl(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetAnnotation

GetAnnotation reads annotation inside asset.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetAnnotationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetAnnotationRequest.}resp,err:=c.GetAnnotation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetAsset

GetAsset reads an asset inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetAssetRequest.}resp,err:=c.GetAsset(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetCollection

GetCollection gets a collection.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetCollectionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetCollectionRequest.}resp,err:=c.GetCollection(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetCorpus

GetCorpus gets corpus details inside a project.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetCorpusRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetCorpusRequest.}resp,err:=c.GetCorpus(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetDataSchema

GetDataSchema gets data schema inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetDataSchemaRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetDataSchemaRequest.}resp,err:=c.GetDataSchema(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetIndex

GetIndex gets the details of a single Index under a Corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetIndexRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetIndexRequest.}resp,err:=c.GetIndex(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetIndexEndpoint

GetIndexEndpoint gets an IndexEndpoint.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetIndexEndpointRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetIndexEndpointRequest.}resp,err:=c.GetIndexEndpoint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetSearchConfig

GetSearchConfig gets a search configuration inside a corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetSearchConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetSearchConfigRequest.}resp,err:=c.GetSearchConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) GetSearchHypernym

GetSearchHypernym gets a SearchHypernym inside a corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.GetSearchHypernymRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#GetSearchHypernymRequest.}resp,err:=c.GetSearchHypernym(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) ImportAssets

ImportAssets imports assets (images plus annotations) from a meta file on cloud storage.Each row in the meta file is corresponding to an image (specified by acloud storage uri) and its annotations.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ImportAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ImportAssetsRequest.}op,err:=c.ImportAssets(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) ImportAssetsOperation

func(c*WarehouseClient)ImportAssetsOperation(namestring)*ImportAssetsOperation

ImportAssetsOperation returns a new ImportAssetsOperation from a given name.The name must be that of a previously created ImportAssetsOperation, possibly from a different process.

func (*WarehouseClient) IndexAsset

IndexAsset index one asset for search.Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.IndexAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#IndexAssetRequest.}op,err:=c.IndexAsset(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) IndexAssetOperation

func(c*WarehouseClient)IndexAssetOperation(namestring)*IndexAssetOperation

IndexAssetOperation returns a new IndexAssetOperation from a given name.The name must be that of a previously created IndexAssetOperation, possibly from a different process.

func (*WarehouseClient) IngestAsset

IngestAsset ingests data for the asset. It is not allowed to ingest a data chunk whichis already expired according to TTL.This method is only available via the gRPC API (not HTTP sincebi-directional streaming is not supported via HTTP).

This method is not supported for the REST transport.

Example

packagemainimport("context""io"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()stream,err:=c.IngestAsset(ctx)iferr!=nil{// TODO: Handle error.}gofunc(){reqs:=[]*visionaipb.IngestAssetRequest{// TODO: Create requests.}for_,req:=rangereqs{iferr:=stream.Send(req);err!=nil{// TODO: Handle error.}}stream.CloseSend()}()for{resp,err:=stream.Recv()iferr==io.EOF{break}iferr!=nil{// TODO: handle error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListAnnotations

ListAnnotations lists a list of annotations inside asset.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListAnnotationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListAnnotationsRequest.}it:=c.ListAnnotations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListAnnotationsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListAnnotationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListAnnotationsRequest.}forresp,err:=rangec.ListAnnotations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListAssets

ListAssets lists an list of assets inside corpus.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListAssetsRequest.}it:=c.ListAssets(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListAssetsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListAssetsRequest.}forresp,err:=rangec.ListAssets(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListCollections

ListCollections lists collections inside a corpus.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListCollectionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListCollectionsRequest.}it:=c.ListCollections(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListCollectionsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListCollectionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListCollectionsRequest.}forresp,err:=rangec.ListCollections(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListCorpora

ListCorpora lists all corpora in a project.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListCorporaRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListCorporaRequest.}it:=c.ListCorpora(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListCorporaResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListCorporaRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListCorporaRequest.}forresp,err:=rangec.ListCorpora(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListDataSchemas

ListDataSchemas lists a list of data schemas inside corpus.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListDataSchemasRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListDataSchemasRequest.}it:=c.ListDataSchemas(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListDataSchemasResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListDataSchemasRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListDataSchemasRequest.}forresp,err:=rangec.ListDataSchemas(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListIndexEndpoints

ListIndexEndpoints lists all IndexEndpoints in a project.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListIndexEndpointsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListIndexEndpointsRequest.}it:=c.ListIndexEndpoints(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListIndexEndpointsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListIndexEndpointsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListIndexEndpointsRequest.}forresp,err:=rangec.ListIndexEndpoints(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListIndexes

ListIndexes list all Indexes in a given Corpus.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListIndexesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListIndexesRequest.}it:=c.ListIndexes(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListIndexesResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListIndexesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListIndexesRequest.}forresp,err:=rangec.ListIndexes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Examples

packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}
all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"visionai"cloud.google.com/go/visionai/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListSearchConfigs

ListSearchConfigs lists all search configurations inside a corpus.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListSearchConfigsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListSearchConfigsRequest.}it:=c.ListSearchConfigs(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListSearchConfigsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListSearchConfigsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListSearchConfigsRequest.}forresp,err:=rangec.ListSearchConfigs(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ListSearchHypernyms

ListSearchHypernyms lists SearchHypernyms inside a corpus.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListSearchHypernymsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListSearchHypernymsRequest.}it:=c.ListSearchHypernyms(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ListSearchHypernymsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ListSearchHypernymsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ListSearchHypernymsRequest.}forresp,err:=rangec.ListSearchHypernyms(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) RemoveCollectionItem

RemoveCollectionItem removes an item from a collection.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.RemoveCollectionItemRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#RemoveCollectionItemRequest.}resp,err:=c.RemoveCollectionItem(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) RemoveIndexAsset

RemoveIndexAsset remove one asset’s index data for search.Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.RemoveIndexAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#RemoveIndexAssetRequest.}op,err:=c.RemoveIndexAsset(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) RemoveIndexAssetOperation

func(c*WarehouseClient)RemoveIndexAssetOperation(namestring)*RemoveIndexAssetOperation

RemoveIndexAssetOperation returns a new RemoveIndexAssetOperation from a given name.The name must be that of a previously created RemoveIndexAssetOperation, possibly from a different process.

func (*WarehouseClient) SearchAssets

SearchAssets search media asset.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.SearchAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#SearchAssetsRequest.}it:=c.SearchAssets(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.SearchAssetsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.SearchAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#SearchAssetsRequest.}forresp,err:=rangec.SearchAssets(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) SearchIndexEndpoint

SearchIndexEndpoint search a deployed index endpoint (IMAGE corpus type only).

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.SearchIndexEndpointRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#SearchIndexEndpointRequest.}it:=c.SearchIndexEndpoint(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.SearchIndexEndpointResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.SearchIndexEndpointRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#SearchIndexEndpointRequest.}forresp,err:=rangec.SearchIndexEndpoint(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) UndeployIndex

UndeployIndex undeploys an Index from IndexEndpoint.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UndeployIndexRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UndeployIndexRequest.}op,err:=c.UndeployIndex(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UndeployIndexOperation

func(c*WarehouseClient)UndeployIndexOperation(namestring)*UndeployIndexOperation

UndeployIndexOperation returns a new UndeployIndexOperation from a given name.The name must be that of a previously created UndeployIndexOperation, possibly from a different process.

func (*WarehouseClient) UpdateAnnotation

UpdateAnnotation updates annotation inside asset.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateAnnotationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateAnnotationRequest.}resp,err:=c.UpdateAnnotation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateAsset

UpdateAsset updates an asset inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateAssetRequest.}resp,err:=c.UpdateAsset(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateCollection

UpdateCollection updates a collection.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateCollectionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateCollectionRequest.}resp,err:=c.UpdateCollection(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateCorpus

UpdateCorpus updates a corpus in a project.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateCorpusRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateCorpusRequest.}resp,err:=c.UpdateCorpus(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateDataSchema

UpdateDataSchema updates data schema inside corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateDataSchemaRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateDataSchemaRequest.}resp,err:=c.UpdateDataSchema(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateIndex

UpdateIndex updates an Index under the corpus.Users can perform a metadata-only update or trigger a full index rebuildwith different update_mask values.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateIndexRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateIndexRequest.}op,err:=c.UpdateIndex(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateIndexEndpoint

UpdateIndexEndpoint updates an IndexEndpoint.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateIndexEndpointRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateIndexEndpointRequest.}op,err:=c.UpdateIndexEndpoint(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateIndexEndpointOperation

func(c*WarehouseClient)UpdateIndexEndpointOperation(namestring)*UpdateIndexEndpointOperation

UpdateIndexEndpointOperation returns a new UpdateIndexEndpointOperation from a given name.The name must be that of a previously created UpdateIndexEndpointOperation, possibly from a different process.

func (*WarehouseClient) UpdateIndexOperation

func(c*WarehouseClient)UpdateIndexOperation(namestring)*UpdateIndexOperation

UpdateIndexOperation returns a new UpdateIndexOperation from a given name.The name must be that of a previously created UpdateIndexOperation, possibly from a different process.

func (*WarehouseClient) UpdateSearchConfig

UpdateSearchConfig updates a search configuration inside a corpus.

Please follow the rules below to create a valid UpdateSearchConfigRequest.— General Rules —

Request.search_configuration.name must already exist.

Request must contain at least one non-empty search_criteria_property orfacet_property.

mapped_fields must not be empty, and must map to existing UGA keys.

All mapped_fields must be of the same type.

All mapped_fields must share the same granularity.

All mapped_fields must share the same semantic SearchConfig matchoptions.For property-specific rules, please reference the comments forFacetProperty and SearchCriteriaProperty.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateSearchConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateSearchConfigRequest.}resp,err:=c.UpdateSearchConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UpdateSearchHypernym

UpdateSearchHypernym updates a SearchHypernym inside a corpus.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UpdateSearchHypernymRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UpdateSearchHypernymRequest.}resp,err:=c.UpdateSearchHypernym(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UploadAsset

UploadAsset upload asset by specifing the asset Cloud Storage uri.For video warehouse, it requires users who call this API have read accessto the cloud storage file. Once it is uploaded, it can be retrieved byGenerateRetrievalUrl API which by default, only can retrieve cloud storagefiles from the same project of the warehouse. To allow retrieval cloudstorage files that are in a separate project, it requires to find thevision ai service account (Go to IAM, check checkbox to show “IncludeGoogle-provided role grants”, search for “Cloud Vision AI Service Agent”)and grant the read access of the cloud storage files to that serviceaccount.

Example

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.UploadAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#UploadAssetRequest.}op,err:=c.UploadAsset(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}

func (*WarehouseClient) UploadAssetOperation

func(c*WarehouseClient)UploadAssetOperation(namestring)*UploadAssetOperation

UploadAssetOperation returns a new UploadAssetOperation from a given name.The name must be that of a previously created UploadAssetOperation, possibly from a different process.

func (*WarehouseClient) ViewCollectionItems

ViewCollectionItems view items inside a collection.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ViewCollectionItemsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ViewCollectionItemsRequest.}it:=c.ViewCollectionItems(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ViewCollectionItemsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ViewCollectionItemsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ViewCollectionItemsRequest.}forresp,err:=rangec.ViewCollectionItems(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

func (*WarehouseClient) ViewIndexedAssets

ViewIndexedAssets lists assets inside an index.

Examples

packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ViewIndexedAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ViewIndexedAssetsRequest.}it:=c.ViewIndexedAssets(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*visionaipb.ViewIndexedAssetsResponse)}}
all
packagemainimport("context"visionai"cloud.google.com/go/visionai/apiv1"visionaipb"cloud.google.com/go/visionai/apiv1/visionaipb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in://   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=visionai.NewWarehouseClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&visionaipb.ViewIndexedAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/visionai/apiv1/visionaipb#ViewIndexedAssetsRequest.}forresp,err:=rangec.ViewIndexedAssets(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.