Class: Google::Apis::TranslateV3::AdaptiveMtFile

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

An AdaptiveMtFile.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeString

Output only. Timestamp when this file was created. Corresponds to the JSON property createTime

Returns:

  • (String)


90
91
92
# File 'lib/google/apis/translate_v3/classes.rb', line 90

def create_time
  @create_time
end

#display_nameString

The file's display name. Corresponds to the JSON property displayName

Returns:

  • (String)


95
96
97
# File 'lib/google/apis/translate_v3/classes.rb', line 95

def display_name
  @display_name
end

#entry_countFixnum

The number of entries that the file contains. Corresponds to the JSON property entryCount

Returns:

  • (Fixnum)


100
101
102
# File 'lib/google/apis/translate_v3/classes.rb', line 100

def entry_count
  @entry_count
end

#nameString

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 propertyname`

Returns:

  • (String)


107
108
109
# File 'lib/google/apis/translate_v3/classes.rb', line 107

def name
  @name
end

#update_timeString

Output only. Timestamp when this file was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


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