Class HttpJsonGenerativeQuestionServiceStub (2.57.0)

public class HttpJsonGenerativeQuestionServiceStub extends GenerativeQuestionServiceStub

REST stub implementation for the GenerativeQuestionService service API.

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

Inheritance

java.lang.Object > GenerativeQuestionServiceStub > HttpJsonGenerativeQuestionServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonGenerativeQuestionServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonGenerativeQuestionServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(GenerativeQuestionServiceStubSettings settings)

public static final HttpJsonGenerativeQuestionServiceStub create(GenerativeQuestionServiceStubSettings settings)
Parameter
Name Description
settings GenerativeQuestionServiceStubSettings
Returns
Type Description
HttpJsonGenerativeQuestionServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonGenerativeQuestionServiceStub, 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 GenerativeQuestionServiceStubSettings
clientContext ClientContext

HttpJsonGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonGenerativeQuestionServiceStub, 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 GenerativeQuestionServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

batchUpdateGenerativeQuestionConfigsCallable()

public UnaryCallable<BatchUpdateGenerativeQuestionConfigsRequest,BatchUpdateGenerativeQuestionConfigsResponse> batchUpdateGenerativeQuestionConfigsCallable()
Returns
Type Description
UnaryCallable<BatchUpdateGenerativeQuestionConfigsRequest,BatchUpdateGenerativeQuestionConfigsResponse>
Overrides

close()

public final void close()
Overrides

getGenerativeQuestionsFeatureConfigCallable()

public UnaryCallable<GetGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig> getGenerativeQuestionsFeatureConfigCallable()
Returns
Type Description
UnaryCallable<GetGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listGenerativeQuestionConfigsCallable()

public UnaryCallable<ListGenerativeQuestionConfigsRequest,ListGenerativeQuestionConfigsResponse> listGenerativeQuestionConfigsCallable()
Returns
Type Description
UnaryCallable<ListGenerativeQuestionConfigsRequest,ListGenerativeQuestionConfigsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateGenerativeQuestionConfigCallable()

public UnaryCallable<UpdateGenerativeQuestionConfigRequest,GenerativeQuestionConfig> updateGenerativeQuestionConfigCallable()
Returns
Type Description
UnaryCallable<UpdateGenerativeQuestionConfigRequest,GenerativeQuestionConfig>
Overrides

updateGenerativeQuestionsFeatureConfigCallable()

public UnaryCallable<UpdateGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig> updateGenerativeQuestionsFeatureConfigCallable()
Returns
Type Description
UnaryCallable<UpdateGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig>
Overrides