Class DocumentServiceConnection (2.21.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 discoveryengine_v1_mocks::MockDocumentServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

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

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

virtual ListDocuments(google::cloud::discoveryengine::v1::ListDocumentsRequest)

Parameter
NameDescription
request google::cloud::discoveryengine::v1::ListDocumentsRequest
Returns
TypeDescription
StreamRange< google::cloud::discoveryengine::v1::Document >

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

Parameter
NameDescription
request google::cloud::discoveryengine::v1::CreateDocumentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::discoveryengine::v1::Document >

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

Parameter
NameDescription
request google::cloud::discoveryengine::v1::UpdateDocumentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::discoveryengine::v1::Document >

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

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

virtual ImportDocuments(google::cloud::discoveryengine::v1::ImportDocumentsRequest const &)

Parameter
NameDescription
request google::cloud::discoveryengine::v1::ImportDocumentsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::discoveryengine::v1::ImportDocumentsResponse > >

virtual PurgeDocuments(google::cloud::discoveryengine::v1::PurgeDocumentsRequest const &)

Parameter
NameDescription
request google::cloud::discoveryengine::v1::PurgeDocumentsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::discoveryengine::v1::PurgeDocumentsResponse > >