Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentTemplate
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentTemplate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
The template used for importing documents.
Instance Attribute Summary collapse
-
#knowledge_types ⇒ Array<String>
Required.
-
#metadata ⇒ Hash<String,String>
Metadata for the document.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2ImportDocumentTemplate
constructor
A new instance of GoogleCloudDialogflowV2ImportDocumentTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ImportDocumentTemplate
Returns a new instance of GoogleCloudDialogflowV2ImportDocumentTemplate.
11748 11749 11750 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11748 def initialize(**args) update!(**args) end |
Instance Attribute Details
#knowledge_types ⇒ Array<String>
Required. The knowledge type of document content.
Corresponds to the JSON property knowledgeTypes
11733 11734 11735 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11733 def knowledge_types @knowledge_types end |
#metadata ⇒ Hash<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 a
value
of the metadata is 1024 bytes.
Corresponds to the JSON property metadata
11741 11742 11743 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11741 def @metadata end |
#mime_type ⇒ String
Required. The MIME type of the document.
Corresponds to the JSON property mimeType
11746 11747 11748 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11746 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11753 11754 11755 11756 11757 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11753 def update!(**args) @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types) @metadata = args[:metadata] if args.key?(:metadata) @mime_type = args[:mime_type] if args.key?(:mime_type) end |