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
Methods
__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>
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
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>
.
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 |
getDocument
Required. The document to create.
Generated from protobuf field .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\Document|null |
hasDocument
clearDocument
setDocument
Required. The document to create.
Generated from protobuf field .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\Document
|
Returns | |
---|---|
Type | Description |
$this |