Class DocumentServiceConnection (2.33.0)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::CreateDocumentRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::CreateDocumentResponse >

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::GetDocumentRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::Document >

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::UpdateDocumentRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::UpdateDocumentResponse >

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::DeleteDocumentRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::SearchDocumentsRequest
Returns
Type Description
StreamRange< google::cloud::contentwarehouse::v1::SearchDocumentsResponse::MatchingDocument >

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::LockDocumentRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::Document >

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::FetchAclRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::FetchAclResponse >

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

Parameter
Name Description
request google::cloud::contentwarehouse::v1::SetAclRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::SetAclResponse >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >