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 | |
---|---|
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 |
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>
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The project to create a knowledge base for.
Format: projects/<Project ID>/locations/<Location ID>
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getKnowledgeBase
Required. The knowledge base to create.
Generated from protobuf field .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\KnowledgeBase|null |
hasKnowledgeBase
clearKnowledgeBase
setKnowledgeBase
Required. The knowledge base to create.
Generated from protobuf field .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\KnowledgeBase
|
Returns | |
---|---|
Type | Description |
$this |