Google Cloud Dialogflow V2 Client - Class CreateKnowledgeBaseRequest (1.5.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
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

static::build

Parameters
NameDescription
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
TypeDescription
Google\Cloud\Dialogflow\V2\CreateKnowledgeBaseRequest