public class GrpcContentServiceStub extends ContentServiceStub
gRPC stub implementation for the ContentService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcContentServiceStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcContentServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(ContentServiceStubSettings settings)
public static final GrpcContentServiceStub create(ContentServiceStubSettings settings)
Parameter
Returns
Exceptions
Constructors
GrpcContentServiceStub(ContentServiceStubSettings settings, ClientContext clientContext)
protected GrpcContentServiceStub(ContentServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcContentServiceStub, 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
GrpcContentServiceStub(ContentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcContentServiceStub(ContentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcContentServiceStub, 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
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
createContentCallable()
public UnaryCallable<CreateContentRequest,Content> createContentCallable()
Returns
Overrides
deleteContentCallable()
public UnaryCallable<DeleteContentRequest,Empty> deleteContentCallable()
Returns
Overrides
getContentCallable()
public UnaryCallable<GetContentRequest,Content> getContentCallable()
Returns
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listContentCallable()
public UnaryCallable<ListContentRequest,ListContentResponse> listContentCallable()
Returns
Overrides
listContentPagedCallable()
public UnaryCallable<ListContentRequest,ContentServiceClient.ListContentPagedResponse> listContentPagedCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
updateContentCallable()
public UnaryCallable<UpdateContentRequest,Content> updateContentCallable()
Returns
Overrides