Class DocumentLinkServiceGrpc.DocumentLinkServiceFutureStub (0.8.0)

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

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreateDocumentLinkRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<DocumentLink>
public ListenableFuture<Empty> deleteDocumentLink(DeleteDocumentLinkRequest request)

Remove the link between the source and target documents.

Parameter
NameDescription
requestDeleteDocumentLinkRequest
Returns
TypeDescription
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
NameDescription
requestListLinkedSourcesRequest
Returns
TypeDescription
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
NameDescription
requestListLinkedTargetsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListLinkedTargetsResponse>