Class: Google::Apis::TranslateV3beta1::RefinementEntry
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3beta1::RefinementEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3beta1/classes.rb,
lib/google/apis/translate_v3beta1/representations.rb,
lib/google/apis/translate_v3beta1/representations.rb
Overview
A single refinement entry for RefineTextRequest.
Instance Attribute Summary collapse
-
#original_translation ⇒ String
Required.
-
#source_text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RefinementEntry
constructor
A new instance of RefinementEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RefinementEntry
Returns a new instance of RefinementEntry.
941 942 943 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 941 def initialize(**args) update!(**args) end |
Instance Attribute Details
#original_translation ⇒ String
Required. The original translation of the source text.
Corresponds to the JSON property originalTranslation
934 935 936 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 934 def original_translation @original_translation end |
#source_text ⇒ String
Required. The source text to be refined.
Corresponds to the JSON property sourceText
939 940 941 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 939 def source_text @source_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
946 947 948 949 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 946 def update!(**args) @original_translation = args[:original_translation] if args.key?(:original_translation) @source_text = args[:source_text] if args.key?(:source_text) end |