Google Cloud Dialogflow V2 Client - Class UpdateDocumentRequest (1.0.1)

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

Request message for Documents.UpdateDocument.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ document Google\Cloud\Dialogflow\V2\Document

Required. The document to update.

↳ update_mask Google\Protobuf\FieldMask

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

getDocument

Required. The document to update.

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

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

hasDocument

clearDocument

setDocument

Required. The document to update.

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

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

getUpdateMask

Optional. Not specified means update all.

Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

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

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. Not specified means update all.

Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

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

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