Class: Google::Apis::TranslateV3::AdaptiveMtDataset
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::AdaptiveMtDataset
- 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 Adaptive MT Dataset.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
The name of the dataset to show in the interface.
-
#example_count ⇒ Fixnum
The number of examples in the dataset.
-
#name ⇒ String
Required.
-
#source_language_code ⇒ String
The BCP-47 language code of the source language.
-
#target_language_code ⇒ String
The BCP-47 language code of the target language.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdaptiveMtDataset
constructor
A new instance of AdaptiveMtDataset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdaptiveMtDataset
Returns a new instance of AdaptiveMtDataset.
67 68 69 |
# File 'lib/google/apis/translate_v3/classes.rb', line 67 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when this dataset was created.
Corresponds to the JSON property createTime
32 33 34 |
# File 'lib/google/apis/translate_v3/classes.rb', line 32 def create_time @create_time end |
#display_name ⇒ String
The name of the dataset to show in the interface. The name can be up to 32
characters long and can consist only of ASCII Latin letters A-Z and a-z,
underscores (_), and ASCII digits 0-9.
Corresponds to the JSON property displayName
39 40 41 |
# File 'lib/google/apis/translate_v3/classes.rb', line 39 def display_name @display_name end |
#example_count ⇒ Fixnum
The number of examples in the dataset.
Corresponds to the JSON property exampleCount
44 45 46 |
# File 'lib/google/apis/translate_v3/classes.rb', line 44 def example_count @example_count end |
#name ⇒ String
Required. The resource name of the dataset, in form of projects/
project-
number-or-id/locations/
location_id/adaptiveMtDatasets/
dataset_id`
Corresponds to the JSON property
name`
50 51 52 |
# File 'lib/google/apis/translate_v3/classes.rb', line 50 def name @name end |
#source_language_code ⇒ String
The BCP-47 language code of the source language.
Corresponds to the JSON property sourceLanguageCode
55 56 57 |
# File 'lib/google/apis/translate_v3/classes.rb', line 55 def source_language_code @source_language_code end |
#target_language_code ⇒ String
The BCP-47 language code of the target language.
Corresponds to the JSON property targetLanguageCode
60 61 62 |
# File 'lib/google/apis/translate_v3/classes.rb', line 60 def target_language_code @target_language_code end |
#update_time ⇒ String
Output only. Timestamp when this dataset was last updated.
Corresponds to the JSON property updateTime
65 66 67 |
# File 'lib/google/apis/translate_v3/classes.rb', line 65 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
72 73 74 75 76 77 78 79 80 |
# File 'lib/google/apis/translate_v3/classes.rb', line 72 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @example_count = args[:example_count] if args.key?(:example_count) @name = args[:name] if args.key?(:name) @source_language_code = args[:source_language_code] if args.key?(:source_language_code) @target_language_code = args[:target_language_code] if args.key?(:target_language_code) @update_time = args[:update_time] if args.key?(:update_time) end |