Class SessionServiceGrpc.SessionServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SessionServiceGrpc.SessionServiceBlockingV2Stub>
com.google.cloud.discoveryengine.v1beta.SessionServiceGrpc.SessionServiceBlockingV2Stub
- Enclosing class:
- SessionServiceGrpc
public static final class SessionServiceGrpc.SessionServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<SessionServiceGrpc.SessionServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service SessionService.
Service for managing Sessions and Session-related resources.
-
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 TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createSession(CreateSessionRequest request) Creates a Session.com.google.protobuf.EmptydeleteSession(DeleteSessionRequest request) Deletes a Session.getSession(GetSessionRequest request) Gets a Session.listSessions(ListSessionsRequest request) Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].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 SessionServiceGrpc.SessionServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SessionServiceGrpc.SessionServiceBlockingV2Stub>
-
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
-