Google Cloud Speech v1 API - Class Adaptation.AdaptationBase (3.8.0)

[BindServiceMethod(typeof(Adaptation), "BindService")]
public abstract class Adaptation.AdaptationBase

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

Base class for server-side implementations of Adaptation

Inheritance

object > Adaptation.AdaptationBase

Namespace

Google.Cloud.Speech.V1

Assembly

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 CreateCustomClassRequest

The request received from the client.

context ServerCallContext

The 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 CreatePhraseSetRequest

The request received from the client.

context ServerCallContext

The 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 DeleteCustomClassRequest

The request received from the client.

context ServerCallContext

The 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 DeletePhraseSetRequest

The request received from the client.

context ServerCallContext

The 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 GetCustomClassRequest

The request received from the client.

context ServerCallContext

The 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 GetPhraseSetRequest

The request received from the client.

context ServerCallContext

The 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 ListCustomClassesRequest

The request received from the client.

context ServerCallContext

The 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 ListPhraseSetRequest

The request received from the client.

context ServerCallContext

The 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 UpdateCustomClassRequest

The request received from the client.

context ServerCallContext

The 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 UpdatePhraseSetRequest

The request received from the client.

context ServerCallContext

The 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).