Class GrpcCloudShellServiceStub (2.38.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcCloudShellServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudShellServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCloudShellServiceStub
Exceptions
TypeDescription
IOException

create(CloudShellServiceStubSettings settings)

public static final GrpcCloudShellServiceStub create(CloudShellServiceStubSettings settings)
Parameter
NameDescription
settingsCloudShellServiceStubSettings
Returns
TypeDescription
GrpcCloudShellServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsCloudShellServiceStubSettings
clientContextClientContext

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
NameDescription
settingsCloudShellServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

addPublicKeyCallable()

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

addPublicKeyOperationCallable()

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

authorizeEnvironmentCallable()

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

authorizeEnvironmentOperationCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getEnvironmentCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

removePublicKeyCallable()

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

removePublicKeyOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startEnvironmentCallable()

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

startEnvironmentOperationCallable()

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