Class GrpcCssProductsServiceStub (0.4.0)

public class GrpcCssProductsServiceStub extends CssProductsServiceStub

gRPC stub implementation for the CssProductsService service API.

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

Inheritance

java.lang.Object > CssProductsServiceStub > GrpcCssProductsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CssProductsServiceStubSettings settings)

public static final GrpcCssProductsServiceStub create(CssProductsServiceStubSettings settings)
Parameter
NameDescription
settingsCssProductsServiceStubSettings
Returns
TypeDescription
GrpcCssProductsServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCssProductsServiceStub(CssProductsServiceStubSettings settings, ClientContext clientContext)

protected GrpcCssProductsServiceStub(CssProductsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCssProductsServiceStub, 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
settingsCssProductsServiceStubSettings
clientContextClientContext

GrpcCssProductsServiceStub(CssProductsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCssProductsServiceStub(CssProductsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

getCssProductCallable()

public UnaryCallable<GetCssProductRequest,CssProduct> getCssProductCallable()
Returns
TypeDescription
UnaryCallable<GetCssProductRequest,CssProduct>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCssProductsCallable()

public UnaryCallable<ListCssProductsRequest,ListCssProductsResponse> listCssProductsCallable()
Returns
TypeDescription
UnaryCallable<ListCssProductsRequest,ListCssProductsResponse>
Overrides

listCssProductsPagedCallable()

public UnaryCallable<ListCssProductsRequest,CssProductsServiceClient.ListCssProductsPagedResponse> listCssProductsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCssProductsRequest,ListCssProductsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()