Package com.google.cloud.shell.v1.stub
Class GrpcCloudShellServiceStub
- java.lang.Object
-
- com.google.cloud.shell.v1.stub.CloudShellServiceStub
-
- com.google.cloud.shell.v1.stub.GrpcCloudShellServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcCloudShellServiceStub extends CloudShellServiceStub
gRPC stub implementation for the CloudShellService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcCloudShellServiceStub, using the given settings.protectedGrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcCloudShellServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallable<AddPublicKeyRequest,com.google.longrunning.Operation>addPublicKeyCallable()com.google.api.gax.rpc.OperationCallable<AddPublicKeyRequest,AddPublicKeyResponse,AddPublicKeyMetadata>addPublicKeyOperationCallable()com.google.api.gax.rpc.UnaryCallable<AuthorizeEnvironmentRequest,com.google.longrunning.Operation>authorizeEnvironmentCallable()com.google.api.gax.rpc.OperationCallable<AuthorizeEnvironmentRequest,AuthorizeEnvironmentResponse,AuthorizeEnvironmentMetadata>authorizeEnvironmentOperationCallable()booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcCloudShellServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcCloudShellServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcCloudShellServiceStubcreate(CloudShellServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment>getEnvironmentCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<RemovePublicKeyRequest,com.google.longrunning.Operation>removePublicKeyCallable()com.google.api.gax.rpc.OperationCallable<RemovePublicKeyRequest,RemovePublicKeyResponse,RemovePublicKeyMetadata>removePublicKeyOperationCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<StartEnvironmentRequest,com.google.longrunning.Operation>startEnvironmentCallable()com.google.api.gax.rpc.OperationCallable<StartEnvironmentRequest,StartEnvironmentResponse,StartEnvironmentMetadata>startEnvironmentOperationCallable()-
Methods inherited from class com.google.cloud.shell.v1.stub.CloudShellServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcCloudShellServiceStub
protected GrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcCloudShellServiceStub, 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
-
GrpcCloudShellServiceStub
protected GrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcCloudShellServiceStub, 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 Detail
-
create
public static final GrpcCloudShellServiceStub create(CloudShellServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudShellServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudShellServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classCloudShellServiceStub
-
getEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment> getEnvironmentCallable()
- Overrides:
getEnvironmentCallablein classCloudShellServiceStub
-
startEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<StartEnvironmentRequest,com.google.longrunning.Operation> startEnvironmentCallable()
- Overrides:
startEnvironmentCallablein classCloudShellServiceStub
-
startEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartEnvironmentRequest,StartEnvironmentResponse,StartEnvironmentMetadata> startEnvironmentOperationCallable()
- Overrides:
startEnvironmentOperationCallablein classCloudShellServiceStub
-
authorizeEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<AuthorizeEnvironmentRequest,com.google.longrunning.Operation> authorizeEnvironmentCallable()
- Overrides:
authorizeEnvironmentCallablein classCloudShellServiceStub
-
authorizeEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<AuthorizeEnvironmentRequest,AuthorizeEnvironmentResponse,AuthorizeEnvironmentMetadata> authorizeEnvironmentOperationCallable()
- Overrides:
authorizeEnvironmentOperationCallablein classCloudShellServiceStub
-
addPublicKeyCallable
public com.google.api.gax.rpc.UnaryCallable<AddPublicKeyRequest,com.google.longrunning.Operation> addPublicKeyCallable()
- Overrides:
addPublicKeyCallablein classCloudShellServiceStub
-
addPublicKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddPublicKeyRequest,AddPublicKeyResponse,AddPublicKeyMetadata> addPublicKeyOperationCallable()
- Overrides:
addPublicKeyOperationCallablein classCloudShellServiceStub
-
removePublicKeyCallable
public com.google.api.gax.rpc.UnaryCallable<RemovePublicKeyRequest,com.google.longrunning.Operation> removePublicKeyCallable()
- Overrides:
removePublicKeyCallablein classCloudShellServiceStub
-
removePublicKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemovePublicKeyRequest,RemovePublicKeyResponse,RemovePublicKeyMetadata> removePublicKeyOperationCallable()
- Overrides:
removePublicKeyOperationCallablein classCloudShellServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudShellServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-