Class ConversationalSearchServiceGrpc.ConversationalSearchServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ConversationalSearchServiceGrpc.ConversationalSearchServiceBlockingV2Stub>
com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceGrpc.ConversationalSearchServiceBlockingV2Stub
- Enclosing class:
- ConversationalSearchServiceGrpc
public static final class ConversationalSearchServiceGrpc.ConversationalSearchServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<ConversationalSearchServiceGrpc.ConversationalSearchServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService.
Service for conversational search.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionanswerQuery(AnswerQueryRequest request) Answer query method.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Converses a conversation.Creates a Conversation.createSession(CreateSessionRequest request) Creates a Session.com.google.protobuf.EmptyDeletes a Conversation.com.google.protobuf.EmptydeleteSession(DeleteSessionRequest request) Deletes a Session.getAnswer(GetAnswerRequest request) Gets a Answer.getConversation(GetConversationRequest request) Gets a Conversation.getSession(GetSessionRequest request) Gets a Session.Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].listSessions(ListSessionsRequest request) Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].Updates a Conversation.updateSession(UpdateSessionRequest request) Updates a Session.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ConversationalSearchServiceGrpc.ConversationalSearchServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ConversationalSearchServiceGrpc.ConversationalSearchServiceBlockingV2Stub>
-
converseConversation
public ConverseConversationResponse converseConversation(ConverseConversationRequest request) throws io.grpc.StatusException Converses a conversation.
- Throws:
io.grpc.StatusException
-
createConversation
public Conversation createConversation(CreateConversationRequest request) throws io.grpc.StatusException Creates a Conversation. If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to create already exists, an ALREADY_EXISTS error is returned.
- Throws:
io.grpc.StatusException
-
deleteConversation
public com.google.protobuf.Empty deleteConversation(DeleteConversationRequest request) throws io.grpc.StatusException Deletes a Conversation. If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to delete does not exist, a NOT_FOUND error is returned.
- Throws:
io.grpc.StatusException
-
updateConversation
public Conversation updateConversation(UpdateConversationRequest request) throws io.grpc.StatusException Updates a Conversation. [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update does not exist, a NOT_FOUND error is returned.
- Throws:
io.grpc.StatusException
-
getConversation
Gets a Conversation.
- Throws:
io.grpc.StatusException
-
listConversations
public ListConversationsResponse listConversations(ListConversationsRequest request) throws io.grpc.StatusException Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
- Throws:
io.grpc.StatusException
-
answerQuery
Answer query method.
- Throws:
io.grpc.StatusException
-
getAnswer
Gets a Answer.
- Throws:
io.grpc.StatusException
-
createSession
Creates a Session. If the [Session][google.cloud.discoveryengine.v1beta.Session] to create already exists, an ALREADY_EXISTS error is returned.
- Throws:
io.grpc.StatusException
-
deleteSession
public com.google.protobuf.Empty deleteSession(DeleteSessionRequest request) throws io.grpc.StatusException Deletes a Session. If the [Session][google.cloud.discoveryengine.v1beta.Session] to delete does not exist, a NOT_FOUND error is returned.
- Throws:
io.grpc.StatusException
-
updateSession
Updates a Session. [Session][google.cloud.discoveryengine.v1beta.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1beta.Session] to update does not exist, a NOT_FOUND error is returned.
- Throws:
io.grpc.StatusException
-
getSession
Gets a Session.
- Throws:
io.grpc.StatusException
-
listSessions
public ListSessionsResponse listSessions(ListSessionsRequest request) throws io.grpc.StatusException Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
- Throws:
io.grpc.StatusException
-