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.



547
548
549
# File 'lib/google/apis/translate_v3/classes.rb', line 547

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



545
546
547
# File 'lib/google/apis/translate_v3/classes.rb', line 545

def input_files
  @input_files
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



552
553
554
# File 'lib/google/apis/translate_v3/classes.rb', line 552

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