Class: TencentCloud::Nlp::V20190408::ClassifyContentResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Nlp::V20190408::ClassifyContentResponse
- Defined in:
- lib/v20190408/models.rb
Overview
ClassifyContent返回参数结构体
Instance Attribute Summary collapse
-
#FirstClassification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#SecondClassification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ThirdClassification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(firstclassification = nil, secondclassification = nil, thirdclassification = nil, requestid = nil) ⇒ ClassifyContentResponse
constructor
A new instance of ClassifyContentResponse.
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
#FirstClassification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
163 164 165 |
# File 'lib/v20190408/models.rb', line 163 def FirstClassification @FirstClassification end |
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
163 164 165 |
# File 'lib/v20190408/models.rb', line 163 def RequestId @RequestId end |
#SecondClassification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
163 164 165 |
# File 'lib/v20190408/models.rb', line 163 def SecondClassification @SecondClassification end |
#ThirdClassification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
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 |