All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.vod.v20180717.models.PullUploadTask Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.vod.v20180717.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class PullUploadTask extends AbstractModel {

    /**
    * The task ID.
    */
    @SerializedName("TaskId")
    @Expose
    private String TaskId;

    /**
    * Task flow status. Valid values:
  • PROCESSING: processing;
  • FINISH: completed.
  • */ @SerializedName("Status") @Expose private String Status; /** * Error code. 0: success; other values: failure.
  • 40000: invalid input parameter. Please check it;
  • 60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
  • 70000: internal service error. Please try again.
  • */ @SerializedName("ErrCode") @Expose private Long ErrCode; /** * Error message. */ @SerializedName("Message") @Expose private String Message; /** * The ID of the uploaded file. */ @SerializedName("FileId") @Expose private String FileId; /** * The basic information of the uploaded file. Note: This field may return null, indicating that no valid values can be obtained. */ @SerializedName("MediaBasicInfo") @Expose private MediaBasicInfo MediaBasicInfo; /** * The metadata of the output video. */ @SerializedName("MetaData") @Expose private MediaMetaData MetaData; /** * The playback address of the uploaded file. */ @SerializedName("FileUrl") @Expose private String FileUrl; /** * The task ID for the task type `Procedure`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes one or more of `MediaProcessTask`, `AiAnalysisTask`, and `AiRecognitionTask`, the task specified by this parameter will be executed. */ @SerializedName("ProcedureTaskId") @Expose private String ProcedureTaskId; /** * The task ID for the task type `ReviewAudioVideo`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes `ReviewAudioVideoTask`, the task specified by this parameter will be executed. */ @SerializedName("ReviewAudioVideoTaskId") @Expose private String ReviewAudioVideoTaskId; /** * The source context, which is used to pass through user request information. The [PullComplete](https://intl.cloud.tencent.com/document/product/266/7831?from_cn_redirect=1) callback will return the value of this parameter. It can contain up to 1,000 characters. */ @SerializedName("SessionContext") @Expose private String SessionContext; /** * The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed. */ @SerializedName("SessionId") @Expose private String SessionId; /** * The progress of the pull and upload task. Value range: 1-100. */ @SerializedName("Progress") @Expose private Long Progress; /** * Get The task ID. * @return TaskId The task ID. */ public String getTaskId() { return this.TaskId; } /** * Set The task ID. * @param TaskId The task ID. */ public void setTaskId(String TaskId) { this.TaskId = TaskId; } /** * Get Task flow status. Valid values:
  • PROCESSING: processing;
  • FINISH: completed.
  • * @return Status Task flow status. Valid values:
  • PROCESSING: processing;
  • FINISH: completed.
  • */ public String getStatus() { return this.Status; } /** * Set Task flow status. Valid values:
  • PROCESSING: processing;
  • FINISH: completed.
  • * @param Status Task flow status. Valid values:
  • PROCESSING: processing;
  • FINISH: completed.
  • */ public void setStatus(String Status) { this.Status = Status; } /** * Get Error code. 0: success; other values: failure.
  • 40000: invalid input parameter. Please check it;
  • 60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
  • 70000: internal service error. Please try again.
  • * @return ErrCode Error code. 0: success; other values: failure.
  • 40000: invalid input parameter. Please check it;
  • 60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
  • 70000: internal service error. Please try again.
  • */ public Long getErrCode() { return this.ErrCode; } /** * Set Error code. 0: success; other values: failure.
  • 40000: invalid input parameter. Please check it;
  • 60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
  • 70000: internal service error. Please try again.
  • * @param ErrCode Error code. 0: success; other values: failure.
  • 40000: invalid input parameter. Please check it;
  • 60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
  • 70000: internal service error. Please try again.
  • */ public void setErrCode(Long ErrCode) { this.ErrCode = ErrCode; } /** * Get Error message. * @return Message Error message. */ public String getMessage() { return this.Message; } /** * Set Error message. * @param Message Error message. */ public void setMessage(String Message) { this.Message = Message; } /** * Get The ID of the uploaded file. * @return FileId The ID of the uploaded file. */ public String getFileId() { return this.FileId; } /** * Set The ID of the uploaded file. * @param FileId The ID of the uploaded file. */ public void setFileId(String FileId) { this.FileId = FileId; } /** * Get The basic information of the uploaded file. Note: This field may return null, indicating that no valid values can be obtained. * @return MediaBasicInfo The basic information of the uploaded file. Note: This field may return null, indicating that no valid values can be obtained. */ public MediaBasicInfo getMediaBasicInfo() { return this.MediaBasicInfo; } /** * Set The basic information of the uploaded file. Note: This field may return null, indicating that no valid values can be obtained. * @param MediaBasicInfo The basic information of the uploaded file. Note: This field may return null, indicating that no valid values can be obtained. */ public void setMediaBasicInfo(MediaBasicInfo MediaBasicInfo) { this.MediaBasicInfo = MediaBasicInfo; } /** * Get The metadata of the output video. * @return MetaData The metadata of the output video. */ public MediaMetaData getMetaData() { return this.MetaData; } /** * Set The metadata of the output video. * @param MetaData The metadata of the output video. */ public void setMetaData(MediaMetaData MetaData) { this.MetaData = MetaData; } /** * Get The playback address of the uploaded file. * @return FileUrl The playback address of the uploaded file. */ public String getFileUrl() { return this.FileUrl; } /** * Set The playback address of the uploaded file. * @param FileUrl The playback address of the uploaded file. */ public void setFileUrl(String FileUrl) { this.FileUrl = FileUrl; } /** * Get The task ID for the task type `Procedure`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes one or more of `MediaProcessTask`, `AiAnalysisTask`, and `AiRecognitionTask`, the task specified by this parameter will be executed. * @return ProcedureTaskId The task ID for the task type `Procedure`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes one or more of `MediaProcessTask`, `AiAnalysisTask`, and `AiRecognitionTask`, the task specified by this parameter will be executed. */ public String getProcedureTaskId() { return this.ProcedureTaskId; } /** * Set The task ID for the task type `Procedure`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes one or more of `MediaProcessTask`, `AiAnalysisTask`, and `AiRecognitionTask`, the task specified by this parameter will be executed. * @param ProcedureTaskId The task ID for the task type `Procedure`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes one or more of `MediaProcessTask`, `AiAnalysisTask`, and `AiRecognitionTask`, the task specified by this parameter will be executed. */ public void setProcedureTaskId(String ProcedureTaskId) { this.ProcedureTaskId = ProcedureTaskId; } /** * Get The task ID for the task type `ReviewAudioVideo`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes `ReviewAudioVideoTask`, the task specified by this parameter will be executed. * @return ReviewAudioVideoTaskId The task ID for the task type `ReviewAudioVideo`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes `ReviewAudioVideoTask`, the task specified by this parameter will be executed. */ public String getReviewAudioVideoTaskId() { return this.ReviewAudioVideoTaskId; } /** * Set The task ID for the task type `ReviewAudioVideo`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes `ReviewAudioVideoTask`, the task specified by this parameter will be executed. * @param ReviewAudioVideoTaskId The task ID for the task type `ReviewAudioVideo`. If a task flow is specified by [PullUpload](https://intl.cloud.tencent.com/document/api/266/35575?from_cn_redirect=1), and the task flow includes `ReviewAudioVideoTask`, the task specified by this parameter will be executed. */ public void setReviewAudioVideoTaskId(String ReviewAudioVideoTaskId) { this.ReviewAudioVideoTaskId = ReviewAudioVideoTaskId; } /** * Get The source context, which is used to pass through user request information. The [PullComplete](https://intl.cloud.tencent.com/document/product/266/7831?from_cn_redirect=1) callback will return the value of this parameter. It can contain up to 1,000 characters. * @return SessionContext The source context, which is used to pass through user request information. The [PullComplete](https://intl.cloud.tencent.com/document/product/266/7831?from_cn_redirect=1) callback will return the value of this parameter. It can contain up to 1,000 characters. */ public String getSessionContext() { return this.SessionContext; } /** * Set The source context, which is used to pass through user request information. The [PullComplete](https://intl.cloud.tencent.com/document/product/266/7831?from_cn_redirect=1) callback will return the value of this parameter. It can contain up to 1,000 characters. * @param SessionContext The source context, which is used to pass through user request information. The [PullComplete](https://intl.cloud.tencent.com/document/product/266/7831?from_cn_redirect=1) callback will return the value of this parameter. It can contain up to 1,000 characters. */ public void setSessionContext(String SessionContext) { this.SessionContext = SessionContext; } /** * Get The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed. * @return SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed. */ public String getSessionId() { return this.SessionId; } /** * Set The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed. * @param SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed. */ public void setSessionId(String SessionId) { this.SessionId = SessionId; } /** * Get The progress of the pull and upload task. Value range: 1-100. * @return Progress The progress of the pull and upload task. Value range: 1-100. */ public Long getProgress() { return this.Progress; } /** * Set The progress of the pull and upload task. Value range: 1-100. * @param Progress The progress of the pull and upload task. Value range: 1-100. */ public void setProgress(Long Progress) { this.Progress = Progress; } public PullUploadTask() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public PullUploadTask(PullUploadTask source) { if (source.TaskId != null) { this.TaskId = new String(source.TaskId); } if (source.Status != null) { this.Status = new String(source.Status); } if (source.ErrCode != null) { this.ErrCode = new Long(source.ErrCode); } if (source.Message != null) { this.Message = new String(source.Message); } if (source.FileId != null) { this.FileId = new String(source.FileId); } if (source.MediaBasicInfo != null) { this.MediaBasicInfo = new MediaBasicInfo(source.MediaBasicInfo); } if (source.MetaData != null) { this.MetaData = new MediaMetaData(source.MetaData); } if (source.FileUrl != null) { this.FileUrl = new String(source.FileUrl); } if (source.ProcedureTaskId != null) { this.ProcedureTaskId = new String(source.ProcedureTaskId); } if (source.ReviewAudioVideoTaskId != null) { this.ReviewAudioVideoTaskId = new String(source.ReviewAudioVideoTaskId); } if (source.SessionContext != null) { this.SessionContext = new String(source.SessionContext); } if (source.SessionId != null) { this.SessionId = new String(source.SessionId); } if (source.Progress != null) { this.Progress = new Long(source.Progress); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "TaskId", this.TaskId); this.setParamSimple(map, prefix + "Status", this.Status); this.setParamSimple(map, prefix + "ErrCode", this.ErrCode); this.setParamSimple(map, prefix + "Message", this.Message); this.setParamSimple(map, prefix + "FileId", this.FileId); this.setParamObj(map, prefix + "MediaBasicInfo.", this.MediaBasicInfo); this.setParamObj(map, prefix + "MetaData.", this.MetaData); this.setParamSimple(map, prefix + "FileUrl", this.FileUrl); this.setParamSimple(map, prefix + "ProcedureTaskId", this.ProcedureTaskId); this.setParamSimple(map, prefix + "ReviewAudioVideoTaskId", this.ReviewAudioVideoTaskId); this.setParamSimple(map, prefix + "SessionContext", this.SessionContext); this.setParamSimple(map, prefix + "SessionId", this.SessionId); this.setParamSimple(map, prefix + "Progress", this.Progress); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy