Class GrpcSynonymSetServiceStub (0.8.0)

public class GrpcSynonymSetServiceStub extends SynonymSetServiceStub

gRPC stub implementation for the SynonymSetService service API.

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

Inheritance

java.lang.Object > SynonymSetServiceStub > GrpcSynonymSetServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSynonymSetServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcSynonymSetServiceStub
Exceptions
TypeDescription
IOException

create(SynonymSetServiceStubSettings settings)

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

Constructors

GrpcSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext)

protected GrpcSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext)

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

GrpcSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSynonymSetServiceStub(SynonymSetServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcSynonymSetServiceStub, 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
callableFactoryGrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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