Class: Google::Apis::TranslateV3::ImportAdaptiveMtFileRequest
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::ImportAdaptiveMtFileRequest
- 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
-
#file_input_source ⇒ Google::Apis::TranslateV3::FileInputSource
An inlined file.
-
#gcs_input_source ⇒ Google::Apis::TranslateV3::GcsInputSource
The Google Cloud Storage location for the input content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImportAdaptiveMtFileRequest
constructor
A new instance of ImportAdaptiveMtFileRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImportAdaptiveMtFileRequest
Returns a new instance of ImportAdaptiveMtFileRequest.
1188 1189 1190 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1188 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_input_source ⇒ Google::Apis::TranslateV3::FileInputSource
An inlined file.
Corresponds to the JSON property fileInputSource
1181 1182 1183 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1181 def file_input_source @file_input_source end |
#gcs_input_source ⇒ Google::Apis::TranslateV3::GcsInputSource
The Google Cloud Storage location for the input content.
Corresponds to the JSON property gcsInputSource
1186 1187 1188 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1186 def gcs_input_source @gcs_input_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1193 1194 1195 1196 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1193 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 |