Google Cloud Speech v1 API - Class AdaptationClientImpl (3.3.0)

public sealed class AdaptationClientImpl : AdaptationClient

Reference documentation and code samples for the Google Cloud Speech v1 API class AdaptationClientImpl.

Adaptation client wrapper implementation, for convenient use.

Inheritance

Object > AdaptationClient > AdaptationClientImpl

Namespace

Google.Cloud.Speech.V1

Assembly

Google.Cloud.Speech.V1.dll

Remarks

Service that implements Google Cloud Speech Adaptation API.

Constructors

AdaptationClientImpl(Adaptation.AdaptationClient, AdaptationSettings, ILogger)

public AdaptationClientImpl(Adaptation.AdaptationClient grpcClient, AdaptationSettings settings, ILogger logger)

Constructs a client wrapper for the Adaptation service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientAdaptation.AdaptationClient

The underlying gRPC client.

settingsAdaptationSettings

The base AdaptationSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Adaptation.AdaptationClient GrpcClient { get; }

The underlying gRPC Adaptation client

Property Value
TypeDescription
Adaptation.AdaptationClient
Overrides

Methods

CreateCustomClass(CreateCustomClassRequest, CallSettings)

public override CustomClass CreateCustomClass(CreateCustomClassRequest request, CallSettings callSettings = null)

Create a custom class.

Parameters
NameDescription
requestCreateCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CustomClass

The RPC response.

Overrides

CreateCustomClassAsync(CreateCustomClassRequest, CallSettings)

public override Task<CustomClass> CreateCustomClassAsync(CreateCustomClassRequest request, CallSettings callSettings = null)

Create a custom class.

Parameters
NameDescription
requestCreateCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CustomClass>

A Task containing the RPC response.

Overrides

CreatePhraseSet(CreatePhraseSetRequest, CallSettings)

public override PhraseSet CreatePhraseSet(CreatePhraseSetRequest request, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.

Parameters
NameDescription
requestCreatePhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PhraseSet

The RPC response.

Overrides

CreatePhraseSetAsync(CreatePhraseSetRequest, CallSettings)

public override Task<PhraseSet> CreatePhraseSetAsync(CreatePhraseSetRequest request, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.

Parameters
NameDescription
requestCreatePhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<PhraseSet>

A Task containing the RPC response.

Overrides

DeleteCustomClass(DeleteCustomClassRequest, CallSettings)

public override void DeleteCustomClass(DeleteCustomClassRequest request, CallSettings callSettings = null)

Delete a custom class.

Parameters
NameDescription
requestDeleteCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteCustomClassAsync(DeleteCustomClassRequest, CallSettings)

public override Task DeleteCustomClassAsync(DeleteCustomClassRequest request, CallSettings callSettings = null)

Delete a custom class.

Parameters
NameDescription
requestDeleteCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

DeletePhraseSet(DeletePhraseSetRequest, CallSettings)

public override void DeletePhraseSet(DeletePhraseSetRequest request, CallSettings callSettings = null)

Delete a phrase set.

Parameters
NameDescription
requestDeletePhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeletePhraseSetAsync(DeletePhraseSetRequest, CallSettings)

public override Task DeletePhraseSetAsync(DeletePhraseSetRequest request, CallSettings callSettings = null)

Delete a phrase set.

Parameters
NameDescription
requestDeletePhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetCustomClass(GetCustomClassRequest, CallSettings)

public override CustomClass GetCustomClass(GetCustomClassRequest request, CallSettings callSettings = null)

Get a custom class.

Parameters
NameDescription
requestGetCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CustomClass

The RPC response.

Overrides

GetCustomClassAsync(GetCustomClassRequest, CallSettings)

public override Task<CustomClass> GetCustomClassAsync(GetCustomClassRequest request, CallSettings callSettings = null)

Get a custom class.

Parameters
NameDescription
requestGetCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CustomClass>

A Task containing the RPC response.

Overrides

GetPhraseSet(GetPhraseSetRequest, CallSettings)

public override PhraseSet GetPhraseSet(GetPhraseSetRequest request, CallSettings callSettings = null)

Get a phrase set.

Parameters
NameDescription
requestGetPhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PhraseSet

The RPC response.

Overrides

GetPhraseSetAsync(GetPhraseSetRequest, CallSettings)

public override Task<PhraseSet> GetPhraseSetAsync(GetPhraseSetRequest request, CallSettings callSettings = null)

Get a phrase set.

Parameters
NameDescription
requestGetPhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<PhraseSet>

A Task containing the RPC response.

Overrides

ListCustomClasses(ListCustomClassesRequest, CallSettings)

public override PagedEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClasses(ListCustomClassesRequest request, CallSettings callSettings = null)

List custom classes.

Parameters
NameDescription
requestListCustomClassesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCustomClassesResponse, CustomClass>

A pageable sequence of CustomClass resources.

Overrides

ListCustomClassesAsync(ListCustomClassesRequest, CallSettings)

public override PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClassesAsync(ListCustomClassesRequest request, CallSettings callSettings = null)

List custom classes.

Parameters
NameDescription
requestListCustomClassesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass>

A pageable asynchronous sequence of CustomClass resources.

Overrides

ListPhraseSet(ListPhraseSetRequest, CallSettings)

public override PagedEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSet(ListPhraseSetRequest request, CallSettings callSettings = null)

List phrase sets.

Parameters
NameDescription
requestListPhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListPhraseSetResponse, PhraseSet>

A pageable sequence of PhraseSet resources.

Overrides

ListPhraseSetAsync(ListPhraseSetRequest, CallSettings)

public override PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSetAsync(ListPhraseSetRequest request, CallSettings callSettings = null)

List phrase sets.

Parameters
NameDescription
requestListPhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet>

A pageable asynchronous sequence of PhraseSet resources.

Overrides

UpdateCustomClass(UpdateCustomClassRequest, CallSettings)

public override CustomClass UpdateCustomClass(UpdateCustomClassRequest request, CallSettings callSettings = null)

Update a custom class.

Parameters
NameDescription
requestUpdateCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CustomClass

The RPC response.

Overrides

UpdateCustomClassAsync(UpdateCustomClassRequest, CallSettings)

public override Task<CustomClass> UpdateCustomClassAsync(UpdateCustomClassRequest request, CallSettings callSettings = null)

Update a custom class.

Parameters
NameDescription
requestUpdateCustomClassRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CustomClass>

A Task containing the RPC response.

Overrides

UpdatePhraseSet(UpdatePhraseSetRequest, CallSettings)

public override PhraseSet UpdatePhraseSet(UpdatePhraseSetRequest request, CallSettings callSettings = null)

Update a phrase set.

Parameters
NameDescription
requestUpdatePhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PhraseSet

The RPC response.

Overrides

UpdatePhraseSetAsync(UpdatePhraseSetRequest, CallSettings)

public override Task<PhraseSet> UpdatePhraseSetAsync(UpdatePhraseSetRequest request, CallSettings callSettings = null)

Update a phrase set.

Parameters
NameDescription
requestUpdatePhraseSetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<PhraseSet>

A Task containing the RPC response.

Overrides