Class HttpJsonConversationalSearchServiceStub
- java.lang.Object
-
- com.google.cloud.discoveryengine.v1.stub.ConversationalSearchServiceStub
-
- com.google.cloud.discoveryengine.v1.stub.HttpJsonConversationalSearchServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonConversationalSearchServiceStub extends ConversationalSearchServiceStub
REST stub implementation for the ConversationalSearchService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonConversationalSearchServiceStub, using the given settings.protected
HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonConversationalSearchServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonConversationalSearchServiceStub
protected HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonConversationalSearchServiceStub, 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
-
HttpJsonConversationalSearchServiceStub
protected HttpJsonConversationalSearchServiceStub(ConversationalSearchServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonConversationalSearchServiceStub, 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 Detail
-
create
public static final HttpJsonConversationalSearchServiceStub create(ConversationalSearchServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonConversationalSearchServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonConversationalSearchServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
converseConversationCallable
public com.google.api.gax.rpc.UnaryCallable<ConverseConversationRequest,ConverseConversationResponse> converseConversationCallable()
- Overrides:
converseConversationCallable
in classConversationalSearchServiceStub
-
createConversationCallable
public com.google.api.gax.rpc.UnaryCallable<CreateConversationRequest,Conversation> createConversationCallable()
- Overrides:
createConversationCallable
in classConversationalSearchServiceStub
-
deleteConversationCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteConversationRequest,com.google.protobuf.Empty> deleteConversationCallable()
- Overrides:
deleteConversationCallable
in classConversationalSearchServiceStub
-
updateConversationCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateConversationRequest,Conversation> updateConversationCallable()
- Overrides:
updateConversationCallable
in classConversationalSearchServiceStub
-
getConversationCallable
public com.google.api.gax.rpc.UnaryCallable<GetConversationRequest,Conversation> getConversationCallable()
- Overrides:
getConversationCallable
in classConversationalSearchServiceStub
-
listConversationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ListConversationsResponse> listConversationsCallable()
- Overrides:
listConversationsCallable
in classConversationalSearchServiceStub
-
listConversationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ConversationalSearchServiceClient.ListConversationsPagedResponse> listConversationsPagedCallable()
- Overrides:
listConversationsPagedCallable
in classConversationalSearchServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classConversationalSearchServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-