public sealed class UpdateEnvironmentRequest : IMessage<UpdateEnvironmentRequest>, IEquatable<UpdateEnvironmentRequest>, IDeepCloneable<UpdateEnvironmentRequest>, IBufferMessage, IMessage
The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.v2.Environments.UpdateEnvironment].
public bool AllowLoadToDraftAndDiscardChanges { get; set; }
Optional. This field is used to prevent accidental overwrite of the default
environment, which is an operation that cannot be undone. To confirm that
the caller desires this overwrite, this field must be explicitly set to
true when updating the default environment (environment ID = -).
[[["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 webpage details the \u003ccode\u003eUpdateEnvironmentRequest\u003c/code\u003e class, which is used to update environments in Google Cloud Dialogflow V2.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eUpdateEnvironmentRequest\u003c/code\u003e is 4.26.0, and the page lists versions back to 3.2.0, each with a link to its documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateEnvironmentRequest\u003c/code\u003e class inherits from Object and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateEnvironmentRequest\u003c/code\u003e class includes properties like \u003ccode\u003eAllowLoadToDraftAndDiscardChanges\u003c/code\u003e, \u003ccode\u003eEnvironment\u003c/code\u003e, and \u003ccode\u003eUpdateMask\u003c/code\u003e, which are essential for configuring the update process.\u003c/p\u003e\n"],["\u003cp\u003eThere is a public constructor, \u003ccode\u003eUpdateEnvironmentRequest()\u003c/code\u003e, as well as another constructor, \u003ccode\u003eUpdateEnvironmentRequest(UpdateEnvironmentRequest other)\u003c/code\u003e, that takes in \u003ccode\u003eUpdateEnvironmentRequest\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]