Class HttpJsonAdaptationStub (4.41.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonAdaptationStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAdaptationStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonAdaptationStub
Exceptions
Type Description
IOException

create(AdaptationStubSettings settings)

public static final HttpJsonAdaptationStub create(AdaptationStubSettings settings)
Parameter
Name Description
settings AdaptationStubSettings
Returns
Type Description
HttpJsonAdaptationStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings AdaptationStubSettings
clientContext ClientContext

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
Name Description
settings AdaptationStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createCustomClassCallable()

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

createPhraseSetCallable()

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

deleteCustomClassCallable()

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

deletePhraseSetCallable()

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

getCustomClassCallable()

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

getPhraseSetCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCustomClassesCallable()

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

listCustomClassesPagedCallable()

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

listPhraseSetCallable()

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

listPhraseSetPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCustomClassCallable()

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

updatePhraseSetCallable()

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