Class SessionServiceGrpc.SessionServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SessionServiceGrpc.SessionServiceStub>
com.google.cloud.discoveryengine.v1alpha.SessionServiceGrpc.SessionServiceStub
- Enclosing class:
- SessionServiceGrpc
public static final class SessionServiceGrpc.SessionServiceStub
extends io.grpc.stub.AbstractAsyncStub<SessionServiceGrpc.SessionServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionprotected SessionServiceGrpc.SessionServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateSession(CreateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Creates a Session.voiddeleteSession(DeleteSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a Session.voidgetSession(GetSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Gets a Session.voidlistFiles(ListFilesRequest request, io.grpc.stub.StreamObserver<ListFilesResponse> responseObserver) Lists metadata for all files in the current session.voidlistSessions(ListSessionsRequest request, io.grpc.stub.StreamObserver<ListSessionsResponse> responseObserver) Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].voidupdateSession(UpdateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Updates a Session.Methods inherited from class io.grpc.stub.AbstractAsyncStub
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.SessionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SessionServiceGrpc.SessionServiceStub>
-
createSession
public void createSession(CreateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Creates a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to create already exists, an ALREADY_EXISTS error is returned.
-
deleteSession
public void deleteSession(DeleteSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to delete does not exist, a NOT_FOUND error is returned.
-
updateSession
public void updateSession(UpdateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Updates a Session. [Session][google.cloud.discoveryengine.v1alpha.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to update does not exist, a NOT_FOUND error is returned.
-
getSession
public void getSession(GetSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Gets a Session.
-
listSessions
public void listSessions(ListSessionsRequest request, io.grpc.stub.StreamObserver<ListSessionsResponse> responseObserver) Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
-
listFiles
public void listFiles(ListFilesRequest request, io.grpc.stub.StreamObserver<ListFilesResponse> responseObserver) Lists metadata for all files in the current session.
-