Class: TencentCloud::Hunyuan::V20230901::TranslationDelta
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::TranslationDelta
- Defined in:
- lib/v20230901/models.rb
Overview
翻译接口返回的内容(流式返回)
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(role = nil, content = nil) ⇒ TranslationDelta
constructor
A new instance of TranslationDelta.
Constructor Details
#initialize(role = nil, content = nil) ⇒ TranslationDelta
Returns a new instance of TranslationDelta.
3049 3050 3051 3052 |
# File 'lib/v20230901/models.rb', line 3049 def initialize(role=nil, content=nil) @Role = role @Content = content end |
Instance Attribute Details
#Content ⇒ Object
3047 3048 3049 |
# File 'lib/v20230901/models.rb', line 3047 def Content @Content end |
#Role ⇒ Object
3047 3048 3049 |
# File 'lib/v20230901/models.rb', line 3047 def Role @Role end |
Instance Method Details
#deserialize(params) ⇒ Object
3054 3055 3056 3057 |
# File 'lib/v20230901/models.rb', line 3054 def deserialize(params) @Role = params['Role'] @Content = params['Content'] end |