Class GrpcAdaptationStub (4.1.0)

public class GrpcAdaptationStub extends AdaptationStub

gRPC stub implementation for the Adaptation service API.

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

Inheritance

java.lang.Object > AdaptationStub > GrpcAdaptationStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AdaptationStubSettings settings)

public static final GrpcAdaptationStub create(AdaptationStubSettings settings)
Parameter
NameDescription
settingsAdaptationStubSettings
Returns
TypeDescription
GrpcAdaptationStub
Exceptions
TypeDescription
IOException

Constructors

GrpcAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext)

protected GrpcAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcAdaptationStub, 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
settingsAdaptationStubSettings
clientContextClientContext

GrpcAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createCustomClassCallable()

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

createPhraseSetCallable()

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

deleteCustomClassCallable()

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

deletePhraseSetCallable()

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

getCustomClassCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getPhraseSetCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCustomClassesCallable()

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

listCustomClassesPagedCallable()

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

listPhraseSetCallable()

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

listPhraseSetPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCustomClassCallable()

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

updatePhraseSetCallable()

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