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.



316
317
318
# File 'lib/google/apis/translate_v3/classes.rb', line 316

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



314
315
316
# File 'lib/google/apis/translate_v3/classes.rb', line 314

def input_files
  @input_files
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



321
322
323
# File 'lib/google/apis/translate_v3/classes.rb', line 321

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