Class HttpJsonAdaptationStub
- java.lang.Object
-
- com.google.cloud.speech.v1p1beta1.stub.AdaptationStub
-
- com.google.cloud.speech.v1p1beta1.stub.HttpJsonAdaptationStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonAdaptationStub extends AdaptationStub
REST 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
HttpJsonAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonAdaptationStub, using the given settings.protected
HttpJsonAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonAdaptationStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonAdaptationStub
protected HttpJsonAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonAdaptationStub, 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
-
HttpJsonAdaptationStub
protected HttpJsonAdaptationStub(AdaptationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonAdaptationStub, 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 HttpJsonAdaptationStub create(AdaptationStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAdaptationStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAdaptationStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
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
-
-