Class GrpcResourceSettingsServiceStub (1.4.0)

public class GrpcResourceSettingsServiceStub extends ResourceSettingsServiceStub

gRPC stub implementation for the ResourceSettingsService service API.

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

Inheritance

java.lang.Object > ResourceSettingsServiceStub > GrpcResourceSettingsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcResourceSettingsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcResourceSettingsServiceStub
Exceptions
TypeDescription
IOException

create(ResourceSettingsServiceStubSettings settings)

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

Constructors

GrpcResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext)

protected GrpcResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext)

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

GrpcResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcResourceSettingsServiceStub(ResourceSettingsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcResourceSettingsServiceStub, 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
callableFactoryGrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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