Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ImportDocumentTemplate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb

Overview

The template used for importing documents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ImportDocumentTemplate

Returns a new instance of GoogleCloudDialogflowV2beta1ImportDocumentTemplate.



14604
14605
14606
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14604

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#knowledge_typesArray<String>

Required. The knowledge type of document content. Corresponds to the JSON property knowledgeTypes

Returns:

  • (Array<String>)


14589
14590
14591
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14589

def knowledge_types
  @knowledge_types
end

#metadataHash<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

Returns:

  • (Hash<String,String>)


14597
14598
14599
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14597

def 
  @metadata
end

#mime_typeString

Required. The MIME type of the document. Corresponds to the JSON property mimeType

Returns:

  • (String)


14602
14603
14604
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14602

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14609
14610
14611
14612
14613
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14609

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