Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::dialogflow_es_mocks::MockConversationsConnection Class Reference

A class to mock ConversationsConnection. More...

#include <google/cloud/dialogflow_es/mocks/mock_conversations_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Conversation >, CreateConversation,(google::cloud::dialogflow::v2::CreateConversationRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::Conversation >, ListConversations,(google::cloud::dialogflow::v2::ListConversationsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Conversation >, GetConversation,(google::cloud::dialogflow::v2::GetConversationRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Conversation >, CompleteConversation,(google::cloud::dialogflow::v2::CompleteConversationRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::Message >, ListMessages,(google::cloud::dialogflow::v2::ListMessagesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::SuggestConversationSummaryResponse >, SuggestConversationSummary,(google::cloud::dialogflow::v2::SuggestConversationSummaryRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::GenerateStatelessSummaryResponse >, GenerateStatelessSummary,(google::cloud::dialogflow::v2::GenerateStatelessSummaryRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::dialogflow::v2::Conversation > CreateConversation (google::cloud::dialogflow::v2::CreateConversationRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::v2::Conversation > ListConversations (google::cloud::dialogflow::v2::ListConversationsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::v2::Conversation > GetConversation (google::cloud::dialogflow::v2::GetConversationRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::Conversation > CompleteConversation (google::cloud::dialogflow::v2::CompleteConversationRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::v2::Message > ListMessages (google::cloud::dialogflow::v2::ListMessagesRequest request)
 
virtual StatusOr< google::cloud::dialogflow::v2::SuggestConversationSummaryResponse > SuggestConversationSummary (google::cloud::dialogflow::v2::SuggestConversationSummaryRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::GenerateStatelessSummaryResponse > GenerateStatelessSummary (google::cloud::dialogflow::v2::GenerateStatelessSummaryRequest const &request)
 

Detailed Description

A class to mock ConversationsConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type ConversationsClient. To do so, construct an object of type ConversationsClient 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.

Member Function Documentation

◆ CompleteConversation()

virtual StatusOr< google::cloud::dialogflow::v2::Conversation > google::cloud::dialogflow_es::ConversationsConnection::CompleteConversation ( google::cloud::dialogflow::v2::CompleteConversationRequest const &  request)
virtualinherited

◆ CreateConversation()

virtual StatusOr< google::cloud::dialogflow::v2::Conversation > google::cloud::dialogflow_es::ConversationsConnection::CreateConversation ( google::cloud::dialogflow::v2::CreateConversationRequest const &  request)
virtualinherited

◆ GenerateStatelessSummary()

virtual StatusOr< google::cloud::dialogflow::v2::GenerateStatelessSummaryResponse > google::cloud::dialogflow_es::ConversationsConnection::GenerateStatelessSummary ( google::cloud::dialogflow::v2::GenerateStatelessSummaryRequest const &  request)
virtualinherited

◆ GetConversation()

virtual StatusOr< google::cloud::dialogflow::v2::Conversation > google::cloud::dialogflow_es::ConversationsConnection::GetConversation ( google::cloud::dialogflow::v2::GetConversationRequest const &  request)
virtualinherited

◆ ListConversations()

virtual StreamRange< google::cloud::dialogflow::v2::Conversation > google::cloud::dialogflow_es::ConversationsConnection::ListConversations ( google::cloud::dialogflow::v2::ListConversationsRequest  request)
virtualinherited

◆ ListMessages()

virtual StreamRange< google::cloud::dialogflow::v2::Message > google::cloud::dialogflow_es::ConversationsConnection::ListMessages ( google::cloud::dialogflow::v2::ListMessagesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Conversation >  ,
CompleteConversation  ,
(google::cloud::dialogflow::v2::CompleteConversationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Conversation >  ,
CreateConversation  ,
(google::cloud::dialogflow::v2::CreateConversationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Conversation >  ,
GetConversation  ,
(google::cloud::dialogflow::v2::GetConversationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::GenerateStatelessSummaryResponse >  ,
GenerateStatelessSummary  ,
(google::cloud::dialogflow::v2::GenerateStatelessSummaryRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::SuggestConversationSummaryResponse >  ,
SuggestConversationSummary  ,
(google::cloud::dialogflow::v2::SuggestConversationSummaryRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::Conversation >  ,
ListConversations  ,
(google::cloud::dialogflow::v2::ListConversationsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [8/8]

google::cloud::dialogflow_es_mocks::MockConversationsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::Message >  ,
ListMessages  ,
(google::cloud::dialogflow::v2::ListMessagesRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::dialogflow_es::ConversationsConnection::options ( )
inlinevirtualinherited

◆ SuggestConversationSummary()

virtual StatusOr< google::cloud::dialogflow::v2::SuggestConversationSummaryResponse > google::cloud::dialogflow_es::ConversationsConnection::SuggestConversationSummary ( google::cloud::dialogflow::v2::SuggestConversationSummaryRequest const &  request)
virtualinherited