Class GrpcAdaptationStub
- java.lang.Object
-
- com.google.cloud.speech.v1p1beta1.stub.AdaptationStub
-
- com.google.cloud.speech.v1p1beta1.stub.GrpcAdaptationStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @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 protected
GrpcAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcAdaptationStub, using the given settings.protected
GrpcAdaptationStub(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:
createPhraseSetCallable
in classAdaptationStub
-
getPhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<GetPhraseSetRequest,PhraseSet> getPhraseSetCallable()
- Overrides:
getPhraseSetCallable
in classAdaptationStub
-
listPhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<ListPhraseSetRequest,ListPhraseSetResponse> listPhraseSetCallable()
- Overrides:
listPhraseSetCallable
in classAdaptationStub
-
listPhraseSetPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPhraseSetRequest,AdaptationClient.ListPhraseSetPagedResponse> listPhraseSetPagedCallable()
- Overrides:
listPhraseSetPagedCallable
in classAdaptationStub
-
updatePhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdatePhraseSetRequest,PhraseSet> updatePhraseSetCallable()
- Overrides:
updatePhraseSetCallable
in classAdaptationStub
-
deletePhraseSetCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePhraseSetRequest,com.google.protobuf.Empty> deletePhraseSetCallable()
- Overrides:
deletePhraseSetCallable
in classAdaptationStub
-
createCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCustomClassRequest,CustomClass> createCustomClassCallable()
- Overrides:
createCustomClassCallable
in classAdaptationStub
-
getCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
- Overrides:
getCustomClassCallable
in classAdaptationStub
-
listCustomClassesCallable
public com.google.api.gax.rpc.UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> listCustomClassesCallable()
- Overrides:
listCustomClassesCallable
in classAdaptationStub
-
listCustomClassesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCustomClassesRequest,AdaptationClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
- Overrides:
listCustomClassesPagedCallable
in classAdaptationStub
-
updateCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCustomClassRequest,CustomClass> updateCustomClassCallable()
- Overrides:
updateCustomClassCallable
in classAdaptationStub
-
deleteCustomClassCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteCustomClassRequest,com.google.protobuf.Empty> deleteCustomClassCallable()
- Overrides:
deleteCustomClassCallable
in classAdaptationStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-