Class: TencentCloud::Asr::V20190614::GetAsrVocabListResponse

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

Overview

GetAsrVocabList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vocablist = nil, totalcount = nil, requestid = nil) ⇒ GetAsrVocabListResponse

Returns a new instance of GetAsrVocabListResponse.



948
949
950
951
952
# File 'lib/v20190614/models.rb', line 948

def initialize(vocablist=nil, totalcount=nil, requestid=nil)
  @VocabList = vocablist
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • VocabList:

    热词表列表

  • TotalCount:

    热词列表总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



946
947
948
# File 'lib/v20190614/models.rb', line 946

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • VocabList:

    热词表列表

  • TotalCount:

    热词列表总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



946
947
948
# File 'lib/v20190614/models.rb', line 946

def TotalCount
  @TotalCount
end

#VocabListObject

Parameters:

  • VocabList:

    热词表列表

  • TotalCount:

    热词列表总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



946
947
948
# File 'lib/v20190614/models.rb', line 946

def VocabList
  @VocabList
end

Instance Method Details

#deserialize(params) ⇒ Object



954
955
956
957
958
959
960
961
962
963
964
965
# File 'lib/v20190614/models.rb', line 954

def deserialize(params)
  unless params['VocabList'].nil?
    @VocabList = []
    params['VocabList'].each do |i|
      vocab_tmp = Vocab.new
      vocab_tmp.deserialize(i)
      @VocabList << vocab_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end