Package com.google.cloud.speech.v1.stub
Class GrpcAdaptationStub
- java.lang.Object
-
- com.google.cloud.speech.v1.stub.AdaptationStub
-
- com.google.cloud.speech.v1.stub.GrpcAdaptationStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcAdaptationStub extends AdaptationStub
gRPC stub implementation for the Adaptation service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcAdaptationStub, using the given settings.protectedGrpcAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcAdaptationStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcAdaptationStub
protected GrpcAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcAdaptationStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcAdaptationStub
protected GrpcAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcAdaptationStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcAdaptationStub create(AdaptationStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcAdaptationStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcAdaptationStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createPhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<CreatePhraseSetRequest,PhraseSet> createPhraseSetCallable()
- Overrides:
createPhraseSetCallablein classAdaptationStub
-
getPhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<GetPhraseSetRequest,PhraseSet> getPhraseSetCallable()
- Overrides:
getPhraseSetCallablein classAdaptationStub
-
listPhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<ListPhraseSetRequest,ListPhraseSetResponse> listPhraseSetCallable()
- Overrides:
listPhraseSetCallablein classAdaptationStub
-
listPhraseSetPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPhraseSetRequest,AdaptationClient.ListPhraseSetPagedResponse> listPhraseSetPagedCallable()
- Overrides:
listPhraseSetPagedCallablein classAdaptationStub
-
updatePhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdatePhraseSetRequest,PhraseSet> updatePhraseSetCallable()
- Overrides:
updatePhraseSetCallablein classAdaptationStub
-
deletePhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePhraseSetRequest,com.google.protobuf.Empty> deletePhraseSetCallable()
- Overrides:
deletePhraseSetCallablein classAdaptationStub
-
createCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCustomClassRequest,CustomClass> createCustomClassCallable()
- Overrides:
createCustomClassCallablein classAdaptationStub
-
getCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
- Overrides:
getCustomClassCallablein classAdaptationStub
-
listCustomClassesCallable
public com.google.api.gax.rpc.UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> listCustomClassesCallable()
- Overrides:
listCustomClassesCallablein classAdaptationStub
-
listCustomClassesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCustomClassesRequest,AdaptationClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
- Overrides:
listCustomClassesPagedCallablein classAdaptationStub
-
updateCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCustomClassRequest,CustomClass> updateCustomClassCallable()
- Overrides:
updateCustomClassCallablein classAdaptationStub
-
deleteCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteCustomClassRequest,com.google.protobuf.Empty> deleteCustomClassCallable()
- Overrides:
deleteCustomClassCallablein classAdaptationStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAdaptationStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-