Google Cloud Dialogflow V2 Client - Class ImportDocumentTemplate (1.5.0)

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

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
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 key or a value of the metadata is 1024 bytes.

getMimeType

Required. The MIME type of the document.

Returns
TypeDescription
string

setMimeType

Required. The MIME type of the document.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKnowledgeTypes

Required. The knowledge type of document content.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setKnowledgeTypes

Required. The knowledge type of document content.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this