Class: Google::Apis::TranslateV3::TransliterationConfig

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

Configures transliteration feature on top of translation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransliterationConfig

Returns a new instance of TransliterationConfig.



1927
1928
1929
# File 'lib/google/apis/translate_v3/classes.rb', line 1927

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_transliterationBoolean Also known as: enable_transliteration?

If true, source text in romanized form can be translated to the target language. Corresponds to the JSON property enableTransliteration

Returns:

  • (Boolean)


1924
1925
1926
# File 'lib/google/apis/translate_v3/classes.rb', line 1924

def enable_transliteration
  @enable_transliteration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1932
1933
1934
# File 'lib/google/apis/translate_v3/classes.rb', line 1932

def update!(**args)
  @enable_transliteration = args[:enable_transliteration] if args.key?(:enable_transliteration)
end