public class GrpcRevisionsStub extends RevisionsStub
gRPC stub implementation for the Revisions service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcRevisionsStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcRevisionsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(RevisionsStubSettings settings)
public static final GrpcRevisionsStub create(RevisionsStubSettings settings)
Parameter
Returns
Exceptions
Constructors
GrpcRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext)
protected GrpcRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcRevisionsStub, 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
GrpcRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcRevisionsStub, 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
deleteRevisionCallable()
public UnaryCallable<DeleteRevisionRequest,Operation> deleteRevisionCallable()
Returns
Overrides
deleteRevisionOperationCallable()
public OperationCallable<DeleteRevisionRequest,Revision,Revision> deleteRevisionOperationCallable()
Returns
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns
Overrides
getRevisionCallable()
public UnaryCallable<GetRevisionRequest,Revision> getRevisionCallable()
Returns
Overrides
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listRevisionsCallable()
public UnaryCallable<ListRevisionsRequest,ListRevisionsResponse> listRevisionsCallable()
Returns
Overrides
listRevisionsPagedCallable()
public UnaryCallable<ListRevisionsRequest,RevisionsClient.ListRevisionsPagedResponse> listRevisionsPagedCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()