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.



578
579
580
# File 'lib/google/apis/translate_v3/classes.rb', line 578

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



576
577
578
# File 'lib/google/apis/translate_v3/classes.rb', line 576

def input_files
  @input_files
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



583
584
585
# File 'lib/google/apis/translate_v3/classes.rb', line 583

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