Class: TencentCloud::Nlp::V20190408::ClassifyContentResponse

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

Overview

ClassifyContent返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(firstclassification = nil, secondclassification = nil, thirdclassification = nil, requestid = nil) ⇒ ClassifyContentResponse

Returns a new instance of ClassifyContentResponse.



165
166
167
168
169
170
# File 'lib/v20190408/models.rb', line 165

def initialize(firstclassification=nil, secondclassification=nil, thirdclassification=nil, requestid=nil)
  @FirstClassification = firstclassification
  @SecondClassification = secondclassification
  @ThirdClassification = thirdclassification
  @RequestId = requestid
end

Instance Attribute Details

#FirstClassificationObject

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

Parameters:



163
164
165
# File 'lib/v20190408/models.rb', line 163

def FirstClassification
  @FirstClassification
end

#RequestIdObject

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

Parameters:



163
164
165
# File 'lib/v20190408/models.rb', line 163

def RequestId
  @RequestId
end

#SecondClassificationObject

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

Parameters:



163
164
165
# File 'lib/v20190408/models.rb', line 163

def SecondClassification
  @SecondClassification
end

#ThirdClassificationObject

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

Parameters:



163
164
165
# File 'lib/v20190408/models.rb', line 163

def ThirdClassification
  @ThirdClassification
end

Instance Method Details

#deserialize(params) ⇒ Object



172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/v20190408/models.rb', line 172

def deserialize(params)
  unless params['FirstClassification'].nil?
    @FirstClassification = Category.new
    @FirstClassification.deserialize(params['FirstClassification'])
  end
  unless params['SecondClassification'].nil?
    @SecondClassification = Category.new
    @SecondClassification.deserialize(params['SecondClassification'])
  end
  unless params['ThirdClassification'].nil?
    @ThirdClassification = Category.new
    @ThirdClassification.deserialize(params['ThirdClassification'])
  end
  @RequestId = params['RequestId']
end