This interface defines virtual methods for each of the user-facing overload sets in AgentsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AgentsClient.
[[["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-03-14 UTC."],[[["The `AgentsConnection` object provides an interface for virtual methods mirroring the user-facing overload sets found in `AgentsClient`, enabling custom behavior injection for testing purposes."],["This interface supports various operations related to agent management, including getting, setting, deleting, searching, training, exporting, importing, and restoring agents."],["There are multiple versions of the `AgentsConnection` object available, with the latest being version 2.37.0-rc and version 2.26.0 being the one represented in this content."],["`AgentsConnection` interface can be used to return results of the following types `StatusOr\u003c google::cloud::dialogflow::v2::Agent \u003e`, `Status`, `StreamRange\u003c google::cloud::dialogflow::v2::Agent \u003e` `future\u003c StatusOr\u003c google::protobuf::Struct \u003e \u003e`, `future\u003c StatusOr\u003c google::cloud::dialogflow::v2::ExportAgentResponse \u003e \u003e`, `StatusOr\u003c google::longrunning::Operation \u003e`, `StatusOr\u003c google::cloud::dialogflow::v2::ValidationResult \u003e`."],["For mocking purposes, the `dialogflow_es_mocks::MockAgentsConnection` object is available, and to create a concrete instance the use of `MakeAgentsConnection()` is necessary."]]],[]]