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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AdaptationStubSettings settings)

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

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
Name Description
settings AdaptationStubSettings
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

createCustomClassCallable()

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

createPhraseSetCallable()

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

deleteCustomClassCallable()

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

deletePhraseSetCallable()

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

getCustomClassCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getPhraseSetCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCustomClassesCallable()

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

listCustomClassesPagedCallable()

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

listPhraseSetCallable()

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

listPhraseSetPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCustomClassCallable()

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

updatePhraseSetCallable()

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