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 \ V2Methods
__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: |
↳ 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: |
knowledgeBase |
KnowledgeBase
Required. The knowledge base to create. |
| Returns | |
|---|---|
| Type | Description |
CreateKnowledgeBaseRequest |
|