Class HttpJsonSnapshotSettingsServiceStub (1.44.0)

public class HttpJsonSnapshotSettingsServiceStub extends SnapshotSettingsServiceStub

REST stub implementation for the SnapshotSettingsService service API.

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

Inheritance

java.lang.Object > SnapshotSettingsServiceStub > HttpJsonSnapshotSettingsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SnapshotSettingsServiceStubSettings settings)

public static final HttpJsonSnapshotSettingsServiceStub create(SnapshotSettingsServiceStubSettings settings)
Parameter
NameDescription
settingsSnapshotSettingsServiceStubSettings
Returns
TypeDescription
HttpJsonSnapshotSettingsServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonSnapshotSettingsServiceStub(SnapshotSettingsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonSnapshotSettingsServiceStub(SnapshotSettingsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSnapshotSettingsServiceStub, 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
settingsSnapshotSettingsServiceStubSettings
clientContextClientContext

HttpJsonSnapshotSettingsServiceStub(SnapshotSettingsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSnapshotSettingsServiceStub(SnapshotSettingsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSnapshotSettingsServiceStub, 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
settingsSnapshotSettingsServiceStubSettings
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

getCallable()

public UnaryCallable<GetSnapshotSettingRequest,SnapshotSettings> getCallable()
Returns
TypeDescription
UnaryCallable<GetSnapshotSettingRequest,SnapshotSettings>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

patchCallable()

public UnaryCallable<PatchSnapshotSettingRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchSnapshotSettingRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchSnapshotSettingRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchSnapshotSettingRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()