Interface AdaptationGrpc.AsyncService (4.41.0)

public static interface AdaptationGrpc.AsyncService

Service that implements Google Cloud Speech Adaptation API.

Methods

createCustomClass(CreateCustomClassRequest request, StreamObserver<CustomClass> responseObserver)

public default void createCustomClass(CreateCustomClassRequest request, StreamObserver<CustomClass> responseObserver)

Create a custom class.

Parameters
Name Description
request CreateCustomClassRequest
responseObserver io.grpc.stub.StreamObserver<CustomClass>

createPhraseSet(CreatePhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)

public default void createPhraseSet(CreatePhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)

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
responseObserver io.grpc.stub.StreamObserver<PhraseSet>

deleteCustomClass(DeleteCustomClassRequest request, StreamObserver<Empty> responseObserver)

public default void deleteCustomClass(DeleteCustomClassRequest request, StreamObserver<Empty> responseObserver)

Delete a custom class.

Parameters
Name Description
request DeleteCustomClassRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deletePhraseSet(DeletePhraseSetRequest request, StreamObserver<Empty> responseObserver)

public default void deletePhraseSet(DeletePhraseSetRequest request, StreamObserver<Empty> responseObserver)

Delete a phrase set.

Parameters
Name Description
request DeletePhraseSetRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getCustomClass(GetCustomClassRequest request, StreamObserver<CustomClass> responseObserver)

public default void getCustomClass(GetCustomClassRequest request, StreamObserver<CustomClass> responseObserver)

Get a custom class.

Parameters
Name Description
request GetCustomClassRequest
responseObserver io.grpc.stub.StreamObserver<CustomClass>

getPhraseSet(GetPhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)

public default void getPhraseSet(GetPhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)

Get a phrase set.

Parameters
Name Description
request GetPhraseSetRequest
responseObserver io.grpc.stub.StreamObserver<PhraseSet>

listCustomClasses(ListCustomClassesRequest request, StreamObserver<ListCustomClassesResponse> responseObserver)

public default void listCustomClasses(ListCustomClassesRequest request, StreamObserver<ListCustomClassesResponse> responseObserver)

List custom classes.

Parameters
Name Description
request ListCustomClassesRequest
responseObserver io.grpc.stub.StreamObserver<ListCustomClassesResponse>

listPhraseSet(ListPhraseSetRequest request, StreamObserver<ListPhraseSetResponse> responseObserver)

public default void listPhraseSet(ListPhraseSetRequest request, StreamObserver<ListPhraseSetResponse> responseObserver)

List phrase sets.

Parameters
Name Description
request ListPhraseSetRequest
responseObserver io.grpc.stub.StreamObserver<ListPhraseSetResponse>

updateCustomClass(UpdateCustomClassRequest request, StreamObserver<CustomClass> responseObserver)

public default void updateCustomClass(UpdateCustomClassRequest request, StreamObserver<CustomClass> responseObserver)

Update a custom class.

Parameters
Name Description
request UpdateCustomClassRequest
responseObserver io.grpc.stub.StreamObserver<CustomClass>

updatePhraseSet(UpdatePhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)

public default void updatePhraseSet(UpdatePhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)

Update a phrase set.

Parameters
Name Description
request UpdatePhraseSetRequest
responseObserver io.grpc.stub.StreamObserver<PhraseSet>