Class: Google::Apis::TranslateV3::DatasetInputConfig

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

Overview

Input configuration for datasets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatasetInputConfig

Returns a new instance of DatasetInputConfig.



566
567
568
# File 'lib/google/apis/translate_v3/classes.rb', line 566

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

Instance Attribute Details

#input_filesArray<Google::Apis::TranslateV3::InputFile>

Files containing the sentence pairs to be imported to the dataset. Corresponds to the JSON property inputFiles



564
565
566
# File 'lib/google/apis/translate_v3/classes.rb', line 564

def input_files
  @input_files
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



571
572
573
# File 'lib/google/apis/translate_v3/classes.rb', line 571

def update!(**args)
  @input_files = args[:input_files] if args.key?(:input_files)
end