Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class CreateDocumentRequest.
Request message for Documents.CreateDocument.
Generated from protobuf message google.cloud.dialogflow.v2.CreateDocumentRequest
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The knowledge base to create a document for. Format: |
↳ document |
Google\Cloud\Dialogflow\V2\Document
Required. The document to create. |
getParent
Required. The knowledge base to create a document for.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>
.
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The knowledge base to create a document for.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDocument
Required. The document to create.
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\Document|null |
hasDocument
clearDocument
setDocument
Required. The document to create.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\Document
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The knowledge base to create a document for.
Format: |
document |
Google\Cloud\Dialogflow\V2\Document
Required. The document to create. |
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\CreateDocumentRequest |