Class HttpJsonSnapshotSettingsServiceStub (1.65.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonSnapshotSettingsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSnapshotSettingsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonSnapshotSettingsServiceStub
Exceptions
Type Description
IOException

create(SnapshotSettingsServiceStubSettings settings)

public static final HttpJsonSnapshotSettingsServiceStub create(SnapshotSettingsServiceStubSettings settings)
Parameter
Name Description
settings SnapshotSettingsServiceStubSettings
Returns
Type Description
HttpJsonSnapshotSettingsServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings SnapshotSettingsServiceStubSettings
clientContext ClientContext

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
Name Description
settings SnapshotSettingsServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

getCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

patchCallable()

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

patchOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()