Class: TencentCloud::Hunyuan::V20230901::TranslationMessage
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::TranslationMessage
- Defined in:
- lib/v20230901/models.rb
Overview
翻译接口会话内容
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(role = nil, content = nil) ⇒ TranslationMessage
constructor
A new instance of TranslationMessage.
Constructor Details
#initialize(role = nil, content = nil) ⇒ TranslationMessage
Returns a new instance of TranslationMessage.
3069 3070 3071 3072 |
# File 'lib/v20230901/models.rb', line 3069 def initialize(role=nil, content=nil) @Role = role @Content = content end |
Instance Attribute Details
#Content ⇒ Object
3067 3068 3069 |
# File 'lib/v20230901/models.rb', line 3067 def Content @Content end |
#Role ⇒ Object
3067 3068 3069 |
# File 'lib/v20230901/models.rb', line 3067 def Role @Role end |
Instance Method Details
#deserialize(params) ⇒ Object
3074 3075 3076 3077 |
# File 'lib/v20230901/models.rb', line 3074 def deserialize(params) @Role = params['Role'] @Content = params['Content'] end |