Class HttpJsonServingConfigServiceStub (0.37.0)

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

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

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateServingConfigCallable()

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