Class HttpJsonAnswerRecordsStub (4.7.0)

public class HttpJsonAnswerRecordsStub extends AnswerRecordsStub

REST stub implementation for the AnswerRecords service API.

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

Inheritance

java.lang.Object > AnswerRecordsStub > HttpJsonAnswerRecordsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAnswerRecordsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAnswerRecordsStub
Exceptions
TypeDescription
IOException

create(AnswerRecordsStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext)

protected HttpJsonAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext)

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

HttpJsonAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAnswerRecordsStub(AnswerRecordsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

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