Class GrpcProductReviewsServiceStub (0.1.0)

public class GrpcProductReviewsServiceStub extends ProductReviewsServiceStub

gRPC stub implementation for the ProductReviewsService service API.

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

Inheritance

java.lang.Object > ProductReviewsServiceStub > GrpcProductReviewsServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcProductReviewsServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcProductReviewsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcProductReviewsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcProductReviewsServiceStub
Exceptions
Type Description
IOException

create(ProductReviewsServiceStubSettings settings)

public static final GrpcProductReviewsServiceStub create(ProductReviewsServiceStubSettings settings)
Parameter
Name Description
settings ProductReviewsServiceStubSettings
Returns
Type Description
GrpcProductReviewsServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcProductReviewsServiceStub(ProductReviewsServiceStubSettings settings, ClientContext clientContext)

protected GrpcProductReviewsServiceStub(ProductReviewsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcProductReviewsServiceStub, 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
Name Description
settings ProductReviewsServiceStubSettings
clientContext ClientContext

GrpcProductReviewsServiceStub(ProductReviewsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcProductReviewsServiceStub(ProductReviewsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcProductReviewsServiceStub, 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
Name Description
settings ProductReviewsServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteProductReviewCallable()

public UnaryCallable<DeleteProductReviewRequest,Empty> deleteProductReviewCallable()
Returns
Type Description
UnaryCallable<DeleteProductReviewRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getProductReviewCallable()

public UnaryCallable<GetProductReviewRequest,ProductReview> getProductReviewCallable()
Returns
Type Description
UnaryCallable<GetProductReviewRequest,ProductReview>
Overrides

insertProductReviewCallable()

public UnaryCallable<InsertProductReviewRequest,ProductReview> insertProductReviewCallable()
Returns
Type Description
UnaryCallable<InsertProductReviewRequest,ProductReview>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listProductReviewsCallable()

public UnaryCallable<ListProductReviewsRequest,ListProductReviewsResponse> listProductReviewsCallable()
Returns
Type Description
UnaryCallable<ListProductReviewsRequest,ListProductReviewsResponse>
Overrides

listProductReviewsPagedCallable()

public UnaryCallable<ListProductReviewsRequest,ProductReviewsServiceClient.ListProductReviewsPagedResponse> listProductReviewsPagedCallable()
Returns
Type Description
UnaryCallable<ListProductReviewsRequest,ListProductReviewsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()