Class: TencentCloud::Irp::V20220324::RecItemData

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

Overview

推荐内容信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(itemid = nil, itemtype = nil, weight = nil, score = nil, keyword = nil) ⇒ RecItemData

Returns a new instance of RecItemData.



502
503
504
505
506
507
508
# File 'lib/v20220324/models.rb', line 502

def initialize(itemid=nil, itemtype=nil, weight=nil, score=nil, keyword=nil)
  @ItemId = itemid
  @ItemType = itemtype
  @Weight = weight
  @Score = score
  @Keyword = keyword
end

Instance Attribute Details

#ItemIdObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ItemId:

    推荐的内容id,即用户行为上报中的itemId

  • ItemType:

    物料子类型,包括如下: 1-图文、2-长视频(横视频)、3-短视频(横视频)、4-小说、5-小视频(竖视频)、6-纯文本

  • Weight:

    推荐内容的权重,取值范围[0,1000000]

  • Score:

    推荐预测分

  • Keyword:

    关键词,多个用英文分号分割,和物料上传的keyword一致



500
501
502
# File 'lib/v20220324/models.rb', line 500

def ItemId
  @ItemId
end

#ItemTypeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ItemId:

    推荐的内容id,即用户行为上报中的itemId

  • ItemType:

    物料子类型,包括如下: 1-图文、2-长视频(横视频)、3-短视频(横视频)、4-小说、5-小视频(竖视频)、6-纯文本

  • Weight:

    推荐内容的权重,取值范围[0,1000000]

  • Score:

    推荐预测分

  • Keyword:

    关键词,多个用英文分号分割,和物料上传的keyword一致



500
501
502
# File 'lib/v20220324/models.rb', line 500

def ItemType
  @ItemType
end

#KeywordObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ItemId:

    推荐的内容id,即用户行为上报中的itemId

  • ItemType:

    物料子类型,包括如下: 1-图文、2-长视频(横视频)、3-短视频(横视频)、4-小说、5-小视频(竖视频)、6-纯文本

  • Weight:

    推荐内容的权重,取值范围[0,1000000]

  • Score:

    推荐预测分

  • Keyword:

    关键词,多个用英文分号分割,和物料上传的keyword一致



500
501
502
# File 'lib/v20220324/models.rb', line 500

def Keyword
  @Keyword
end

#ScoreObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ItemId:

    推荐的内容id,即用户行为上报中的itemId

  • ItemType:

    物料子类型,包括如下: 1-图文、2-长视频(横视频)、3-短视频(横视频)、4-小说、5-小视频(竖视频)、6-纯文本

  • Weight:

    推荐内容的权重,取值范围[0,1000000]

  • Score:

    推荐预测分

  • Keyword:

    关键词,多个用英文分号分割,和物料上传的keyword一致



500
501
502
# File 'lib/v20220324/models.rb', line 500

def Score
  @Score
end

#WeightObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ItemId:

    推荐的内容id,即用户行为上报中的itemId

  • ItemType:

    物料子类型,包括如下: 1-图文、2-长视频(横视频)、3-短视频(横视频)、4-小说、5-小视频(竖视频)、6-纯文本

  • Weight:

    推荐内容的权重,取值范围[0,1000000]

  • Score:

    推荐预测分

  • Keyword:

    关键词,多个用英文分号分割,和物料上传的keyword一致



500
501
502
# File 'lib/v20220324/models.rb', line 500

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



510
511
512
513
514
515
516
# File 'lib/v20220324/models.rb', line 510

def deserialize(params)
  @ItemId = params['ItemId']
  @ItemType = params['ItemType']
  @Weight = params['Weight']
  @Score = params['Score']
  @Keyword = params['Keyword']
end