Class GrpcAnswerRecordsStub (4.4.0)

public class GrpcAnswerRecordsStub extends AnswerRecordsStub

gRPC stub implementation for the AnswerRecords service API.

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

Inheritance

java.lang.Object > AnswerRecordsStub > GrpcAnswerRecordsStub

Constructors

GrpcAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext)

protected GrpcAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcAnswerRecordsStub, 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
settingsAnswerRecordsStubSettings
clientContextClientContext

GrpcAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AnswerRecordsStubSettings settings)

public static final GrpcAnswerRecordsStub create(AnswerRecordsStubSettings settings)
Parameter
NameDescription
settingsAnswerRecordsStubSettings
Returns
TypeDescription
GrpcAnswerRecordsStub
Exceptions
TypeDescription
IOException

getAnswerRecordCallable()

public UnaryCallable<GetAnswerRecordRequest,AnswerRecord> getAnswerRecordCallable()
Returns
TypeDescription
UnaryCallable<GetAnswerRecordRequest,AnswerRecord>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAnswerRecordsCallable()

public UnaryCallable<ListAnswerRecordsRequest,ListAnswerRecordsResponse> listAnswerRecordsCallable()
Returns
TypeDescription
UnaryCallable<ListAnswerRecordsRequest,ListAnswerRecordsResponse>
Overrides

listAnswerRecordsPagedCallable()

public UnaryCallable<ListAnswerRecordsRequest,AnswerRecordsClient.ListAnswerRecordsPagedResponse> listAnswerRecordsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAnswerRecordsRequest,ListAnswerRecordsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAnswerRecordCallable()

public UnaryCallable<UpdateAnswerRecordRequest,AnswerRecord> updateAnswerRecordCallable()
Returns
TypeDescription
UnaryCallable<UpdateAnswerRecordRequest,AnswerRecord>
Overrides