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.
Namespace
Google.Cloud.Speech.V1Assembly
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 | |
---|---|
Name | Description |
grpcClient | Adaptation.AdaptationClient The underlying gRPC client. |
settings | AdaptationSettings The base AdaptationSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override Adaptation.AdaptationClient GrpcClient { get; }
The underlying gRPC Adaptation client
Property Value | |
---|---|
Type | Description |
Adaptation.AdaptationClient |
Methods
CreateCustomClass(CreateCustomClassRequest, CallSettings)
public override CustomClass CreateCustomClass(CreateCustomClassRequest request, CallSettings callSettings = null)
Create a custom class.
Parameters | |
---|---|
Name | Description |
request | CreateCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CustomClass | The RPC response. |
CreateCustomClassAsync(CreateCustomClassRequest, CallSettings)
public override Task<CustomClass> CreateCustomClassAsync(CreateCustomClassRequest request, CallSettings callSettings = null)
Create a custom class.
Parameters | |
---|---|
Name | Description |
request | CreateCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CustomClass> | A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request | CreatePhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PhraseSet | The RPC response. |
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 | |
---|---|
Name | Description |
request | CreatePhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<PhraseSet> | A Task containing the RPC response. |
DeleteCustomClass(DeleteCustomClassRequest, CallSettings)
public override void DeleteCustomClass(DeleteCustomClassRequest request, CallSettings callSettings = null)
Delete a custom class.
Parameters | |
---|---|
Name | Description |
request | DeleteCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteCustomClassAsync(DeleteCustomClassRequest, CallSettings)
public override Task DeleteCustomClassAsync(DeleteCustomClassRequest request, CallSettings callSettings = null)
Delete a custom class.
Parameters | |
---|---|
Name | Description |
request | DeleteCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
DeletePhraseSet(DeletePhraseSetRequest, CallSettings)
public override void DeletePhraseSet(DeletePhraseSetRequest request, CallSettings callSettings = null)
Delete a phrase set.
Parameters | |
---|---|
Name | Description |
request | DeletePhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeletePhraseSetAsync(DeletePhraseSetRequest, CallSettings)
public override Task DeletePhraseSetAsync(DeletePhraseSetRequest request, CallSettings callSettings = null)
Delete a phrase set.
Parameters | |
---|---|
Name | Description |
request | DeletePhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
GetCustomClass(GetCustomClassRequest, CallSettings)
public override CustomClass GetCustomClass(GetCustomClassRequest request, CallSettings callSettings = null)
Get a custom class.
Parameters | |
---|---|
Name | Description |
request | GetCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CustomClass | The RPC response. |
GetCustomClassAsync(GetCustomClassRequest, CallSettings)
public override Task<CustomClass> GetCustomClassAsync(GetCustomClassRequest request, CallSettings callSettings = null)
Get a custom class.
Parameters | |
---|---|
Name | Description |
request | GetCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CustomClass> | A Task containing the RPC response. |
GetPhraseSet(GetPhraseSetRequest, CallSettings)
public override PhraseSet GetPhraseSet(GetPhraseSetRequest request, CallSettings callSettings = null)
Get a phrase set.
Parameters | |
---|---|
Name | Description |
request | GetPhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PhraseSet | The RPC response. |
GetPhraseSetAsync(GetPhraseSetRequest, CallSettings)
public override Task<PhraseSet> GetPhraseSetAsync(GetPhraseSetRequest request, CallSettings callSettings = null)
Get a phrase set.
Parameters | |
---|---|
Name | Description |
request | GetPhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<PhraseSet> | A Task containing the RPC response. |
ListCustomClasses(ListCustomClassesRequest, CallSettings)
public override PagedEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClasses(ListCustomClassesRequest request, CallSettings callSettings = null)
List custom classes.
Parameters | |
---|---|
Name | Description |
request | ListCustomClassesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCustomClassesResponse, CustomClass> | A pageable sequence of CustomClass resources. |
ListCustomClassesAsync(ListCustomClassesRequest, CallSettings)
public override PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClassesAsync(ListCustomClassesRequest request, CallSettings callSettings = null)
List custom classes.
Parameters | |
---|---|
Name | Description |
request | ListCustomClassesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> | A pageable asynchronous sequence of CustomClass resources. |
ListPhraseSet(ListPhraseSetRequest, CallSettings)
public override PagedEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSet(ListPhraseSetRequest request, CallSettings callSettings = null)
List phrase sets.
Parameters | |
---|---|
Name | Description |
request | ListPhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListPhraseSetResponse, PhraseSet> | A pageable sequence of PhraseSet resources. |
ListPhraseSetAsync(ListPhraseSetRequest, CallSettings)
public override PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSetAsync(ListPhraseSetRequest request, CallSettings callSettings = null)
List phrase sets.
Parameters | |
---|---|
Name | Description |
request | ListPhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> | A pageable asynchronous sequence of PhraseSet resources. |
UpdateCustomClass(UpdateCustomClassRequest, CallSettings)
public override CustomClass UpdateCustomClass(UpdateCustomClassRequest request, CallSettings callSettings = null)
Update a custom class.
Parameters | |
---|---|
Name | Description |
request | UpdateCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CustomClass | The RPC response. |
UpdateCustomClassAsync(UpdateCustomClassRequest, CallSettings)
public override Task<CustomClass> UpdateCustomClassAsync(UpdateCustomClassRequest request, CallSettings callSettings = null)
Update a custom class.
Parameters | |
---|---|
Name | Description |
request | UpdateCustomClassRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CustomClass> | A Task containing the RPC response. |
UpdatePhraseSet(UpdatePhraseSetRequest, CallSettings)
public override PhraseSet UpdatePhraseSet(UpdatePhraseSetRequest request, CallSettings callSettings = null)
Update a phrase set.
Parameters | |
---|---|
Name | Description |
request | UpdatePhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PhraseSet | The RPC response. |
UpdatePhraseSetAsync(UpdatePhraseSetRequest, CallSettings)
public override Task<PhraseSet> UpdatePhraseSetAsync(UpdatePhraseSetRequest request, CallSettings callSettings = null)
Update a phrase set.
Parameters | |
---|---|
Name | Description |
request | UpdatePhraseSetRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<PhraseSet> | A Task containing the RPC response. |