Send feedback
Class MockContactCenterInsightsConnection (2.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.19.0 keyboard_arrow_down
A class to mock ContactCenterInsightsConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type ContactCenterInsightsClient
. To do so, construct an object of type ContactCenterInsightsClient
with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.
See Also
This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client
and *Connection
.
Functions
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Returns
Type
Description
Options
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::CreateConversationRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Conversation >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UploadConversationRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::Conversation > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UpdateConversationRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Conversation >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::GetConversationRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Conversation >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::ListConversationsRequest
Returns
Type
Description
StreamRange< google::cloud::contactcenterinsights::v1::Conversation >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::DeleteConversationRequest const &
Returns
Type
Description
Status
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::Analysis > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::GetAnalysisRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Analysis >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::ListAnalysesRequest
Returns
Type
Description
StreamRange< google::cloud::contactcenterinsights::v1::Analysis >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::DeleteAnalysisRequest const &
Returns
Type
Description
Status
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::BulkDeleteConversationsRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::BulkDeleteConversationsResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::IngestConversationsRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::IngestConversationsResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::ExportInsightsDataResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::IssueModel > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::IssueModel >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::GetIssueModelRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::IssueModel >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::ListIssueModelsRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::ListIssueModelsResponse >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::DeleteIssueModelMetadata > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::DeployIssueModelResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::contactcenterinsights::v1::UndeployIssueModelResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::GetIssueRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Issue >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::ListIssuesRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::ListIssuesResponse >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UpdateIssueRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Issue >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::DeleteIssueRequest const &
Returns
Type
Description
Status
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsResponse >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::CreatePhraseMatcherRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::GetPhraseMatcherRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::ListPhraseMatchersRequest
Returns
Type
Description
StreamRange< google::cloud::contactcenterinsights::v1::PhraseMatcher >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::DeletePhraseMatcherRequest const &
Returns
Type
Description
Status
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UpdatePhraseMatcherRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::CalculateStatsRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::CalculateStatsResponse >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::GetSettingsRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Settings >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UpdateSettingsRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::Settings >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::CreateViewRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::View >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::GetViewRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::View >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::ListViewsRequest
Returns
Type
Description
StreamRange< google::cloud::contactcenterinsights::v1::View >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::UpdateViewRequest const &
Returns
Type
Description
StatusOr< google::cloud::contactcenterinsights::v1::View >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::contactcenterinsights::v1::DeleteViewRequest const &
Returns
Type
Description
Status
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-02 UTC."],[[["This document outlines the capabilities of the `MockContactCenterInsightsConnection` class, designed for simulating responses, including errors, within the `ContactCenterInsightsClient`."],["The class supports a wide range of operations related to conversation management, including creation, uploading, updating, retrieval, listing, and deletion of conversations."],["The `MockContactCenterInsightsConnection` class enables comprehensive analysis functions such as creating, retrieving, listing, and deleting analyses, and supports bulk analysis and deletion of conversations."],["The class provides functionality for issue model management, offering features like creation, updates, retrieval, listing, deployment, undeployment and deletion, as well as issue and phrase matcher management, allowing for the creation, retrieval, updating, listing and deletion of phrase matchers."],["The mock class utilizes gMock for method implementation, allowing developers to program the behavior of the mock and test their application with simulated responses, mirroring real-world scenarios effectively."]]],[]]