Class DocumentServiceGrpc.DocumentServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<DocumentServiceGrpc.DocumentServiceBlockingStub>
-
- com.google.cloud.contentwarehouse.v1.DocumentServiceGrpc.DocumentServiceBlockingStub
-
- Enclosing class:
- DocumentServiceGrpc
public static final class DocumentServiceGrpc.DocumentServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<DocumentServiceGrpc.DocumentServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service DocumentService.This service lets you manage document.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentServiceGrpc.DocumentServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
CreateDocumentResponse
createDocument(CreateDocumentRequest request)
Creates a document.com.google.protobuf.Empty
deleteDocument(DeleteDocumentRequest request)
Deletes a document.FetchAclResponse
fetchAcl(FetchAclRequest request)
Gets the access control policy for a resource.Document
getDocument(GetDocumentRequest request)
Gets a document.Document
lockDocument(LockDocumentRequest request)
Lock the document so the document cannot be updated by other users.SearchDocumentsResponse
searchDocuments(SearchDocumentsRequest request)
Searches for documents using provided [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SetAclResponse
setAcl(SetAclRequest request)
Sets the access control policy for a resource.UpdateDocumentResponse
updateDocument(UpdateDocumentRequest request)
Updates a document.
-
-
-
Method Detail
-
build
protected DocumentServiceGrpc.DocumentServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<DocumentServiceGrpc.DocumentServiceBlockingStub>
-
createDocument
public CreateDocumentResponse createDocument(CreateDocumentRequest request)
Creates a document.
-
getDocument
public Document getDocument(GetDocumentRequest request)
Gets a document. Returns NOT_FOUND if the document does not exist.
-
updateDocument
public UpdateDocumentResponse updateDocument(UpdateDocumentRequest request)
Updates a document. Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name.
-
deleteDocument
public com.google.protobuf.Empty deleteDocument(DeleteDocumentRequest request)
Deletes a document. Returns NOT_FOUND if the document does not exist.
-
searchDocuments
public SearchDocumentsResponse searchDocuments(SearchDocumentsRequest request)
Searches for documents using provided [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This call only returns documents that the caller has permission to search against.
-
lockDocument
public Document lockDocument(LockDocumentRequest request)
Lock the document so the document cannot be updated by other users.
-
fetchAcl
public FetchAclResponse fetchAcl(FetchAclRequest request)
Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.
-
setAcl
public SetAclResponse setAcl(SetAclRequest request)
Sets the access control policy for a resource. Replaces any existing policy.
-
-