Class MockContactCenterInsightsConnection (2.19.0)

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

virtual options()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
Options

virtual CreateConversation(google::cloud::contactcenterinsights::v1::CreateConversationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::CreateConversationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Conversation >

virtual UploadConversation(google::cloud::contactcenterinsights::v1::UploadConversationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UploadConversationRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::Conversation > >

virtual UpdateConversation(google::cloud::contactcenterinsights::v1::UpdateConversationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UpdateConversationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Conversation >

virtual GetConversation(google::cloud::contactcenterinsights::v1::GetConversationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::GetConversationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Conversation >

virtual ListConversations(google::cloud::contactcenterinsights::v1::ListConversationsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::ListConversationsRequest
Returns
TypeDescription
StreamRange< google::cloud::contactcenterinsights::v1::Conversation >

virtual DeleteConversation(google::cloud::contactcenterinsights::v1::DeleteConversationRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::DeleteConversationRequest const &
Returns
TypeDescription
Status

virtual CreateAnalysis(google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::Analysis > >

virtual GetAnalysis(google::cloud::contactcenterinsights::v1::GetAnalysisRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::GetAnalysisRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Analysis >

virtual ListAnalyses(google::cloud::contactcenterinsights::v1::ListAnalysesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::ListAnalysesRequest
Returns
TypeDescription
StreamRange< google::cloud::contactcenterinsights::v1::Analysis >

virtual DeleteAnalysis(google::cloud::contactcenterinsights::v1::DeleteAnalysisRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::DeleteAnalysisRequest const &
Returns
TypeDescription
Status

virtual BulkAnalyzeConversations(google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsResponse > >

virtual BulkDeleteConversations(google::cloud::contactcenterinsights::v1::BulkDeleteConversationsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::BulkDeleteConversationsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::BulkDeleteConversationsResponse > >

virtual IngestConversations(google::cloud::contactcenterinsights::v1::IngestConversationsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::IngestConversationsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::IngestConversationsResponse > >

virtual ExportInsightsData(google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::ExportInsightsDataResponse > >

virtual CreateIssueModel(google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::IssueModel > >

virtual UpdateIssueModel(google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::IssueModel >

virtual GetIssueModel(google::cloud::contactcenterinsights::v1::GetIssueModelRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::GetIssueModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::IssueModel >

virtual ListIssueModels(google::cloud::contactcenterinsights::v1::ListIssueModelsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::ListIssueModelsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::ListIssueModelsResponse >

virtual DeleteIssueModel(google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::DeleteIssueModelMetadata > >

virtual DeployIssueModel(google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::DeployIssueModelResponse > >

virtual UndeployIssueModel(google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::contactcenterinsights::v1::UndeployIssueModelResponse > >

virtual GetIssue(google::cloud::contactcenterinsights::v1::GetIssueRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::GetIssueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Issue >

virtual ListIssues(google::cloud::contactcenterinsights::v1::ListIssuesRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::ListIssuesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::ListIssuesResponse >

virtual UpdateIssue(google::cloud::contactcenterinsights::v1::UpdateIssueRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UpdateIssueRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Issue >

virtual DeleteIssue(google::cloud::contactcenterinsights::v1::DeleteIssueRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::DeleteIssueRequest const &
Returns
TypeDescription
Status

virtual CalculateIssueModelStats(google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsResponse >

virtual CreatePhraseMatcher(google::cloud::contactcenterinsights::v1::CreatePhraseMatcherRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::CreatePhraseMatcherRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher >

virtual GetPhraseMatcher(google::cloud::contactcenterinsights::v1::GetPhraseMatcherRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::GetPhraseMatcherRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher >

virtual ListPhraseMatchers(google::cloud::contactcenterinsights::v1::ListPhraseMatchersRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::ListPhraseMatchersRequest
Returns
TypeDescription
StreamRange< google::cloud::contactcenterinsights::v1::PhraseMatcher >

virtual DeletePhraseMatcher(google::cloud::contactcenterinsights::v1::DeletePhraseMatcherRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::DeletePhraseMatcherRequest const &
Returns
TypeDescription
Status

virtual UpdatePhraseMatcher(google::cloud::contactcenterinsights::v1::UpdatePhraseMatcherRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UpdatePhraseMatcherRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher >

virtual CalculateStats(google::cloud::contactcenterinsights::v1::CalculateStatsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::CalculateStatsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::CalculateStatsResponse >

virtual GetSettings(google::cloud::contactcenterinsights::v1::GetSettingsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::GetSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Settings >

virtual UpdateSettings(google::cloud::contactcenterinsights::v1::UpdateSettingsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UpdateSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::Settings >

virtual CreateView(google::cloud::contactcenterinsights::v1::CreateViewRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::CreateViewRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::View >

virtual GetView(google::cloud::contactcenterinsights::v1::GetViewRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::GetViewRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::View >

virtual ListViews(google::cloud::contactcenterinsights::v1::ListViewsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::ListViewsRequest
Returns
TypeDescription
StreamRange< google::cloud::contactcenterinsights::v1::View >

virtual UpdateView(google::cloud::contactcenterinsights::v1::UpdateViewRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::UpdateViewRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contactcenterinsights::v1::View >

virtual DeleteView(google::cloud::contactcenterinsights::v1::DeleteViewRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::contactcenterinsights::v1::DeleteViewRequest const &
Returns
TypeDescription
Status