Package com.google.cloud.compute.v1.stub
Class HttpJsonSnapshotsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.SnapshotsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonSnapshotsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonSnapshotsStub extends SnapshotsStub
REST stub implementation for the Snapshots service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonSnapshotsStub, using the given settings.protectedHttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonSnapshotsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonSnapshotsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonSnapshotsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonSnapshotsStubcreate(SnapshotsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,Operation>deleteCallable()com.google.api.gax.rpc.OperationCallable<DeleteSnapshotRequest,Operation,Operation>deleteOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot>getCallable()com.google.api.gax.rpc.UnaryCallable<GetIamPolicySnapshotRequest,Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<InsertSnapshotRequest,Operation>insertCallable()com.google.api.gax.rpc.OperationCallable<InsertSnapshotRequest,Operation,Operation>insertOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotList>listCallable()com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotsClient.ListPagedResponse>listPagedCallable()com.google.api.gax.rpc.UnaryCallable<SetIamPolicySnapshotRequest,Policy>setIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<SetLabelsSnapshotRequest,Operation>setLabelsCallable()com.google.api.gax.rpc.OperationCallable<SetLabelsSnapshotRequest,Operation,Operation>setLabelsOperationCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsSnapshotRequest,TestPermissionsResponse>testIamPermissionsCallable()
-
-
-
Constructor Detail
-
HttpJsonSnapshotsStub
protected HttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonSnapshotsStub, 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
-
HttpJsonSnapshotsStub
protected HttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonSnapshotsStub, 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 HttpJsonSnapshotsStub create(SnapshotsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSnapshotsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSnapshotsStub 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()
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classSnapshotsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteSnapshotRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classSnapshotsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot> getCallable()
- Overrides:
getCallablein classSnapshotsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicySnapshotRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classSnapshotsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertSnapshotRequest,Operation> insertCallable()
- Overrides:
insertCallablein classSnapshotsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertSnapshotRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classSnapshotsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotList> listCallable()
- Overrides:
listCallablein classSnapshotsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classSnapshotsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicySnapshotRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classSnapshotsStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsSnapshotRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classSnapshotsStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsSnapshotRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classSnapshotsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsSnapshotRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classSnapshotsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSnapshotsStub
-
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
-
-