Class GrpcServingConfigServiceStub (0.35.0)

public class GrpcServingConfigServiceStub extends ServingConfigServiceStub

gRPC stub implementation for the ServingConfigService service API.

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

Inheritance

java.lang.Object > ServingConfigServiceStub > GrpcServingConfigServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ServingConfigServiceStubSettings settings)

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

Constructors

GrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext)

protected GrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext)

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

GrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

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