Class SessionServiceGrpc.SessionServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<SessionServiceGrpc.SessionServiceFutureStub>
com.google.cloud.discoveryengine.v1alpha.SessionServiceGrpc.SessionServiceFutureStub
- Enclosing class:
- SessionServiceGrpc
public static final class SessionServiceGrpc.SessionServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<SessionServiceGrpc.SessionServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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) com.google.common.util.concurrent.ListenableFuture<Session>createSession(CreateSessionRequest request) Creates a Session.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>deleteSession(DeleteSessionRequest request) Deletes a Session.com.google.common.util.concurrent.ListenableFuture<Session>getSession(GetSessionRequest request) Gets a Session.com.google.common.util.concurrent.ListenableFuture<ListFilesResponse>listFiles(ListFilesRequest request) Lists metadata for all files in the current session.com.google.common.util.concurrent.ListenableFuture<ListSessionsResponse>listSessions(ListSessionsRequest request) Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].com.google.common.util.concurrent.ListenableFuture<Session>updateSession(UpdateSessionRequest request) Updates a Session.Methods inherited from class io.grpc.stub.AbstractFutureStub
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.SessionServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SessionServiceGrpc.SessionServiceFutureStub>
-
createSession
public com.google.common.util.concurrent.ListenableFuture<Session> createSession(CreateSessionRequest request) Creates a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to create already exists, an ALREADY_EXISTS error is returned.
-
deleteSession
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteSession(DeleteSessionRequest request) Deletes a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to delete does not exist, a NOT_FOUND error is returned.
-
updateSession
public com.google.common.util.concurrent.ListenableFuture<Session> updateSession(UpdateSessionRequest request) 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 com.google.common.util.concurrent.ListenableFuture<Session> getSession(GetSessionRequest request) Gets a Session.
-
listSessions
public com.google.common.util.concurrent.ListenableFuture<ListSessionsResponse> listSessions(ListSessionsRequest request) Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
-
listFiles
public com.google.common.util.concurrent.ListenableFuture<ListFilesResponse> listFiles(ListFilesRequest request) Lists metadata for all files in the current session.
-