Class: Google::Apis::TranslateV3::ImportAdaptiveMtFileRequest

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

The request for importing an AdaptiveMt file along with its sentences.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImportAdaptiveMtFileRequest

Returns a new instance of ImportAdaptiveMtFileRequest.



1249
1250
1251
# File 'lib/google/apis/translate_v3/classes.rb', line 1249

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

Instance Attribute Details

#file_input_sourceGoogle::Apis::TranslateV3::FileInputSource

An inlined file. Corresponds to the JSON property fileInputSource



1242
1243
1244
# File 'lib/google/apis/translate_v3/classes.rb', line 1242

def file_input_source
  @file_input_source
end

#gcs_input_sourceGoogle::Apis::TranslateV3::GcsInputSource

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



1247
1248
1249
# File 'lib/google/apis/translate_v3/classes.rb', line 1247

def gcs_input_source
  @gcs_input_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1254
1255
1256
1257
# File 'lib/google/apis/translate_v3/classes.rb', line 1254

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