Class: TencentCloud::Tms::V20201229::TextModerationRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tms::V20201229::TextModerationRequest
- Defined in:
- lib/v20201229/models.rb
Overview
TextModeration请求参数结构体
Instance Attribute Summary collapse
-
#BizType ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
-
#Content ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
-
#DataId ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
-
#Device ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
-
#SessionId ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
-
#SourceLanguage ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
-
#Type ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
-
#User ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(content = nil, biztype = nil, dataid = nil, user = nil, device = nil, sourcelanguage = nil, type = nil, sessionid = nil) ⇒ TextModerationRequest
constructor
A new instance of TextModerationRequest.
Constructor Details
#initialize(content = nil, biztype = nil, dataid = nil, user = nil, device = nil, sourcelanguage = nil, type = nil, sessionid = nil) ⇒ TextModerationRequest
Returns a new instance of TextModerationRequest.
479 480 481 482 483 484 485 486 487 488 |
# File 'lib/v20201229/models.rb', line 479 def initialize(content=nil, biztype=nil, dataid=nil, user=nil, device=nil, sourcelanguage=nil, type=nil, sessionid=nil) @Content = content @BizType = biztype @DataId = dataid @User = user @Device = device @SourceLanguage = sourcelanguage @Type = type @SessionId = sessionid end |
Instance Attribute Details
#BizType ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def BizType @BizType end |
#Content ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def Content @Content end |
#DataId ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def DataId @DataId end |
#Device ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def Device @Device end |
#SessionId ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def SessionId @SessionId end |
#SourceLanguage ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def SourceLanguage @SourceLanguage end |
#Type ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def Type @Type end |
#User ⇒ Object
备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
477 478 479 |
# File 'lib/v20201229/models.rb', line 477 def User @User end |
Instance Method Details
#deserialize(params) ⇒ Object
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 |
# File 'lib/v20201229/models.rb', line 490 def deserialize(params) @Content = params['Content'] @BizType = params['BizType'] @DataId = params['DataId'] unless params['User'].nil? @User = User.new @User.deserialize(params['User']) end unless params['Device'].nil? @Device = Device.new @Device.deserialize(params['Device']) end @SourceLanguage = params['SourceLanguage'] @Type = params['Type'] @SessionId = params['SessionId'] end |