Class: Google::Apis::TranslateV3::DatasetInputConfig
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::DatasetInputConfig
- 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
-
#input_files ⇒ Array<Google::Apis::TranslateV3::InputFile>
Files containing the sentence pairs to be imported to the dataset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatasetInputConfig
constructor
A new instance of DatasetInputConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatasetInputConfig
Returns a new instance of DatasetInputConfig.
323 324 325 |
# File 'lib/google/apis/translate_v3/classes.rb', line 323 def initialize(**args) update!(**args) end |
Instance Attribute Details
#input_files ⇒ Array<Google::Apis::TranslateV3::InputFile>
Files containing the sentence pairs to be imported to the dataset.
Corresponds to the JSON property inputFiles
321 322 323 |
# File 'lib/google/apis/translate_v3/classes.rb', line 321 def input_files @input_files end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
328 329 330 |
# File 'lib/google/apis/translate_v3/classes.rb', line 328 def update!(**args) @input_files = args[:input_files] if args.key?(:input_files) end |