Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ImportDocumentTemplate.
The template used for importing documents.
Generated from protobuf message google.cloud.dialogflow.v2.ImportDocumentTemplate
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ mime_type |
string
Required. The MIME type of the document. |
↳ knowledge_types |
array
Required. The knowledge type of document content. |
↳ metadata |
array|Google\Protobuf\Internal\MapField
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a |
getMimeType
Required. The MIME type of the document.
Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
string |
setMimeType
Required. The MIME type of the document.
Generated from protobuf field string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getKnowledgeTypes
Required. The knowledge type of document content.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setKnowledgeTypes
Required. The knowledge type of document content.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
int[]
|
Returns | |
---|---|
Type | Description |
$this |
getMetadata
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc.
The max size of a key
or a value
of the metadata is 1024 bytes.
Generated from protobuf field map<string, string> metadata = 3;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setMetadata
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc.
The max size of a key
or a value
of the metadata is 1024 bytes.
Generated from protobuf field map<string, string> metadata = 3;
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |