Google Cloud Dialogflow V2 Client - Class UpdateKnowledgeBaseRequest (1.9.0)

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

Request message for KnowledgeBases.UpdateKnowledgeBase.

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

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ knowledge_base Google\Cloud\Dialogflow\V2\KnowledgeBase

Required. The knowledge base 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.

getKnowledgeBase

Required. The knowledge base to update.

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

hasKnowledgeBase

clearKnowledgeBase

setKnowledgeBase

Required. The knowledge base to update.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\KnowledgeBase
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.

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.

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

static::build

Parameters
NameDescription
knowledgeBase Google\Cloud\Dialogflow\V2\KnowledgeBase

Required. The knowledge base to update.

updateMask 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.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\UpdateKnowledgeBaseRequest