Class DocumentLinkServiceConnection (2.31.0)

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

To create a concrete instance, see MakeDocumentLinkServiceConnection().

For mocking, see contentwarehouse_v1_mocks::MockDocumentLinkServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListLinkedTargets(google::cloud::contentwarehouse::v1::ListLinkedTargetsRequest const &)

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

virtual ListLinkedSources(google::cloud::contentwarehouse::v1::ListLinkedSourcesRequest)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::ListLinkedSourcesRequest
Returns
Type Description
StreamRange< google::cloud::contentwarehouse::v1::DocumentLink >

virtual CreateDocumentLink(google::cloud::contentwarehouse::v1::CreateDocumentLinkRequest const &)

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

virtual DeleteDocumentLink(google::cloud::contentwarehouse::v1::DeleteDocumentLinkRequest const &)

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

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

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