Cloud Speech-to-Text v2 API - Class Speech.SpeechClient (1.0.0-beta08)

public class Speech.SpeechClient : ClientBase<Speech.SpeechClient>

Reference documentation and code samples for the Cloud Speech-to-Text v2 API class Speech.SpeechClient.

Client for Speech

Inheritance

object > ClientBase > ClientBaseSpeechSpeechClient > Speech.SpeechClient

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

SpeechClient()

protected SpeechClient()

Protected parameterless constructor to allow creation of test doubles.

SpeechClient(CallInvoker)

public SpeechClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

SpeechClient(ChannelBase)

public SpeechClient(ChannelBase channel)

Creates a new client for Speech

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

SpeechClient(ClientBaseConfiguration)

protected SpeechClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

BatchRecognize(BatchRecognizeRequest, CallOptions)

public virtual Operation BatchRecognize(BatchRecognizeRequest request, CallOptions options)

Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.

Parameters
NameDescription
requestBatchRecognizeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

BatchRecognize(BatchRecognizeRequest, Metadata, DateTime?, CancellationToken)

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

Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.

Parameters
NameDescription
requestBatchRecognizeRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

BatchRecognizeAsync(BatchRecognizeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> BatchRecognizeAsync(BatchRecognizeRequest request, CallOptions options)

Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.

Parameters
NameDescription
requestBatchRecognizeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

BatchRecognizeAsync(BatchRecognizeRequest, Metadata, DateTime?, CancellationToken)

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

Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.

Parameters
NameDescription
requestBatchRecognizeRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

CreateCustomClass(CreateCustomClassRequest, CallOptions)

public virtual Operation CreateCustomClass(CreateCustomClassRequest request, CallOptions options)

Creates a [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestCreateCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CreateCustomClass(CreateCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Creates a [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestCreateCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

CreateCustomClassAsync(CreateCustomClassRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateCustomClassAsync(CreateCustomClassRequest request, CallOptions options)

Creates a [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestCreateCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

CreateCustomClassAsync(CreateCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Creates a [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestCreateCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

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

Returns
TypeDescription
OperationsOperationsClient

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

CreatePhraseSet(CreatePhraseSetRequest, CallOptions)

public virtual Operation CreatePhraseSet(CreatePhraseSetRequest request, CallOptions options)

Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestCreatePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CreatePhraseSet(CreatePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestCreatePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

CreatePhraseSetAsync(CreatePhraseSetRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreatePhraseSetAsync(CreatePhraseSetRequest request, CallOptions options)

Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestCreatePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

CreatePhraseSetAsync(CreatePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestCreatePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

CreateRecognizer(CreateRecognizerRequest, CallOptions)

public virtual Operation CreateRecognizer(CreateRecognizerRequest request, CallOptions options)

Creates a [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestCreateRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CreateRecognizer(CreateRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Creates a [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestCreateRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

CreateRecognizerAsync(CreateRecognizerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateRecognizerAsync(CreateRecognizerRequest request, CallOptions options)

Creates a [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestCreateRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

CreateRecognizerAsync(CreateRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Creates a [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestCreateRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

DeleteCustomClass(DeleteCustomClassRequest, CallOptions)

public virtual Operation DeleteCustomClass(DeleteCustomClassRequest request, CallOptions options)

Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestDeleteCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteCustomClass(DeleteCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestDeleteCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

DeleteCustomClassAsync(DeleteCustomClassRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteCustomClassAsync(DeleteCustomClassRequest request, CallOptions options)

Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestDeleteCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteCustomClassAsync(DeleteCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestDeleteCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

DeletePhraseSet(DeletePhraseSetRequest, CallOptions)

public virtual Operation DeletePhraseSet(DeletePhraseSetRequest request, CallOptions options)

Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestDeletePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeletePhraseSet(DeletePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestDeletePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

DeletePhraseSetAsync(DeletePhraseSetRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeletePhraseSetAsync(DeletePhraseSetRequest request, CallOptions options)

Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestDeletePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeletePhraseSetAsync(DeletePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestDeletePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

DeleteRecognizer(DeleteRecognizerRequest, CallOptions)

public virtual Operation DeleteRecognizer(DeleteRecognizerRequest request, CallOptions options)

Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestDeleteRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteRecognizer(DeleteRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestDeleteRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

DeleteRecognizerAsync(DeleteRecognizerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteRecognizerAsync(DeleteRecognizerRequest request, CallOptions options)

Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestDeleteRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteRecognizerAsync(DeleteRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestDeleteRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

GetConfig(GetConfigRequest, CallOptions)

public virtual Config GetConfig(GetConfigRequest request, CallOptions options)

Returns the requested [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestGetConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Config

The response received from the server.

GetConfig(GetConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual Config GetConfig(GetConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestGetConfigRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
Config

The response received from the server.

GetConfigAsync(GetConfigRequest, CallOptions)

public virtual AsyncUnaryCall<Config> GetConfigAsync(GetConfigRequest request, CallOptions options)

Returns the requested [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestGetConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallConfig

The call object.

GetConfigAsync(GetConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Config> GetConfigAsync(GetConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestGetConfigRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallConfig

The call object.

GetCustomClass(GetCustomClassRequest, CallOptions)

public virtual CustomClass GetCustomClass(GetCustomClassRequest request, CallOptions options)

Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestGetCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
CustomClass

The response received from the server.

GetCustomClass(GetCustomClassRequest, Metadata, DateTime?, CancellationToken)

public virtual CustomClass GetCustomClass(GetCustomClassRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestGetCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
CustomClass

The response received from the server.

GetCustomClassAsync(GetCustomClassRequest, CallOptions)

public virtual AsyncUnaryCall<CustomClass> GetCustomClassAsync(GetCustomClassRequest request, CallOptions options)

Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestGetCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallCustomClass

The call object.

GetCustomClassAsync(GetCustomClassRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<CustomClass> GetCustomClassAsync(GetCustomClassRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestGetCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallCustomClass

The call object.

GetPhraseSet(GetPhraseSetRequest, CallOptions)

public virtual PhraseSet GetPhraseSet(GetPhraseSetRequest request, CallOptions options)

Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestGetPhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
PhraseSet

The response received from the server.

GetPhraseSet(GetPhraseSetRequest, Metadata, DateTime?, CancellationToken)

public virtual PhraseSet GetPhraseSet(GetPhraseSetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestGetPhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
PhraseSet

The response received from the server.

GetPhraseSetAsync(GetPhraseSetRequest, CallOptions)

public virtual AsyncUnaryCall<PhraseSet> GetPhraseSetAsync(GetPhraseSetRequest request, CallOptions options)

Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestGetPhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPhraseSet

The call object.

GetPhraseSetAsync(GetPhraseSetRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<PhraseSet> GetPhraseSetAsync(GetPhraseSetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestGetPhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallPhraseSet

The call object.

GetRecognizer(GetRecognizerRequest, CallOptions)

public virtual Recognizer GetRecognizer(GetRecognizerRequest request, CallOptions options)

Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.

Parameters
NameDescription
requestGetRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Recognizer

The response received from the server.

GetRecognizer(GetRecognizerRequest, Metadata, DateTime?, CancellationToken)

public virtual Recognizer GetRecognizer(GetRecognizerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.

Parameters
NameDescription
requestGetRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
Recognizer

The response received from the server.

GetRecognizerAsync(GetRecognizerRequest, CallOptions)

public virtual AsyncUnaryCall<Recognizer> GetRecognizerAsync(GetRecognizerRequest request, CallOptions options)

Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.

Parameters
NameDescription
requestGetRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallRecognizer

The call object.

GetRecognizerAsync(GetRecognizerRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Recognizer> GetRecognizerAsync(GetRecognizerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.

Parameters
NameDescription
requestGetRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallRecognizer

The call object.

ListCustomClasses(ListCustomClassesRequest, CallOptions)

public virtual ListCustomClassesResponse ListCustomClasses(ListCustomClassesRequest request, CallOptions options)

Lists CustomClasses.

Parameters
NameDescription
requestListCustomClassesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListCustomClassesResponse

The response received from the server.

ListCustomClasses(ListCustomClassesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListCustomClassesResponse ListCustomClasses(ListCustomClassesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists CustomClasses.

Parameters
NameDescription
requestListCustomClassesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
ListCustomClassesResponse

The response received from the server.

ListCustomClassesAsync(ListCustomClassesRequest, CallOptions)

public virtual AsyncUnaryCall<ListCustomClassesResponse> ListCustomClassesAsync(ListCustomClassesRequest request, CallOptions options)

Lists CustomClasses.

Parameters
NameDescription
requestListCustomClassesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListCustomClassesResponse

The call object.

ListCustomClassesAsync(ListCustomClassesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListCustomClassesResponse> ListCustomClassesAsync(ListCustomClassesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists CustomClasses.

Parameters
NameDescription
requestListCustomClassesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallListCustomClassesResponse

The call object.

ListPhraseSets(ListPhraseSetsRequest, CallOptions)

public virtual ListPhraseSetsResponse ListPhraseSets(ListPhraseSetsRequest request, CallOptions options)

Lists PhraseSets.

Parameters
NameDescription
requestListPhraseSetsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListPhraseSetsResponse

The response received from the server.

ListPhraseSets(ListPhraseSetsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListPhraseSetsResponse ListPhraseSets(ListPhraseSetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists PhraseSets.

Parameters
NameDescription
requestListPhraseSetsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
ListPhraseSetsResponse

The response received from the server.

ListPhraseSetsAsync(ListPhraseSetsRequest, CallOptions)

public virtual AsyncUnaryCall<ListPhraseSetsResponse> ListPhraseSetsAsync(ListPhraseSetsRequest request, CallOptions options)

Lists PhraseSets.

Parameters
NameDescription
requestListPhraseSetsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListPhraseSetsResponse

The call object.

ListPhraseSetsAsync(ListPhraseSetsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListPhraseSetsResponse> ListPhraseSetsAsync(ListPhraseSetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists PhraseSets.

Parameters
NameDescription
requestListPhraseSetsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallListPhraseSetsResponse

The call object.

ListRecognizers(ListRecognizersRequest, CallOptions)

public virtual ListRecognizersResponse ListRecognizers(ListRecognizersRequest request, CallOptions options)

Lists Recognizers.

Parameters
NameDescription
requestListRecognizersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListRecognizersResponse

The response received from the server.

ListRecognizers(ListRecognizersRequest, Metadata, DateTime?, CancellationToken)

public virtual ListRecognizersResponse ListRecognizers(ListRecognizersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Recognizers.

Parameters
NameDescription
requestListRecognizersRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
ListRecognizersResponse

The response received from the server.

ListRecognizersAsync(ListRecognizersRequest, CallOptions)

public virtual AsyncUnaryCall<ListRecognizersResponse> ListRecognizersAsync(ListRecognizersRequest request, CallOptions options)

Lists Recognizers.

Parameters
NameDescription
requestListRecognizersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListRecognizersResponse

The call object.

ListRecognizersAsync(ListRecognizersRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListRecognizersResponse> ListRecognizersAsync(ListRecognizersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Recognizers.

Parameters
NameDescription
requestListRecognizersRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallListRecognizersResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Speech.SpeechClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
SpeechSpeechClient
Overrides

Recognize(RecognizeRequest, CallOptions)

public virtual RecognizeResponse Recognize(RecognizeRequest request, CallOptions options)

Performs synchronous Speech recognition: receive results after all audio has been sent and processed.

Parameters
NameDescription
requestRecognizeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
RecognizeResponse

The response received from the server.

Recognize(RecognizeRequest, Metadata, DateTime?, CancellationToken)

public virtual RecognizeResponse Recognize(RecognizeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Performs synchronous Speech recognition: receive results after all audio has been sent and processed.

Parameters
NameDescription
requestRecognizeRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
RecognizeResponse

The response received from the server.

RecognizeAsync(RecognizeRequest, CallOptions)

public virtual AsyncUnaryCall<RecognizeResponse> RecognizeAsync(RecognizeRequest request, CallOptions options)

Performs synchronous Speech recognition: receive results after all audio has been sent and processed.

Parameters
NameDescription
requestRecognizeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallRecognizeResponse

The call object.

RecognizeAsync(RecognizeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<RecognizeResponse> RecognizeAsync(RecognizeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Performs synchronous Speech recognition: receive results after all audio has been sent and processed.

Parameters
NameDescription
requestRecognizeRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallRecognizeResponse

The call object.

StreamingRecognize(CallOptions)

public virtual AsyncDuplexStreamingCall<StreamingRecognizeRequest, StreamingRecognizeResponse> StreamingRecognize(CallOptions options)

Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).

Parameter
NameDescription
optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncDuplexStreamingCallStreamingRecognizeRequestStreamingRecognizeResponse

The call object.

StreamingRecognize(Metadata, DateTime?, CancellationToken)

public virtual AsyncDuplexStreamingCall<StreamingRecognizeRequest, StreamingRecognizeResponse> StreamingRecognize(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).

Parameters
NameDescription
headersMetadata

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

deadlineDateTime

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
AsyncDuplexStreamingCallStreamingRecognizeRequestStreamingRecognizeResponse

The call object.

UndeleteCustomClass(UndeleteCustomClassRequest, CallOptions)

public virtual Operation UndeleteCustomClass(UndeleteCustomClassRequest request, CallOptions options)

Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUndeleteCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UndeleteCustomClass(UndeleteCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUndeleteCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

UndeleteCustomClassAsync(UndeleteCustomClassRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UndeleteCustomClassAsync(UndeleteCustomClassRequest request, CallOptions options)

Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUndeleteCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UndeleteCustomClassAsync(UndeleteCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUndeleteCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

UndeletePhraseSet(UndeletePhraseSetRequest, CallOptions)

public virtual Operation UndeletePhraseSet(UndeletePhraseSetRequest request, CallOptions options)

Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUndeletePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UndeletePhraseSet(UndeletePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUndeletePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

UndeletePhraseSetAsync(UndeletePhraseSetRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UndeletePhraseSetAsync(UndeletePhraseSetRequest request, CallOptions options)

Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUndeletePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UndeletePhraseSetAsync(UndeletePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUndeletePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

UndeleteRecognizer(UndeleteRecognizerRequest, CallOptions)

public virtual Operation UndeleteRecognizer(UndeleteRecognizerRequest request, CallOptions options)

Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUndeleteRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UndeleteRecognizer(UndeleteRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUndeleteRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

UndeleteRecognizerAsync(UndeleteRecognizerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UndeleteRecognizerAsync(UndeleteRecognizerRequest request, CallOptions options)

Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUndeleteRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UndeleteRecognizerAsync(UndeleteRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUndeleteRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

UpdateConfig(UpdateConfigRequest, CallOptions)

public virtual Config UpdateConfig(UpdateConfigRequest request, CallOptions options)

Updates the [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestUpdateConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Config

The response received from the server.

UpdateConfig(UpdateConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual Config UpdateConfig(UpdateConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestUpdateConfigRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
Config

The response received from the server.

UpdateConfigAsync(UpdateConfigRequest, CallOptions)

public virtual AsyncUnaryCall<Config> UpdateConfigAsync(UpdateConfigRequest request, CallOptions options)

Updates the [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestUpdateConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallConfig

The call object.

UpdateConfigAsync(UpdateConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Config> UpdateConfigAsync(UpdateConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the [Config][google.cloud.speech.v2.Config].

Parameters
NameDescription
requestUpdateConfigRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallConfig

The call object.

UpdateCustomClass(UpdateCustomClassRequest, CallOptions)

public virtual Operation UpdateCustomClass(UpdateCustomClassRequest request, CallOptions options)

Updates the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUpdateCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdateCustomClass(UpdateCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Updates the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUpdateCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

UpdateCustomClassAsync(UpdateCustomClassRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateCustomClassAsync(UpdateCustomClassRequest request, CallOptions options)

Updates the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUpdateCustomClassRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdateCustomClassAsync(UpdateCustomClassRequest, Metadata, DateTime?, CancellationToken)

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

Updates the [CustomClass][google.cloud.speech.v2.CustomClass].

Parameters
NameDescription
requestUpdateCustomClassRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

UpdatePhraseSet(UpdatePhraseSetRequest, CallOptions)

public virtual Operation UpdatePhraseSet(UpdatePhraseSetRequest request, CallOptions options)

Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUpdatePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdatePhraseSet(UpdatePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUpdatePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

UpdatePhraseSetAsync(UpdatePhraseSetRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdatePhraseSetAsync(UpdatePhraseSetRequest request, CallOptions options)

Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUpdatePhraseSetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdatePhraseSetAsync(UpdatePhraseSetRequest, Metadata, DateTime?, CancellationToken)

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

Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].

Parameters
NameDescription
requestUpdatePhraseSetRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

UpdateRecognizer(UpdateRecognizerRequest, CallOptions)

public virtual Operation UpdateRecognizer(UpdateRecognizerRequest request, CallOptions options)

Updates the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUpdateRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdateRecognizer(UpdateRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Updates the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUpdateRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

UpdateRecognizerAsync(UpdateRecognizerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateRecognizerAsync(UpdateRecognizerRequest request, CallOptions options)

Updates the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUpdateRecognizerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdateRecognizerAsync(UpdateRecognizerRequest, Metadata, DateTime?, CancellationToken)

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

Updates the [Recognizer][google.cloud.speech.v2.Recognizer].

Parameters
NameDescription
requestUpdateRecognizerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.