Class DocumentServiceGrpc.DocumentServiceStub (0.2.0)

public static final class DocumentServiceGrpc.DocumentServiceStub extends AbstractAsyncStub<DocumentServiceGrpc.DocumentServiceStub>

Service for ingesting Document information of the customer's website.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > DocumentServiceGrpc.DocumentServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected DocumentServiceGrpc.DocumentServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
DocumentServiceGrpc.DocumentServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDocument(CreateDocumentRequest request, StreamObserver<Document> responseObserver)

public void createDocument(CreateDocumentRequest request, StreamObserver<Document> responseObserver)

Creates a Document.

Parameters
NameDescription
requestCreateDocumentRequest
responseObserverio.grpc.stub.StreamObserver<Document>

deleteDocument(DeleteDocumentRequest request, StreamObserver<Empty> responseObserver)

public void deleteDocument(DeleteDocumentRequest request, StreamObserver<Empty> responseObserver)

Deletes a Document.

Parameters
NameDescription
requestDeleteDocumentRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getDocument(GetDocumentRequest request, StreamObserver<Document> responseObserver)

public void getDocument(GetDocumentRequest request, StreamObserver<Document> responseObserver)

Gets a Document.

Parameters
NameDescription
requestGetDocumentRequest
responseObserverio.grpc.stub.StreamObserver<Document>

importDocuments(ImportDocumentsRequest request, StreamObserver<Operation> responseObserver)

public void importDocuments(ImportDocumentsRequest request, StreamObserver<Operation> responseObserver)

Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully updated.

Parameters
NameDescription
requestImportDocumentsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

listDocuments(ListDocumentsRequest request, StreamObserver<ListDocumentsResponse> responseObserver)

public void listDocuments(ListDocumentsRequest request, StreamObserver<ListDocumentsResponse> responseObserver)

Gets a list of Documents.

Parameters
NameDescription
requestListDocumentsRequest
responseObserverio.grpc.stub.StreamObserver<ListDocumentsResponse>

updateDocument(UpdateDocumentRequest request, StreamObserver<Document> responseObserver)

public void updateDocument(UpdateDocumentRequest request, StreamObserver<Document> responseObserver)

Updates a Document.

Parameters
NameDescription
requestUpdateDocumentRequest
responseObserverio.grpc.stub.StreamObserver<Document>