- 4.44.0 (latest)
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
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.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonAdaptationStub create(ClientContext clientContext)
Name | Description |
clientContext | ClientContext |
Type | Description |
HttpJsonAdaptationStub |
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonAdaptationStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Name | Description |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Type | Description |
HttpJsonAdaptationStub |
Type | Description |
IOException |
create(AdaptationStubSettings settings)
public static final HttpJsonAdaptationStub create(AdaptationStubSettings settings)
Name | Description |
settings | AdaptationStubSettings |
Type | Description |
HttpJsonAdaptationStub |
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
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.
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.
Name | Description |
settings | AdaptationStubSettings |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration | long |
unit | TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
createCustomClassCallable()
public UnaryCallable<CreateCustomClassRequest,CustomClass> createCustomClassCallable()
Type | Description |
UnaryCallable<CreateCustomClassRequest,CustomClass> |
createPhraseSetCallable()
public UnaryCallable<CreatePhraseSetRequest,PhraseSet> createPhraseSetCallable()
Type | Description |
UnaryCallable<CreatePhraseSetRequest,PhraseSet> |
deleteCustomClassCallable()
public UnaryCallable<DeleteCustomClassRequest,Empty> deleteCustomClassCallable()
Type | Description |
UnaryCallable<DeleteCustomClassRequest,Empty> |
deletePhraseSetCallable()
public UnaryCallable<DeletePhraseSetRequest,Empty> deletePhraseSetCallable()
Type | Description |
UnaryCallable<DeletePhraseSetRequest,Empty> |
getCustomClassCallable()
public UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
Type | Description |
UnaryCallable<GetCustomClassRequest,CustomClass> |
getPhraseSetCallable()
public UnaryCallable<GetPhraseSetRequest,PhraseSet> getPhraseSetCallable()
Type | Description |
UnaryCallable<GetPhraseSetRequest,PhraseSet> |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
listCustomClassesCallable()
public UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> listCustomClassesCallable()
Type | Description |
UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> |
listCustomClassesPagedCallable()
public UnaryCallable<ListCustomClassesRequest,AdaptationClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
Type | Description |
UnaryCallable<ListCustomClassesRequest,ListCustomClassesPagedResponse> |
listPhraseSetCallable()
public UnaryCallable<ListPhraseSetRequest,ListPhraseSetResponse> listPhraseSetCallable()
Type | Description |
UnaryCallable<ListPhraseSetRequest,ListPhraseSetResponse> |
listPhraseSetPagedCallable()
public UnaryCallable<ListPhraseSetRequest,AdaptationClient.ListPhraseSetPagedResponse> listPhraseSetPagedCallable()
Type | Description |
UnaryCallable<ListPhraseSetRequest,ListPhraseSetPagedResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateCustomClassCallable()
public UnaryCallable<UpdateCustomClassRequest,CustomClass> updateCustomClassCallable()
Type | Description |
UnaryCallable<UpdateCustomClassRequest,CustomClass> |
updatePhraseSetCallable()
public UnaryCallable<UpdatePhraseSetRequest,PhraseSet> updatePhraseSetCallable()
Type | Description |
UnaryCallable<UpdatePhraseSetRequest,PhraseSet> |