Google Cloud Dialogflow V2 Client - Class UpdateEnvironmentRequest (1.7.2)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class UpdateEnvironmentRequest.

The request message for Environments.UpdateEnvironment.

Generated from protobuf message google.cloud.dialogflow.v2.UpdateEnvironmentRequest

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ environment Google\Cloud\Dialogflow\V2\Environment

Required. The environment to update.

↳ update_mask Google\Protobuf\FieldMask

Required. The mask to control which fields get updated.

↳ allow_load_to_draft_and_discard_changes bool

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 = -).

getEnvironment

Required. The environment to update.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\Environment|null

hasEnvironment

clearEnvironment

setEnvironment

Required. The environment to update.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\Environment
Returns
TypeDescription
$this

getUpdateMask

Required. The mask to control which fields get updated.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The mask to control which fields get updated.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

getAllowLoadToDraftAndDiscardChanges

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 = -).

Returns
TypeDescription
bool

setAllowLoadToDraftAndDiscardChanges

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 = -).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this