Class HttpJsonAdaptationStub (4.36.0)

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.

Inheritance

java.lang.Object > AdaptationStub > HttpJsonAdaptationStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonAdaptationStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonAdaptationStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAdaptationStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAdaptationStub
Exceptions
TypeDescription
IOException

create(AdaptationStubSettings settings)

public static final HttpJsonAdaptationStub create(AdaptationStubSettings settings)
Parameter
NameDescription
settingsAdaptationStubSettings
Returns
TypeDescription
HttpJsonAdaptationStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext)

protected HttpJsonAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsAdaptationStubSettings
clientContextClientContext

HttpJsonAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsAdaptationStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createCustomClassCallable()

public UnaryCallable<CreateCustomClassRequest,CustomClass> createCustomClassCallable()
Returns
TypeDescription
UnaryCallable<CreateCustomClassRequest,CustomClass>
Overrides

createPhraseSetCallable()

public UnaryCallable<CreatePhraseSetRequest,PhraseSet> createPhraseSetCallable()
Returns
TypeDescription
UnaryCallable<CreatePhraseSetRequest,PhraseSet>
Overrides

deleteCustomClassCallable()

public UnaryCallable<DeleteCustomClassRequest,Empty> deleteCustomClassCallable()
Returns
TypeDescription
UnaryCallable<DeleteCustomClassRequest,Empty>
Overrides

deletePhraseSetCallable()

public UnaryCallable<DeletePhraseSetRequest,Empty> deletePhraseSetCallable()
Returns
TypeDescription
UnaryCallable<DeletePhraseSetRequest,Empty>
Overrides

getCustomClassCallable()

public UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
Returns
TypeDescription
UnaryCallable<GetCustomClassRequest,CustomClass>
Overrides

getPhraseSetCallable()

public UnaryCallable<GetPhraseSetRequest,PhraseSet> getPhraseSetCallable()
Returns
TypeDescription
UnaryCallable<GetPhraseSetRequest,PhraseSet>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCustomClassesCallable()

public UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> listCustomClassesCallable()
Returns
TypeDescription
UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse>
Overrides

listCustomClassesPagedCallable()

public UnaryCallable<ListCustomClassesRequest,AdaptationClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCustomClassesRequest,ListCustomClassesPagedResponse>
Overrides

listPhraseSetCallable()

public UnaryCallable<ListPhraseSetRequest,ListPhraseSetResponse> listPhraseSetCallable()
Returns
TypeDescription
UnaryCallable<ListPhraseSetRequest,ListPhraseSetResponse>
Overrides

listPhraseSetPagedCallable()

public UnaryCallable<ListPhraseSetRequest,AdaptationClient.ListPhraseSetPagedResponse> listPhraseSetPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPhraseSetRequest,ListPhraseSetPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCustomClassCallable()

public UnaryCallable<UpdateCustomClassRequest,CustomClass> updateCustomClassCallable()
Returns
TypeDescription
UnaryCallable<UpdateCustomClassRequest,CustomClass>
Overrides

updatePhraseSetCallable()

public UnaryCallable<UpdatePhraseSetRequest,PhraseSet> updatePhraseSetCallable()
Returns
TypeDescription
UnaryCallable<UpdatePhraseSetRequest,PhraseSet>
Overrides