Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::ImportDocumentTemplate.
The template used for importing documents.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#knowledge_types
def knowledge_types() -> ::Array<::Google::Cloud::Dialogflow::V2::Document::KnowledgeType>
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::Document::KnowledgeType>) — Required. The knowledge type of document content.
#knowledge_types=
def knowledge_types=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::Document::KnowledgeType>
Parameter
- value (::Array<::Google::Cloud::Dialogflow::V2::Document::KnowledgeType>) — Required. The knowledge type of document content.
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::Document::KnowledgeType>) — Required. The knowledge type of document content.
#metadata
def metadata() -> ::Google::Protobuf::Map{::String => ::String}
Returns
-
(::Google::Protobuf::Map{::String => ::String}) — 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 avalue
of the metadata is 1024 bytes.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
-
value (::Google::Protobuf::Map{::String => ::String}) — 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 avalue
of the metadata is 1024 bytes.
Returns
-
(::Google::Protobuf::Map{::String => ::String}) — 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 avalue
of the metadata is 1024 bytes.
#mime_type
def mime_type() -> ::String
Returns
- (::String) — Required. The MIME type of the document.
#mime_type=
def mime_type=(value) -> ::String
Parameter
- value (::String) — Required. The MIME type of the document.
Returns
- (::String) — Required. The MIME type of the document.