Class VideoIntelligenceService.VideoIntelligenceServiceClient (2.3.0)

public class VideoIntelligenceServiceClient : ClientBase<VideoIntelligenceService.VideoIntelligenceServiceClient>

Client for VideoIntelligenceService

Inheritance

Object > ClientBase > ClientBase<VideoIntelligenceService.VideoIntelligenceServiceClient> > VideoIntelligenceService.VideoIntelligenceServiceClient

Namespace

Google.Cloud.VideoIntelligence.V1

Assembly

Google.Cloud.VideoIntelligence.V1.dll

Constructors

VideoIntelligenceServiceClient()

protected VideoIntelligenceServiceClient()

Protected parameterless constructor to allow creation of test doubles.

VideoIntelligenceServiceClient(CallInvoker)

public VideoIntelligenceServiceClient(CallInvoker callInvoker)

Creates a new client for VideoIntelligenceService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

VideoIntelligenceServiceClient(Channel)

[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public VideoIntelligenceServiceClient(Channel channel)

Creates a new client using a channel.

Parameter
NameDescription
channelGrpc.Core.Channel

The channel to use to make remote calls.

VideoIntelligenceServiceClient(ChannelBase)

public VideoIntelligenceServiceClient(ChannelBase channel)

Creates a new client for VideoIntelligenceService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

VideoIntelligenceServiceClient(ClientBase.ClientBaseConfiguration)

protected VideoIntelligenceServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AnnotateVideo(AnnotateVideoRequest, CallOptions)

public virtual Operation AnnotateVideo(AnnotateVideoRequest request, CallOptions options)

Performs asynchronous video annotation. Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains AnnotateVideoProgress (progress). Operation.response contains AnnotateVideoResponse (results).

Parameters
NameDescription
requestAnnotateVideoRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AnnotateVideo(AnnotateVideoRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation AnnotateVideo(AnnotateVideoRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Performs asynchronous video annotation. Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains AnnotateVideoProgress (progress). Operation.response contains AnnotateVideoResponse (results).

Parameters
NameDescription
requestAnnotateVideoRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

AnnotateVideoAsync(AnnotateVideoRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AnnotateVideoAsync(AnnotateVideoRequest request, CallOptions options)

Performs asynchronous video annotation. Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains AnnotateVideoProgress (progress). Operation.response contains AnnotateVideoResponse (results).

Parameters
NameDescription
requestAnnotateVideoRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

AnnotateVideoAsync(AnnotateVideoRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> AnnotateVideoAsync(AnnotateVideoRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Performs asynchronous video annotation. Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains AnnotateVideoProgress (progress). Operation.response contains AnnotateVideoResponse (results).

Parameters
NameDescription
requestAnnotateVideoRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override VideoIntelligenceService.VideoIntelligenceServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
VideoIntelligenceService.VideoIntelligenceServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.VideoIntelligence.V1.VideoIntelligenceService.VideoIntelligenceServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)