Class DocumentServiceConnection (2.21.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in DocumentServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DocumentServiceClient.

To create a concrete instance, see MakeDocumentServiceConnection().

For mocking, see contentwarehouse_v1_mocks::MockDocumentServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateDocument(google::cloud::contentwarehouse::v1::CreateDocumentRequest const &)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::CreateDocumentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::CreateDocumentResponse >

virtual GetDocument(google::cloud::contentwarehouse::v1::GetDocumentRequest const &)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::GetDocumentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::Document >

virtual UpdateDocument(google::cloud::contentwarehouse::v1::UpdateDocumentRequest const &)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::UpdateDocumentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::UpdateDocumentResponse >

virtual DeleteDocument(google::cloud::contentwarehouse::v1::DeleteDocumentRequest const &)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::DeleteDocumentRequest const &
Returns
TypeDescription
Status

virtual SearchDocuments(google::cloud::contentwarehouse::v1::SearchDocumentsRequest)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::SearchDocumentsRequest
Returns
TypeDescription
StreamRange< google::cloud::contentwarehouse::v1::SearchDocumentsResponse::MatchingDocument >

virtual LockDocument(google::cloud::contentwarehouse::v1::LockDocumentRequest const &)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::LockDocumentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::Document >

virtual FetchAcl(google::cloud::contentwarehouse::v1::FetchAclRequest const &)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::FetchAclRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::FetchAclResponse >

virtual SetAcl(google::cloud::contentwarehouse::v1::SetAclRequest const &)

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::SetAclRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::SetAclResponse >