Class HttpJsonRegionInstantSnapshotsStub (1.51.0)

public class HttpJsonRegionInstantSnapshotsStub extends RegionInstantSnapshotsStub

REST stub implementation for the RegionInstantSnapshots service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > RegionInstantSnapshotsStub > HttpJsonRegionInstantSnapshotsStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonRegionInstantSnapshotsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonRegionInstantSnapshotsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonRegionInstantSnapshotsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonRegionInstantSnapshotsStub
Exceptions
TypeDescription
IOException

create(RegionInstantSnapshotsStubSettings settings)

public static final HttpJsonRegionInstantSnapshotsStub create(RegionInstantSnapshotsStubSettings settings)
Parameter
NameDescription
settingsRegionInstantSnapshotsStubSettings
Returns
TypeDescription
HttpJsonRegionInstantSnapshotsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonRegionInstantSnapshotsStub(RegionInstantSnapshotsStubSettings settings, ClientContext clientContext)

protected HttpJsonRegionInstantSnapshotsStub(RegionInstantSnapshotsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegionInstantSnapshotsStub, 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
settingsRegionInstantSnapshotsStubSettings
clientContextClientContext

HttpJsonRegionInstantSnapshotsStub(RegionInstantSnapshotsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegionInstantSnapshotsStub(RegionInstantSnapshotsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRegionInstantSnapshotsStub, 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
settingsRegionInstantSnapshotsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

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

deleteCallable()

public UnaryCallable<DeleteRegionInstantSnapshotRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteRegionInstantSnapshotRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteRegionInstantSnapshotRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRegionInstantSnapshotRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetRegionInstantSnapshotRequest,InstantSnapshot> getCallable()
Returns
TypeDescription
UnaryCallable<GetRegionInstantSnapshotRequest,InstantSnapshot>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRegionInstantSnapshotRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetIamPolicyRegionInstantSnapshotRequest,Policy>
Overrides

insertCallable()

public UnaryCallable<InsertRegionInstantSnapshotRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertRegionInstantSnapshotRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertRegionInstantSnapshotRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertRegionInstantSnapshotRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListRegionInstantSnapshotsRequest,InstantSnapshotList> listCallable()
Returns
TypeDescription
UnaryCallable<ListRegionInstantSnapshotsRequest,InstantSnapshotList>
Overrides

listPagedCallable()

public UnaryCallable<ListRegionInstantSnapshotsRequest,RegionInstantSnapshotsClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRegionInstantSnapshotsRequest,ListPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRegionInstantSnapshotRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetIamPolicyRegionInstantSnapshotRequest,Policy>
Overrides

setLabelsCallable()

public UnaryCallable<SetLabelsRegionInstantSnapshotRequest,Operation> setLabelsCallable()
Returns
TypeDescription
UnaryCallable<SetLabelsRegionInstantSnapshotRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsRegionInstantSnapshotRequest,Operation,Operation> setLabelsOperationCallable()
Returns
TypeDescription
OperationCallable<SetLabelsRegionInstantSnapshotRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRegionInstantSnapshotRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<TestIamPermissionsRegionInstantSnapshotRequest,TestPermissionsResponse>
Overrides