Class: TencentCloud::Tms::V20201229::TextModerationRequest

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

Overview

TextModeration请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#BizTypeObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



477
478
479
# File 'lib/v20201229/models.rb', line 477

def BizType
  @BizType
end

#ContentObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



477
478
479
# File 'lib/v20201229/models.rb', line 477

def Content
  @Content
end

#DataIdObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



477
478
479
# File 'lib/v20201229/models.rb', line 477

def DataId
  @DataId
end

#DeviceObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



477
478
479
# File 'lib/v20201229/models.rb', line 477

def Device
  @Device
end

#SessionIdObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



477
478
479
# File 'lib/v20201229/models.rb', line 477

def SessionId
  @SessionId
end

#SourceLanguageObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



477
478
479
# File 'lib/v20201229/models.rb', line 477

def SourceLanguage
  @SourceLanguage
end

#TypeObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



477
478
479
# File 'lib/v20201229/models.rb', line 477

def Type
  @Type
end

#UserObject

备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。

Parameters:



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