Class HttpJsonResourceSettingsServiceStub (1.32.0)

public class HttpJsonResourceSettingsServiceStub extends ResourceSettingsServiceStub

REST stub implementation for the ResourceSettingsService service API.

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

Inheritance

java.lang.Object > ResourceSettingsServiceStub > HttpJsonResourceSettingsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ResourceSettingsServiceStubSettings settings)

public static final HttpJsonResourceSettingsServiceStub create(ResourceSettingsServiceStubSettings settings)
Parameter
NameDescription
settingsResourceSettingsServiceStubSettings
Returns
TypeDescription
HttpJsonResourceSettingsServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonResourceSettingsServiceStub, 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
settingsResourceSettingsServiceStubSettings
clientContextClientContext

HttpJsonResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonResourceSettingsServiceStub, 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
settingsResourceSettingsServiceStubSettings
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

getSettingCallable()

public UnaryCallable<GetSettingRequest,Setting> getSettingCallable()
Returns
TypeDescription
UnaryCallable<GetSettingRequest,Setting>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSettingsCallable()

public UnaryCallable<ListSettingsRequest,ListSettingsResponse> listSettingsCallable()
Returns
TypeDescription
UnaryCallable<ListSettingsRequest,ListSettingsResponse>
Overrides

listSettingsPagedCallable()

public UnaryCallable<ListSettingsRequest,ResourceSettingsServiceClient.ListSettingsPagedResponse> listSettingsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSettingsRequest,ListSettingsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSettingCallable()

public UnaryCallable<UpdateSettingRequest,Setting> updateSettingCallable()
Returns
TypeDescription
UnaryCallable<UpdateSettingRequest,Setting>
Overrides