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 protectedHttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonCloudShellServiceStub, using the given settings.protectedHttpJsonCloudShellServiceStub(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()booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonCloudShellServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonCloudShellServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonCloudShellServiceStubcreate(CloudShellServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment>getEnvironmentCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()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
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:
getHttpJsonOperationsStubin 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
-
-