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 protected
GrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcCloudShellServiceStub, using the given settings.protected
GrpcCloudShellServiceStub(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()
boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcCloudShellServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcCloudShellServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcCloudShellServiceStub
create(CloudShellServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment>
getEnvironmentCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<RemovePublicKeyRequest,com.google.longrunning.Operation>
removePublicKeyCallable()
com.google.api.gax.rpc.OperationCallable<RemovePublicKeyRequest,RemovePublicKeyResponse,RemovePublicKeyMetadata>
removePublicKeyOperationCallable()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classCloudShellServiceStub
-
getEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment> getEnvironmentCallable()
- Overrides:
getEnvironmentCallable
in classCloudShellServiceStub
-
startEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<StartEnvironmentRequest,com.google.longrunning.Operation> startEnvironmentCallable()
- Overrides:
startEnvironmentCallable
in classCloudShellServiceStub
-
startEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartEnvironmentRequest,StartEnvironmentResponse,StartEnvironmentMetadata> startEnvironmentOperationCallable()
- Overrides:
startEnvironmentOperationCallable
in classCloudShellServiceStub
-
authorizeEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<AuthorizeEnvironmentRequest,com.google.longrunning.Operation> authorizeEnvironmentCallable()
- Overrides:
authorizeEnvironmentCallable
in classCloudShellServiceStub
-
authorizeEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<AuthorizeEnvironmentRequest,AuthorizeEnvironmentResponse,AuthorizeEnvironmentMetadata> authorizeEnvironmentOperationCallable()
- Overrides:
authorizeEnvironmentOperationCallable
in classCloudShellServiceStub
-
addPublicKeyCallable
public com.google.api.gax.rpc.UnaryCallable<AddPublicKeyRequest,com.google.longrunning.Operation> addPublicKeyCallable()
- Overrides:
addPublicKeyCallable
in classCloudShellServiceStub
-
addPublicKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddPublicKeyRequest,AddPublicKeyResponse,AddPublicKeyMetadata> addPublicKeyOperationCallable()
- Overrides:
addPublicKeyOperationCallable
in classCloudShellServiceStub
-
removePublicKeyCallable
public com.google.api.gax.rpc.UnaryCallable<RemovePublicKeyRequest,com.google.longrunning.Operation> removePublicKeyCallable()
- Overrides:
removePublicKeyCallable
in classCloudShellServiceStub
-
removePublicKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemovePublicKeyRequest,RemovePublicKeyResponse,RemovePublicKeyMetadata> removePublicKeyOperationCallable()
- Overrides:
removePublicKeyOperationCallable
in classCloudShellServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-