Class HttpJsonSnapshotsV1Beta3Stub (0.18.0)

public class HttpJsonSnapshotsV1Beta3Stub extends SnapshotsV1Beta3Stub

REST stub implementation for the SnapshotsV1Beta3 service API.

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

Inheritance

java.lang.Object > SnapshotsV1Beta3Stub > HttpJsonSnapshotsV1Beta3Stub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SnapshotsV1Beta3StubSettings settings)

public static final HttpJsonSnapshotsV1Beta3Stub create(SnapshotsV1Beta3StubSettings settings)
Parameter
NameDescription
settingsSnapshotsV1Beta3StubSettings
Returns
TypeDescription
HttpJsonSnapshotsV1Beta3Stub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonSnapshotsV1Beta3Stub(SnapshotsV1Beta3StubSettings settings, ClientContext clientContext)

protected HttpJsonSnapshotsV1Beta3Stub(SnapshotsV1Beta3StubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSnapshotsV1Beta3Stub, 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
settingsSnapshotsV1Beta3StubSettings
clientContextClientContext

HttpJsonSnapshotsV1Beta3Stub(SnapshotsV1Beta3StubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSnapshotsV1Beta3Stub(SnapshotsV1Beta3StubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSnapshotsV1Beta3Stub, 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
settingsSnapshotsV1Beta3StubSettings
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

deleteSnapshotCallable()

public UnaryCallable<DeleteSnapshotRequest,DeleteSnapshotResponse> deleteSnapshotCallable()
Returns
TypeDescription
UnaryCallable<DeleteSnapshotRequest,DeleteSnapshotResponse>
Overrides

getSnapshotCallable()

public UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()
Returns
TypeDescription
UnaryCallable<GetSnapshotRequest,Snapshot>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSnapshotsCallable()

public UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()
Returns
TypeDescription
UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()