Class: Google::Apis::TranslateV3beta1::InputConfig
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3beta1::InputConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/translate_v3beta1/classes.rb,
generated/google/apis/translate_v3beta1/representations.rb,
generated/google/apis/translate_v3beta1/representations.rb
Overview
Input configuration for BatchTranslateText request.
Instance Attribute Summary collapse
-
#gcs_source ⇒ Google::Apis::TranslateV3beta1::GcsSource
The Google Cloud Storage location for the input content.
-
#mime_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InputConfig
constructor
A new instance of InputConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InputConfig
Returns a new instance of InputConfig.
360 361 362 |
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcs_source ⇒ Google::Apis::TranslateV3beta1::GcsSource
The Google Cloud Storage location for the input content.
Corresponds to the JSON property gcsSource
350 351 352 |
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 350 def gcs_source @gcs_source end |
#mime_type ⇒ String
Optional. Can be "text/plain" or "text/html".
For .tsv
, "text/html" is used if mime_type is missing.
For .html
, this field must be "text/html" or empty.
For .txt
, this field must be "text/plain" or empty.
Corresponds to the JSON property mimeType
358 359 360 |
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 358 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
365 366 367 368 |
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 365 def update!(**args) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) @mime_type = args[:mime_type] if args.key?(:mime_type) end |