Class GrpcGenerativeQuestionServiceStub (2.54.0)

public class GrpcGenerativeQuestionServiceStub extends GenerativeQuestionServiceStub

gRPC stub implementation for the GenerativeQuestionService service API.

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

Inheritance

java.lang.Object > GenerativeQuestionServiceStub > GrpcGenerativeQuestionServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(GenerativeQuestionServiceStubSettings settings)

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

Constructors

GrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext)

protected GrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext)

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

GrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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