Class DocumentsConnection (2.24.0)

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

To create a concrete instance, see MakeDocumentsConnection().

For mocking, see dialogflow_es_mocks::MockDocumentsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListDocuments(google::cloud::dialogflow::v2::ListDocumentsRequest)

Parameter
Name Description
request google::cloud::dialogflow::v2::ListDocumentsRequest
Returns
Type Description
StreamRange< google::cloud::dialogflow::v2::Document >

virtual GetDocument(google::cloud::dialogflow::v2::GetDocumentRequest const &)

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

virtual CreateDocument(google::cloud::dialogflow::v2::CreateDocumentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::CreateDocumentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::v2::Document > >

virtual ImportDocuments(google::cloud::dialogflow::v2::ImportDocumentsRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::ImportDocumentsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::v2::ImportDocumentsResponse > >

virtual DeleteDocument(google::cloud::dialogflow::v2::DeleteDocumentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::DeleteDocumentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::v2::KnowledgeOperationMetadata > >

virtual UpdateDocument(google::cloud::dialogflow::v2::UpdateDocumentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::UpdateDocumentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::v2::Document > >

virtual ReloadDocument(google::cloud::dialogflow::v2::ReloadDocumentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::ReloadDocumentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::v2::Document > >

virtual ExportDocument(google::cloud::dialogflow::v2::ExportDocumentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::ExportDocumentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::v2::Document > >