public sealed class SetAgentRequest : IMessage<SetAgentRequest>, IEquatable<SetAgentRequest>, IDeepCloneable<SetAgentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class SetAgentRequest.
The request message for
[Agents.SetAgent][google.cloud.dialogflow.v2beta1.Agents.SetAgent].
[[["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\u003eThis documentation is for the \u003ccode\u003eSetAgentRequest\u003c/code\u003e class within the Google Cloud Dialogflow v2beta1 API, specifically version 1.0.0-beta23, which is the latest version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetAgentRequest\u003c/code\u003e class is used to define the request message for the \u003ccode\u003eAgents.SetAgent\u003c/code\u003e operation in the Dialogflow API.\u003c/p\u003e\n"],["\u003cp\u003eIt implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetAgentRequest\u003c/code\u003e class has two constructors: a default constructor and one that takes another \u003ccode\u003eSetAgentRequest\u003c/code\u003e object as a parameter, and has properties to define the Agent to update and the UpdateMask.\u003c/p\u003e\n"],["\u003cp\u003eThe provided content shows that the \u003ccode\u003eSetAgentRequest\u003c/code\u003e class is located in the \u003ccode\u003eGoogle.Cloud.Dialogflow.V2Beta1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Dialogflow.V2Beta1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class SetAgentRequest (1.0.0-beta23)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta23 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SetAgentRequest)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.SetAgentRequest) \n\n public sealed class SetAgentRequest : IMessage\u003cSetAgentRequest\u003e, IEquatable\u003cSetAgentRequest\u003e, IDeepCloneable\u003cSetAgentRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class SetAgentRequest.\n\nThe request message for\n\\[Agents.SetAgent\\]\\[google.cloud.dialogflow.v2beta1.Agents.SetAgent\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SetAgentRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SetAgentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SetAgentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SetAgentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SetAgentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SetAgentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SetAgentRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.V2Beta1](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2Beta1.dll\n\nConstructors\n------------\n\n### SetAgentRequest()\n\n public SetAgentRequest()\n\n### SetAgentRequest(SetAgentRequest)\n\n public SetAgentRequest(SetAgentRequest other)\n\nProperties\n----------\n\n### Agent\n\n public Agent Agent { get; set; }\n\nRequired. The agent to update.\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nOptional. The mask to control which fields get updated."]]