Google Cloud Speech v1p1beta1 API - Class Adaptation.AdaptationBase (3.0.0-beta07)

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

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

Base class for server-side implementations of Adaptation

Inheritance

object > Adaptation.AdaptationBase

Namespace

Google.Cloud.Speech.V1P1Beta1

Assembly

Google.Cloud.Speech.V1P1Beta1.dll

Methods

CreateCustomClass(CreateCustomClassRequest, ServerCallContext)

public virtual Task<CustomClass> CreateCustomClass(CreateCustomClassRequest request, ServerCallContext context)

Create a custom class.

Parameters
NameDescription
requestCreateCustomClassRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestCreatePhraseSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestDeleteCustomClassRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestDeletePhraseSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestGetCustomClassRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestGetPhraseSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestListCustomClassesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestListPhraseSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestUpdateCustomClassRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestUpdatePhraseSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskPhraseSet

The response to send back to the client (wrapped by a task).