Google Cloud Dialogflow V2 Client - Class UpdateEnvironmentRequest (1.12.3)

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
Name Description
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
Type Description
Google\Cloud\Dialogflow\V2\Environment|null

hasEnvironment

clearEnvironment

setEnvironment

Required. The environment to update.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\Environment
Returns
Type Description
$this

getUpdateMask

Required. The mask to control which fields get updated.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The mask to control which fields get updated.

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$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
Type Description
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
Name Description
var bool
Returns
Type Description
$this