[BindServiceMethod(typeof(Adaptation), "BindService")]
public abstract class Adaptation.AdaptationBaseReference documentation and code samples for the Google Cloud Speech v1 API class Adaptation.AdaptationBase.
Base class for server-side implementations of Adaptation
Namespace
Google.Cloud.Speech.V1Assembly
Google.Cloud.Speech.V1.dll
Methods
CreateCustomClass(CreateCustomClassRequest, ServerCallContext)
public virtual Task<CustomClass> CreateCustomClass(CreateCustomClassRequest request, ServerCallContext context)Create a custom class.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CreateCustomClassRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskCustomClass | 
        The response to send back to the client (wrapped by a task).  | 
      
CreatePhraseSet(CreatePhraseSetRequest, ServerCallContext)
public virtual Task<PhraseSet> CreatePhraseSet(CreatePhraseSetRequest request, ServerCallContext context)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 | 
        CreatePhraseSetRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskPhraseSet | 
        The response to send back to the client (wrapped by a task).  | 
      
DeleteCustomClass(DeleteCustomClassRequest, ServerCallContext)
public virtual Task<Empty> DeleteCustomClass(DeleteCustomClassRequest request, ServerCallContext context)Delete a custom class.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeleteCustomClassRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskEmpty | 
        The response to send back to the client (wrapped by a task).  | 
      
DeletePhraseSet(DeletePhraseSetRequest, ServerCallContext)
public virtual Task<Empty> DeletePhraseSet(DeletePhraseSetRequest request, ServerCallContext context)Delete a phrase set.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeletePhraseSetRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskEmpty | 
        The response to send back to the client (wrapped by a task).  | 
      
GetCustomClass(GetCustomClassRequest, ServerCallContext)
public virtual Task<CustomClass> GetCustomClass(GetCustomClassRequest request, ServerCallContext context)Get a custom class.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetCustomClassRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskCustomClass | 
        The response to send back to the client (wrapped by a task).  | 
      
GetPhraseSet(GetPhraseSetRequest, ServerCallContext)
public virtual Task<PhraseSet> GetPhraseSet(GetPhraseSetRequest request, ServerCallContext context)Get a phrase set.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetPhraseSetRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskPhraseSet | 
        The response to send back to the client (wrapped by a task).  | 
      
ListCustomClasses(ListCustomClassesRequest, ServerCallContext)
public virtual Task<ListCustomClassesResponse> ListCustomClasses(ListCustomClassesRequest request, ServerCallContext context)List custom classes.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListCustomClassesRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskListCustomClassesResponse | 
        The response to send back to the client (wrapped by a task).  | 
      
ListPhraseSet(ListPhraseSetRequest, ServerCallContext)
public virtual Task<ListPhraseSetResponse> ListPhraseSet(ListPhraseSetRequest request, ServerCallContext context)List phrase sets.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListPhraseSetRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskListPhraseSetResponse | 
        The response to send back to the client (wrapped by a task).  | 
      
UpdateCustomClass(UpdateCustomClassRequest, ServerCallContext)
public virtual Task<CustomClass> UpdateCustomClass(UpdateCustomClassRequest request, ServerCallContext context)Update a custom class.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateCustomClassRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskCustomClass | 
        The response to send back to the client (wrapped by a task).  | 
      
UpdatePhraseSet(UpdatePhraseSetRequest, ServerCallContext)
public virtual Task<PhraseSet> UpdatePhraseSet(UpdatePhraseSetRequest request, ServerCallContext context)Update a phrase set.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdatePhraseSetRequestThe request received from the client.  | 
      
context | 
        ServerCallContextThe context of the server-side call handler being invoked.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskPhraseSet | 
        The response to send back to the client (wrapped by a task).  |