Class HttpJsonSynonymSetServiceStub (0.28.0)

public class HttpJsonSynonymSetServiceStub extends SynonymSetServiceStub

REST stub implementation for the SynonymSetService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > SynonymSetServiceStub > HttpJsonSynonymSetServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SynonymSetServiceStubSettings settings)

public static final HttpJsonSynonymSetServiceStub create(SynonymSetServiceStubSettings settings)
Parameter
NameDescription
settingsSynonymSetServiceStubSettings
Returns
TypeDescription
HttpJsonSynonymSetServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSynonymSetServiceStub, 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
settingsSynonymSetServiceStubSettings
clientContextClientContext

HttpJsonSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSynonymSetServiceStub, 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
settingsSynonymSetServiceStubSettings
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

createSynonymSetCallable()

public UnaryCallable<CreateSynonymSetRequest,SynonymSet> createSynonymSetCallable()
Returns
TypeDescription
UnaryCallable<CreateSynonymSetRequest,SynonymSet>
Overrides

deleteSynonymSetCallable()

public UnaryCallable<DeleteSynonymSetRequest,Empty> deleteSynonymSetCallable()
Returns
TypeDescription
UnaryCallable<DeleteSynonymSetRequest,Empty>
Overrides

getSynonymSetCallable()

public UnaryCallable<GetSynonymSetRequest,SynonymSet> getSynonymSetCallable()
Returns
TypeDescription
UnaryCallable<GetSynonymSetRequest,SynonymSet>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSynonymSetsCallable()

public UnaryCallable<ListSynonymSetsRequest,ListSynonymSetsResponse> listSynonymSetsCallable()
Returns
TypeDescription
UnaryCallable<ListSynonymSetsRequest,ListSynonymSetsResponse>
Overrides

listSynonymSetsPagedCallable()

public UnaryCallable<ListSynonymSetsRequest,SynonymSetServiceClient.ListSynonymSetsPagedResponse> listSynonymSetsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSynonymSetsRequest,ListSynonymSetsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSynonymSetCallable()

public UnaryCallable<UpdateSynonymSetRequest,SynonymSet> updateSynonymSetCallable()
Returns
TypeDescription
UnaryCallable<UpdateSynonymSetRequest,SynonymSet>
Overrides