Google Cloud Dialogflow V2 Client - Class CreateKnowledgeBaseRequest (1.17.0)

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

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
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 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
Type Description
string

setParent

Required. The project to create a knowledge base for.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getKnowledgeBase

Required. The knowledge base to create.

Returns
Type Description
KnowledgeBase|null

hasKnowledgeBase

clearKnowledgeBase

setKnowledgeBase

Required. The knowledge base to create.

Parameter
Name Description
var KnowledgeBase
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The project to create a knowledge base for. Format: projects/<Project ID>/locations/<Location ID>. Please see KnowledgeBasesClient::projectName() for help formatting this field.

knowledgeBase KnowledgeBase

Required. The knowledge base to create.

Returns
Type Description
CreateKnowledgeBaseRequest