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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SynonymSetServiceStubSettings settings)

public static final GrpcSynonymSetServiceStub create(SynonymSetServiceStubSettings settings)
Parameter
Name Description
settings SynonymSetServiceStubSettings
Returns
Type Description
GrpcSynonymSetServiceStub
Exceptions
Type Description
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
Name Description
settings SynonymSetServiceStubSettings
clientContext ClientContext

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
Name Description
settings SynonymSetServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

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

createSynonymSetCallable()

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

deleteSynonymSetCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getSynonymSetCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listSynonymSetsCallable()

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

listSynonymSetsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSynonymSetCallable()

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