public sealed class TrainAgentRequest : IMessage<TrainAgentRequest>, IEquatable<TrainAgentRequest>, IDeepCloneable<TrainAgentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class TrainAgentRequest.
The request message for
[Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eTrainAgentRequest\u003c/code\u003e class is 4.26.0, while the current page is displaying version 4.10.0.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides documentation and code samples for the \u003ccode\u003eTrainAgentRequest\u003c/code\u003e class within the Google Cloud Dialogflow v2 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTrainAgentRequest\u003c/code\u003e is the request message type used for training agents in the \u003ccode\u003eAgents.TrainAgent\u003c/code\u003e method of the Dialogflow API, which is part of the Google Cloud platform.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eTrainAgentRequest\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, supporting different operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTrainAgentRequest\u003c/code\u003e class has properties to manage the project associated with the agent being trained, including \u003ccode\u003eParent\u003c/code\u003e, which requires a project ID in a specific format, and provides typed views for \u003ccode\u003eLocationName\u003c/code\u003e, \u003ccode\u003eProjectName\u003c/code\u003e, and \u003ccode\u003eIResourceName\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]