Class: TencentCloud::Ims::V20200713::LibDetail

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

Overview

自定义库/黑白库明细

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, libid = nil, libname = nil, imageid = nil, label = nil, tag = nil, score = nil) ⇒ LibDetail

Returns a new instance of LibDetail.



325
326
327
328
329
330
331
332
333
# File 'lib/v20200713/models.rb', line 325

def initialize(id=nil, libid=nil, libname=nil, imageid=nil, label=nil, tag=nil, score=nil)
  @Id = id
  @LibId = libid
  @LibName = libname
  @ImageId = imageid
  @Label = label
  @Tag = tag
  @Score = score
end

Instance Attribute Details

#IdObject

注意:此字段可能返回 null,表示取不到有效值。以及其他令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    序号

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • ImageId:

    图片ID

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • Tag:

    自定义标签

  • Score:

    命中的模型分值



323
324
325
# File 'lib/v20200713/models.rb', line 323

def Id
  @Id
end

#ImageIdObject

注意:此字段可能返回 null,表示取不到有效值。以及其他令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    序号

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • ImageId:

    图片ID

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • Tag:

    自定义标签

  • Score:

    命中的模型分值



323
324
325
# File 'lib/v20200713/models.rb', line 323

def ImageId
  @ImageId
end

#LabelObject

注意:此字段可能返回 null,表示取不到有效值。以及其他令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    序号

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • ImageId:

    图片ID

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • Tag:

    自定义标签

  • Score:

    命中的模型分值



323
324
325
# File 'lib/v20200713/models.rb', line 323

def Label
  @Label
end

#LibIdObject

注意:此字段可能返回 null,表示取不到有效值。以及其他令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    序号

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • ImageId:

    图片ID

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • Tag:

    自定义标签

  • Score:

    命中的模型分值



323
324
325
# File 'lib/v20200713/models.rb', line 323

def LibId
  @LibId
end

#LibNameObject

注意:此字段可能返回 null,表示取不到有效值。以及其他令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    序号

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • ImageId:

    图片ID

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • Tag:

    自定义标签

  • Score:

    命中的模型分值



323
324
325
# File 'lib/v20200713/models.rb', line 323

def LibName
  @LibName
end

#ScoreObject

注意:此字段可能返回 null,表示取不到有效值。以及其他令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    序号

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • ImageId:

    图片ID

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • Tag:

    自定义标签

  • Score:

    命中的模型分值



323
324
325
# File 'lib/v20200713/models.rb', line 323

def Score
  @Score
end

#TagObject

注意:此字段可能返回 null,表示取不到有效值。以及其他令人反感、不安全或不适宜的内容类型。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    序号

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • ImageId:

    图片ID

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • Tag:

    自定义标签

  • Score:

    命中的模型分值



323
324
325
# File 'lib/v20200713/models.rb', line 323

def Tag
  @Tag
end

Instance Method Details

#deserialize(params) ⇒ Object



335
336
337
338
339
340
341
342
343
# File 'lib/v20200713/models.rb', line 335

def deserialize(params)
  @Id = params['Id']
  @LibId = params['LibId']
  @LibName = params['LibName']
  @ImageId = params['ImageId']
  @Label = params['Label']
  @Tag = params['Tag']
  @Score = params['Score']
end