Class: Google::Apis::TranslateV3::InputFile

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

An input file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InputFile

Returns a new instance of InputFile.



1334
1335
1336
# File 'lib/google/apis/translate_v3/classes.rb', line 1334

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

Instance Attribute Details

#gcs_sourceGoogle::Apis::TranslateV3::GcsInputSource

The Google Cloud Storage location for the input content. Corresponds to the JSON property gcsSource



1326
1327
1328
# File 'lib/google/apis/translate_v3/classes.rb', line 1326

def gcs_source
  @gcs_source
end

#usageString

Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, or UNASSIGNED (by default) for auto split. Corresponds to the JSON property usage

Returns:

  • (String)


1332
1333
1334
# File 'lib/google/apis/translate_v3/classes.rb', line 1332

def usage
  @usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1339
1340
1341
1342
# File 'lib/google/apis/translate_v3/classes.rb', line 1339

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