public sealed class UpdateEnvironmentRequest : IMessage<UpdateEnvironmentRequest>, IEquatable<UpdateEnvironmentRequest>, IDeepCloneable<UpdateEnvironmentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class UpdateEnvironmentRequest.
The request message for
[Environments.UpdateEnvironment][google.cloud.dialogflow.v2beta1.Environments.UpdateEnvironment].
public bool AllowLoadToDraftAndDiscardChanges { get; set; }
Optional. This field is used to prevent accidental overwrite of the draft
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 draft 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."],[[["The `UpdateEnvironmentRequest` class is used to update environments within the Google Cloud Dialogflow v2beta1 API, specifically for the `Environments.UpdateEnvironment` function."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, indicating its capabilities for message handling, equality checks, deep cloning, and buffered message operations."],["The `UpdateEnvironmentRequest` class requires the environment to be updated (`Environment`), as well as a mask (`UpdateMask`) to specify which fields should be changed."],["It has a property `AllowLoadToDraftAndDiscardChanges` that is used to prevent accidental overwrite of the draft environment and must be explicitly set to true when updating the draft environment."],["The class has a constructor that takes another `UpdateEnvironmentRequest` as a parameter, allowing for easy duplication of existing requests."]]],[]]