Class: Google::Apis::TranslateV3::AdaptiveMtFile
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::AdaptiveMtFile
- 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 AdaptiveMtFile.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
The file's display name.
-
#entry_count ⇒ Fixnum
The number of entries that the file contains.
-
#name ⇒ String
Required.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdaptiveMtFile
constructor
A new instance of AdaptiveMtFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdaptiveMtFile
Returns a new instance of AdaptiveMtFile.
114 115 116 |
# File 'lib/google/apis/translate_v3/classes.rb', line 114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when this file was created.
Corresponds to the JSON property createTime
90 91 92 |
# File 'lib/google/apis/translate_v3/classes.rb', line 90 def create_time @create_time end |
#display_name ⇒ String
The file's display name.
Corresponds to the JSON property displayName
95 96 97 |
# File 'lib/google/apis/translate_v3/classes.rb', line 95 def display_name @display_name end |
#entry_count ⇒ Fixnum
The number of entries that the file contains.
Corresponds to the JSON property entryCount
100 101 102 |
# File 'lib/google/apis/translate_v3/classes.rb', line 100 def entry_count @entry_count end |
#name ⇒ String
Required. The resource name of the file, in form of projects/
project-number-
or-id/locations/
location_id/adaptiveMtDatasets/
dataset/adaptiveMtFiles/
file`
Corresponds to the JSON property
name`
107 108 109 |
# File 'lib/google/apis/translate_v3/classes.rb', line 107 def name @name end |
#update_time ⇒ String
Output only. Timestamp when this file was last updated.
Corresponds to the JSON property updateTime
112 113 114 |
# File 'lib/google/apis/translate_v3/classes.rb', line 112 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
119 120 121 122 123 124 125 |
# File 'lib/google/apis/translate_v3/classes.rb', line 119 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @entry_count = args[:entry_count] if args.key?(:entry_count) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end |