Class GrpcSessionServiceStub
java.lang.Object
com.google.cloud.aiplatform.v1beta1.stub.SessionServiceStub
com.google.cloud.aiplatform.v1beta1.stub.GrpcSessionServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcSessionServiceStub
extends SessionServiceStub
gRPC stub implementation for the SessionService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcSessionServiceStub(SessionServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcSessionServiceStub, using the given settings.protectedGrpcSessionServiceStub(SessionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcSessionServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcSessionServiceStubcreate(ClientContext clientContext) static final GrpcSessionServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcSessionServiceStubcreate(SessionServiceStubSettings settings) OperationCallable<DeleteSessionRequest,com.google.protobuf.Empty, DeleteOperationMetadata> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcSessionServiceStub
protected GrpcSessionServiceStub(SessionServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcSessionServiceStub, 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
-
GrpcSessionServiceStub
protected GrpcSessionServiceStub(SessionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcSessionServiceStub, 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 Details
-
create
public static final GrpcSessionServiceStub create(SessionServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcSessionServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classSessionServiceStub
-
createSessionCallable
- Overrides:
createSessionCallablein classSessionServiceStub
-
createSessionOperationCallable
public OperationCallable<CreateSessionRequest,Session, createSessionOperationCallable()CreateSessionOperationMetadata> - Overrides:
createSessionOperationCallablein classSessionServiceStub
-
getSessionCallable
- Overrides:
getSessionCallablein classSessionServiceStub
-
listSessionsCallable
- Overrides:
listSessionsCallablein classSessionServiceStub
-
listSessionsPagedCallable
public UnaryCallable<ListSessionsRequest,SessionServiceClient.ListSessionsPagedResponse> listSessionsPagedCallable()- Overrides:
listSessionsPagedCallablein classSessionServiceStub
-
updateSessionCallable
- Overrides:
updateSessionCallablein classSessionServiceStub
-
deleteSessionCallable
- Overrides:
deleteSessionCallablein classSessionServiceStub
-
deleteSessionOperationCallable
public OperationCallable<DeleteSessionRequest,com.google.protobuf.Empty, deleteSessionOperationCallable()DeleteOperationMetadata> - Overrides:
deleteSessionOperationCallablein classSessionServiceStub
-
listEventsCallable
- Overrides:
listEventsCallablein classSessionServiceStub
-
listEventsPagedCallable
public UnaryCallable<ListEventsRequest,SessionServiceClient.ListEventsPagedResponse> listEventsPagedCallable()- Overrides:
listEventsPagedCallablein classSessionServiceStub
-
appendEventCallable
- Overrides:
appendEventCallablein classSessionServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classSessionServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,SessionServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classSessionServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classSessionServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classSessionServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classSessionServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classSessionServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSessionServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-