Package com.google.cloud.shell.v1.stub
Class HttpJsonCloudShellServiceStub
- java.lang.Object
-
- com.google.cloud.shell.v1.stub.CloudShellServiceStub
-
- com.google.cloud.shell.v1.stub.HttpJsonCloudShellServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub
REST 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
HttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonCloudShellServiceStub, using the given settings.protected
HttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonCloudShellServiceStub, 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 HttpJsonCloudShellServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonCloudShellServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonCloudShellServiceStub
create(CloudShellServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment>
getEnvironmentCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
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
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonCloudShellServiceStub
protected HttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonCloudShellServiceStub, 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
-
HttpJsonCloudShellServiceStub
protected HttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonCloudShellServiceStub, 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 HttpJsonCloudShellServiceStub create(CloudShellServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCloudShellServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCloudShellServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
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
-
-