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.



1169
1170
1171
# File 'lib/google/apis/translate_v3/classes.rb', line 1169

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

Instance Attribute Details

#file_input_sourceGoogle::Apis::TranslateV3::FileInputSource

An inlined file. Corresponds to the JSON property fileInputSource



1162
1163
1164
# File 'lib/google/apis/translate_v3/classes.rb', line 1162

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



1167
1168
1169
# File 'lib/google/apis/translate_v3/classes.rb', line 1167

def gcs_input_source
  @gcs_input_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1174
1175
1176
1177
# File 'lib/google/apis/translate_v3/classes.rb', line 1174

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