Class GrpcGenerativeQuestionServiceStub
java.lang.Object
com.google.cloud.retail.v2alpha.stub.GenerativeQuestionServiceStub
com.google.cloud.retail.v2alpha.stub.GrpcGenerativeQuestionServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcGenerativeQuestionServiceStub, using the given settings.protectedGrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcGenerativeQuestionServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) UnaryCallable<BatchUpdateGenerativeQuestionConfigsRequest,BatchUpdateGenerativeQuestionConfigsResponse> final voidclose()static final GrpcGenerativeQuestionServiceStubcreate(ClientContext clientContext) static final GrpcGenerativeQuestionServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcGenerativeQuestionServiceStubcreate(GenerativeQuestionServiceStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcGenerativeQuestionServiceStub
protected GrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcGenerativeQuestionServiceStub
protected GrpcGenerativeQuestionServiceStub(GenerativeQuestionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcGenerativeQuestionServiceStub create(GenerativeQuestionServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcGenerativeQuestionServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcGenerativeQuestionServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
updateGenerativeQuestionsFeatureConfigCallable
public UnaryCallable<UpdateGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig> updateGenerativeQuestionsFeatureConfigCallable()- Overrides:
updateGenerativeQuestionsFeatureConfigCallablein classGenerativeQuestionServiceStub
-
getGenerativeQuestionsFeatureConfigCallable
public UnaryCallable<GetGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig> getGenerativeQuestionsFeatureConfigCallable()- Overrides:
getGenerativeQuestionsFeatureConfigCallablein classGenerativeQuestionServiceStub
-
listGenerativeQuestionConfigsCallable
public UnaryCallable<ListGenerativeQuestionConfigsRequest,ListGenerativeQuestionConfigsResponse> listGenerativeQuestionConfigsCallable()- Overrides:
listGenerativeQuestionConfigsCallablein classGenerativeQuestionServiceStub
-
updateGenerativeQuestionConfigCallable
public UnaryCallable<UpdateGenerativeQuestionConfigRequest,GenerativeQuestionConfig> updateGenerativeQuestionConfigCallable()- Overrides:
updateGenerativeQuestionConfigCallablein classGenerativeQuestionServiceStub
-
batchUpdateGenerativeQuestionConfigsCallable
public UnaryCallable<BatchUpdateGenerativeQuestionConfigsRequest,BatchUpdateGenerativeQuestionConfigsResponse> batchUpdateGenerativeQuestionConfigsCallable()- Overrides:
batchUpdateGenerativeQuestionConfigsCallablein classGenerativeQuestionServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGenerativeQuestionServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-