Class: TencentCloud::Hunyuan::V20230901::Reference

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230901/models.rb

Overview

翻译对话参考示例

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, text = nil, translation = nil) ⇒ Reference

Returns a new instance of Reference.



2115
2116
2117
2118
2119
# File 'lib/v20230901/models.rb', line 2115

def initialize(type=nil, text=nil, translation=nil)
  @Type = type
  @Text = text
  @Translation = translation
end

Instance Attribute Details

#TextObject

Parameters:

  • Type:

    翻译文本类型,枚举“sentence”表示句子, “term”表示术语

  • Text:

    原文

  • Translation:

    译文



2113
2114
2115
# File 'lib/v20230901/models.rb', line 2113

def Text
  @Text
end

#TranslationObject

Parameters:

  • Type:

    翻译文本类型,枚举“sentence”表示句子, “term”表示术语

  • Text:

    原文

  • Translation:

    译文



2113
2114
2115
# File 'lib/v20230901/models.rb', line 2113

def Translation
  @Translation
end

#TypeObject

Parameters:

  • Type:

    翻译文本类型,枚举“sentence”表示句子, “term”表示术语

  • Text:

    原文

  • Translation:

    译文



2113
2114
2115
# File 'lib/v20230901/models.rb', line 2113

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



2121
2122
2123
2124
2125
# File 'lib/v20230901/models.rb', line 2121

def deserialize(params)
  @Type = params['Type']
  @Text = params['Text']
  @Translation = params['Translation']
end