Google Cloud Dialogflow V2 Client - Class CreateKnowledgeBaseRequest (1.14.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 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
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
Google\Cloud\Dialogflow\V2\KnowledgeBase|null

hasKnowledgeBase

clearKnowledgeBase

setKnowledgeBase

Required. The knowledge base to create.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\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 Google\Cloud\Dialogflow\V2\KnowledgeBasesClient::projectName() for help formatting this field.

knowledgeBase Google\Cloud\Dialogflow\V2\KnowledgeBase

Required. The knowledge base to create.

Returns
Type Description
Google\Cloud\Dialogflow\V2\CreateKnowledgeBaseRequest