Class DocumentLinkServiceGrpc.DocumentLinkServiceStub (0.50.0)

public static final class DocumentLinkServiceGrpc.DocumentLinkServiceStub extends AbstractAsyncStub<DocumentLinkServiceGrpc.DocumentLinkServiceStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > DocumentLinkServiceGrpc.DocumentLinkServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

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

Parameters
Name Description
request CreateDocumentLinkRequest
responseObserver io.grpc.stub.StreamObserver<DocumentLink>
public void deleteDocumentLink(DeleteDocumentLinkRequest request, StreamObserver<Empty> responseObserver)

Remove the link between the source and target documents.

Parameters
Name Description
request DeleteDocumentLinkRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

listLinkedSources(ListLinkedSourcesRequest request, StreamObserver<ListLinkedSourcesResponse> responseObserver)

public void listLinkedSources(ListLinkedSourcesRequest request, StreamObserver<ListLinkedSourcesResponse> responseObserver)

Return all source document-links from the document.

Parameters
Name Description
request ListLinkedSourcesRequest
responseObserver io.grpc.stub.StreamObserver<ListLinkedSourcesResponse>

listLinkedTargets(ListLinkedTargetsRequest request, StreamObserver<ListLinkedTargetsResponse> responseObserver)

public void listLinkedTargets(ListLinkedTargetsRequest request, StreamObserver<ListLinkedTargetsResponse> responseObserver)

Return all target document-links from the document.

Parameters
Name Description
request ListLinkedTargetsRequest
responseObserver io.grpc.stub.StreamObserver<ListLinkedTargetsResponse>