Google Cloud Dialogflow V2 Client - Class CreateKnowledgeBaseRequest (1.3.2)

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

Request message for KnowledgeBases.CreateKnowledgeBase.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The project to create a knowledge base for. Format: projects/<Project ID>/locations/<Location ID>.

↳ knowledge_base Google\Cloud\Dialogflow\V2\KnowledgeBase

Required. The knowledge base to create.

getParent

Required. The project to create a knowledge base for.

Format: projects/<Project ID>/locations/<Location ID>.

Returns
TypeDescription
string

setParent

Required. The project to create a knowledge base for.

Format: projects/<Project ID>/locations/<Location ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKnowledgeBase

Required. The knowledge base to create.

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

hasKnowledgeBase

clearKnowledgeBase

setKnowledgeBase

Required. The knowledge base to create.

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