Package com.google.cloud.speech.v1
Class AdaptationGrpc.AdaptationBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<AdaptationGrpc.AdaptationBlockingV2Stub>
com.google.cloud.speech.v1.AdaptationGrpc.AdaptationBlockingV2Stub
- Enclosing class:
- AdaptationGrpc
public static final class AdaptationGrpc.AdaptationBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<AdaptationGrpc.AdaptationBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Adaptation.
Service that implements Google Cloud Speech Adaptation API.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected AdaptationGrpc.AdaptationBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Create a custom class.createPhraseSet(CreatePhraseSetRequest request) Create a set of phrase hints.com.google.protobuf.EmptyDelete a custom class.com.google.protobuf.EmptydeletePhraseSet(DeletePhraseSetRequest request) Delete a phrase set.getCustomClass(GetCustomClassRequest request) Get a custom class.getPhraseSet(GetPhraseSetRequest request) Get a phrase set.List custom classes.listPhraseSet(ListPhraseSetRequest request) List phrase sets.Update a custom class.updatePhraseSet(UpdatePhraseSetRequest request) Update a phrase set.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected AdaptationGrpc.AdaptationBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<AdaptationGrpc.AdaptationBlockingV2Stub>
-
createPhraseSet
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.
- Throws:
io.grpc.StatusException
-
getPhraseSet
Get a phrase set.
- Throws:
io.grpc.StatusException
-
listPhraseSet
public ListPhraseSetResponse listPhraseSet(ListPhraseSetRequest request) throws io.grpc.StatusException List phrase sets.
- Throws:
io.grpc.StatusException
-
updatePhraseSet
Update a phrase set.
- Throws:
io.grpc.StatusException
-
deletePhraseSet
public com.google.protobuf.Empty deletePhraseSet(DeletePhraseSetRequest request) throws io.grpc.StatusException Delete a phrase set.
- Throws:
io.grpc.StatusException
-
createCustomClass
public CustomClass createCustomClass(CreateCustomClassRequest request) throws io.grpc.StatusException Create a custom class.
- Throws:
io.grpc.StatusException
-
getCustomClass
Get a custom class.
- Throws:
io.grpc.StatusException
-
listCustomClasses
public ListCustomClassesResponse listCustomClasses(ListCustomClassesRequest request) throws io.grpc.StatusException List custom classes.
- Throws:
io.grpc.StatusException
-
updateCustomClass
public CustomClass updateCustomClass(UpdateCustomClassRequest request) throws io.grpc.StatusException Update a custom class.
- Throws:
io.grpc.StatusException
-
deleteCustomClass
public com.google.protobuf.Empty deleteCustomClass(DeleteCustomClassRequest request) throws io.grpc.StatusException Delete a custom class.
- Throws:
io.grpc.StatusException
-