Class GrpcCloudShellServiceStub (2.46.0)

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.

Inheritance

java.lang.Object > CloudShellServiceStub > GrpcCloudShellServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcCloudShellServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcCloudShellServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudShellServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcCloudShellServiceStub
Exceptions
Type Description
IOException

create(CloudShellServiceStubSettings settings)

public static final GrpcCloudShellServiceStub create(CloudShellServiceStubSettings settings)
Parameter
Name Description
settings CloudShellServiceStubSettings
Returns
Type Description
GrpcCloudShellServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext)

protected GrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
Name Description
settings CloudShellServiceStubSettings
clientContext ClientContext

GrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
Name Description
settings CloudShellServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

addPublicKeyCallable()

public UnaryCallable<AddPublicKeyRequest,Operation> addPublicKeyCallable()
Returns
Type Description
UnaryCallable<AddPublicKeyRequest,Operation>
Overrides

addPublicKeyOperationCallable()

public OperationCallable<AddPublicKeyRequest,AddPublicKeyResponse,AddPublicKeyMetadata> addPublicKeyOperationCallable()
Returns
Type Description
OperationCallable<AddPublicKeyRequest,AddPublicKeyResponse,AddPublicKeyMetadata>
Overrides

authorizeEnvironmentCallable()

public UnaryCallable<AuthorizeEnvironmentRequest,Operation> authorizeEnvironmentCallable()
Returns
Type Description
UnaryCallable<AuthorizeEnvironmentRequest,Operation>
Overrides

authorizeEnvironmentOperationCallable()

public OperationCallable<AuthorizeEnvironmentRequest,AuthorizeEnvironmentResponse,AuthorizeEnvironmentMetadata> authorizeEnvironmentOperationCallable()
Returns
Type Description
OperationCallable<AuthorizeEnvironmentRequest,AuthorizeEnvironmentResponse,AuthorizeEnvironmentMetadata>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

getEnvironmentCallable()

public UnaryCallable<GetEnvironmentRequest,Environment> getEnvironmentCallable()
Returns
Type Description
UnaryCallable<GetEnvironmentRequest,Environment>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

removePublicKeyCallable()

public UnaryCallable<RemovePublicKeyRequest,Operation> removePublicKeyCallable()
Returns
Type Description
UnaryCallable<RemovePublicKeyRequest,Operation>
Overrides

removePublicKeyOperationCallable()

public OperationCallable<RemovePublicKeyRequest,RemovePublicKeyResponse,RemovePublicKeyMetadata> removePublicKeyOperationCallable()
Returns
Type Description
OperationCallable<RemovePublicKeyRequest,RemovePublicKeyResponse,RemovePublicKeyMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startEnvironmentCallable()

public UnaryCallable<StartEnvironmentRequest,Operation> startEnvironmentCallable()
Returns
Type Description
UnaryCallable<StartEnvironmentRequest,Operation>
Overrides

startEnvironmentOperationCallable()

public OperationCallable<StartEnvironmentRequest,StartEnvironmentResponse,StartEnvironmentMetadata> startEnvironmentOperationCallable()
Returns
Type Description
OperationCallable<StartEnvironmentRequest,StartEnvironmentResponse,StartEnvironmentMetadata>
Overrides