Class: TencentCloud::Vtc::V20240223::DescribeVideoTranslateJobResponse

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

Overview

DescribeVideoTranslateJob返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jobstatus = nil, joberrorcode = nil, joberrormsg = nil, resultvideourl = nil, translateresults = nil, jobconfirm = nil, jobaudiotaskid = nil, jobvideomoderationid = nil, jobvideoid = nil, originalvideourl = nil, asrtimestamps = nil, jobsubmitreqid = nil, jobaudiomoderationid = nil, requestid = nil) ⇒ DescribeVideoTranslateJobResponse



179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# File 'lib/v20240223/models.rb', line 179

def initialize(jobstatus=nil, joberrorcode=nil, joberrormsg=nil, resultvideourl=nil, translateresults=nil, jobconfirm=nil, jobaudiotaskid=nil, jobvideomoderationid=nil, jobvideoid=nil, originalvideourl=nil, asrtimestamps=nil, jobsubmitreqid=nil, jobaudiomoderationid=nil, requestid=nil)
  @JobStatus = jobstatus
  @JobErrorCode = joberrorcode
  @JobErrorMsg = joberrormsg
  @ResultVideoUrl = resultvideourl
  @TranslateResults = translateresults
  @JobConfirm = jobconfirm
  @JobAudioTaskId = jobaudiotaskid
  @JobVideoModerationId = jobvideomoderationid
  @JobVideoId = jobvideoid
  @OriginalVideoUrl = originalvideourl
  @AsrTimestamps = asrtimestamps
  @JobSubmitReqId = jobsubmitreqid
  @JobAudioModerationId = jobaudiomoderationid
  @RequestId = requestid
end

Instance Attribute Details

#AsrTimestampsObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def AsrTimestamps
  @AsrTimestamps
end

#JobAudioModerationIdObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobAudioModerationId
  @JobAudioModerationId
end

#JobAudioTaskIdObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobAudioTaskId
  @JobAudioTaskId
end

#JobConfirmObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobConfirm
  @JobConfirm
end

#JobErrorCodeObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobErrorCode
  @JobErrorCode
end

#JobErrorMsgObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobErrorMsg
  @JobErrorMsg
end

#JobStatusObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobStatus
  @JobStatus
end

#JobSubmitReqIdObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobSubmitReqId
  @JobSubmitReqId
end

#JobVideoIdObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobVideoId
  @JobVideoId
end

#JobVideoModerationIdObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def JobVideoModerationId
  @JobVideoModerationId
end

#OriginalVideoUrlObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def OriginalVideoUrl
  @OriginalVideoUrl
end

#RequestIdObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def RequestId
  @RequestId
end

#ResultVideoUrlObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def ResultVideoUrl
  @ResultVideoUrl
end

#TranslateResultsObject



177
178
179
# File 'lib/v20240223/models.rb', line 177

def TranslateResults
  @TranslateResults
end

Instance Method Details

#deserialize(params) ⇒ Object



196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# File 'lib/v20240223/models.rb', line 196

def deserialize(params)
  @JobStatus = params['JobStatus']
  @JobErrorCode = params['JobErrorCode']
  @JobErrorMsg = params['JobErrorMsg']
  @ResultVideoUrl = params['ResultVideoUrl']
  unless params['TranslateResults'].nil?
    @TranslateResults = []
    params['TranslateResults'].each do |i|
      translateresult_tmp = TranslateResult.new
      translateresult_tmp.deserialize(i)
      @TranslateResults << translateresult_tmp
    end
  end
  @JobConfirm = params['JobConfirm']
  @JobAudioTaskId = params['JobAudioTaskId']
  @JobVideoModerationId = params['JobVideoModerationId']
  @JobVideoId = params['JobVideoId']
  @OriginalVideoUrl = params['OriginalVideoUrl']
  unless params['AsrTimestamps'].nil?
    @AsrTimestamps = []
    params['AsrTimestamps'].each do |i|
      asrtimestamps_tmp = AsrTimestamps.new
      asrtimestamps_tmp.deserialize(i)
      @AsrTimestamps << asrtimestamps_tmp
    end
  end
  @JobSubmitReqId = params['JobSubmitReqId']
  @JobAudioModerationId = params['JobAudioModerationId']
  @RequestId = params['RequestId']
end