Class DocumentLinkServiceGrpc.DocumentLinkServiceFutureStub (0.45.0)

public static final class DocumentLinkServiceGrpc.DocumentLinkServiceFutureStub extends AbstractFutureStub<DocumentLinkServiceGrpc.DocumentLinkServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentLinkService.

This service lets you manage document-links. Document-Links are treated as sub-resources under source documents.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > DocumentLinkServiceGrpc.DocumentLinkServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected DocumentLinkServiceGrpc.DocumentLinkServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DocumentLinkServiceGrpc.DocumentLinkServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
public ListenableFuture<DocumentLink> createDocumentLink(CreateDocumentLinkRequest request)

Create a link between a source document and a target document.

Parameter
Name Description
request CreateDocumentLinkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DocumentLink>
public ListenableFuture<Empty> deleteDocumentLink(DeleteDocumentLinkRequest request)

Remove the link between the source and target documents.

Parameter
Name Description
request DeleteDocumentLinkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

listLinkedSources(ListLinkedSourcesRequest request)

public ListenableFuture<ListLinkedSourcesResponse> listLinkedSources(ListLinkedSourcesRequest request)

Return all source document-links from the document.

Parameter
Name Description
request ListLinkedSourcesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListLinkedSourcesResponse>

listLinkedTargets(ListLinkedTargetsRequest request)

public ListenableFuture<ListLinkedTargetsResponse> listLinkedTargets(ListLinkedTargetsRequest request)

Return all target document-links from the document.

Parameter
Name Description
request ListLinkedTargetsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListLinkedTargetsResponse>