Class MockContactCenterInsightsConnection (2.31.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
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::CreateConversationRequest const &
Returns
Type Description
StatusOr< google::cloud::contactcenterinsights::v1::Conversation >

virtual UploadConversation(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::UpdateConversationRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::GetConversationRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::ListConversationsRequest
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::DeleteConversationRequest const &
Returns
Type Description
Status

virtual CreateAnalysis(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::GetAnalysisRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::ListAnalysesRequest
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::DeleteAnalysisRequest const &
Returns
Type Description
Status

virtual BulkAnalyzeConversations(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsResponse > >

virtual BulkDeleteConversations(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::BulkDeleteConversationsResponse > >

virtual IngestConversations(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::IngestConversationsResponse > >

virtual ExportInsightsData(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::ExportInsightsDataResponse > >

virtual CreateIssueModel(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::GetIssueModelRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::ListIssueModelsRequest const &
Returns
Type Description
StatusOr< google::cloud::contactcenterinsights::v1::ListIssueModelsResponse >

virtual DeleteIssueModel(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::DeleteIssueModelMetadata > >

virtual DeployIssueModel(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::DeployIssueModelResponse > >

virtual UndeployIssueModel(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::UndeployIssueModelResponse > >

virtual ExportIssueModel(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::ExportIssueModelResponse > >

virtual ImportIssueModel(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::ImportIssueModelResponse > >

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
Name Description
request google::cloud::contactcenterinsights::v1::GetIssueRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::ListIssuesRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::UpdateIssueRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::DeleteIssueRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::CreatePhraseMatcherRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::GetPhraseMatcherRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::ListPhraseMatchersRequest
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::DeletePhraseMatcherRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::UpdatePhraseMatcherRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::CalculateStatsRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::GetSettingsRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::UpdateSettingsRequest const &
Returns
Type Description
StatusOr< google::cloud::contactcenterinsights::v1::Settings >

virtual GetEncryptionSpec(google::cloud::contactcenterinsights::v1::GetEncryptionSpecRequest const &)

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::GetEncryptionSpecRequest const &
Returns
Type Description
StatusOr< google::cloud::contactcenterinsights::v1::EncryptionSpec >

virtual InitializeEncryptionSpec(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::contactcenterinsights::v1::InitializeEncryptionSpecResponse > >

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
Name Description
request google::cloud::contactcenterinsights::v1::CreateViewRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::GetViewRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::ListViewsRequest
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::UpdateViewRequest const &
Returns
Type Description
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
Name Description
request google::cloud::contactcenterinsights::v1::DeleteViewRequest const &
Returns
Type Description
Status

virtual ListOperations(google::longrunning::ListOperationsRequest)

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::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

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

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::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

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::longrunning::CancelOperationRequest const &
Returns
Type Description
Status