Class HttpJsonServingConfigServiceStub (2.5.1)

public class HttpJsonServingConfigServiceStub extends ServingConfigServiceStub

REST stub implementation for the ServingConfigService service API.

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

Inheritance

java.lang.Object > ServingConfigServiceStub > HttpJsonServingConfigServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ServingConfigServiceStubSettings settings)

public static final HttpJsonServingConfigServiceStub create(ServingConfigServiceStubSettings settings)
Parameter
NameDescription
settingsServingConfigServiceStubSettings
Returns
TypeDescription
HttpJsonServingConfigServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonServingConfigServiceStub, 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
settingsServingConfigServiceStubSettings
clientContextClientContext

HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonServingConfigServiceStub, 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
settingsServingConfigServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

addControlCallable()

public UnaryCallable<AddControlRequest,ServingConfig> addControlCallable()
Returns
TypeDescription
UnaryCallable<AddControlRequest,ServingConfig>
Overrides

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

createServingConfigCallable()

public UnaryCallable<CreateServingConfigRequest,ServingConfig> createServingConfigCallable()
Returns
TypeDescription
UnaryCallable<CreateServingConfigRequest,ServingConfig>
Overrides

deleteServingConfigCallable()

public UnaryCallable<DeleteServingConfigRequest,Empty> deleteServingConfigCallable()
Returns
TypeDescription
UnaryCallable<DeleteServingConfigRequest,Empty>
Overrides

getServingConfigCallable()

public UnaryCallable<GetServingConfigRequest,ServingConfig> getServingConfigCallable()
Returns
TypeDescription
UnaryCallable<GetServingConfigRequest,ServingConfig>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listServingConfigsCallable()

public UnaryCallable<ListServingConfigsRequest,ListServingConfigsResponse> listServingConfigsCallable()
Returns
TypeDescription
UnaryCallable<ListServingConfigsRequest,ListServingConfigsResponse>
Overrides

listServingConfigsPagedCallable()

public UnaryCallable<ListServingConfigsRequest,ServingConfigServiceClient.ListServingConfigsPagedResponse> listServingConfigsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListServingConfigsRequest,ListServingConfigsPagedResponse>
Overrides

removeControlCallable()

public UnaryCallable<RemoveControlRequest,ServingConfig> removeControlCallable()
Returns
TypeDescription
UnaryCallable<RemoveControlRequest,ServingConfig>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateServingConfigCallable()

public UnaryCallable<UpdateServingConfigRequest,ServingConfig> updateServingConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateServingConfigRequest,ServingConfig>
Overrides