Class: Google::Apis::TranslateV3::AdaptiveMtDataset

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 Adaptive MT Dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeString

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

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/translate_v3/classes.rb', line 32

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/translate_v3/classes.rb', line 39

def display_name
  @display_name
end

#example_countFixnum

The number of examples in the dataset. Corresponds to the JSON property exampleCount

Returns:

  • (Fixnum)


44
45
46
# File 'lib/google/apis/translate_v3/classes.rb', line 44

def example_count
  @example_count
end

#nameString

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

Returns:

  • (String)


50
51
52
# File 'lib/google/apis/translate_v3/classes.rb', line 50

def name
  @name
end

#source_language_codeString

The BCP-47 language code of the source language. Corresponds to the JSON property sourceLanguageCode

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/translate_v3/classes.rb', line 55

def source_language_code
  @source_language_code
end

#target_language_codeString

The BCP-47 language code of the target language. Corresponds to the JSON property targetLanguageCode

Returns:

  • (String)


60
61
62
# File 'lib/google/apis/translate_v3/classes.rb', line 60

def target_language_code
  @target_language_code
end

#update_timeString

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

Returns:

  • (String)


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