Google Cloud Dialogflow V2 Client - Class UpdateEnvironmentRequest (1.0.1)

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

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.

Generated from protobuf field .google.cloud.dialogflow.v2.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

hasEnvironment

clearEnvironment

setEnvironment

Required. The environment to update.

Generated from protobuf field .google.cloud.dialogflow.v2.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateMask

Required. The mask to control which fields get updated.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The mask to control which fields get updated.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

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

Generated from protobuf field bool allow_load_to_draft_and_discard_changes = 3 [(.google.api.field_behavior) = OPTIONAL];

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

Generated from protobuf field bool allow_load_to_draft_and_discard_changes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
var
bool
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: