Class: TencentCloud::Hunyuan::V20230901::TranslationDelta

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

Overview

翻译接口返回的内容(流式返回)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ContentObject

Parameters:

  • Role:

    角色名称。

  • Content:

    内容详情。



3047
3048
3049
# File 'lib/v20230901/models.rb', line 3047

def Content
  @Content
end

#RoleObject

Parameters:

  • Role:

    角色名称。

  • Content:

    内容详情。



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