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

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

/*
 * 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class ReviewAudioVideoSegmentItem extends AbstractModel{

    /**
    * The start time offset (seconds) of the segment.
    */
    @SerializedName("StartTimeOffset")
    @Expose
    private Float StartTimeOffset;

    /**
    * The end time offset (seconds) of the segment.
    */
    @SerializedName("EndTimeOffset")
    @Expose
    private Float EndTimeOffset;

    /**
    * The confidence score of the segment.
    */
    @SerializedName("Confidence")
    @Expose
    private Float Confidence;

    /**
    * The processing suggestion for the segment. Valid values:
  • review: The content may be non-compliant. Please review it.
  • block: The content is non-compliant. We recommend you block it.
  • */ @SerializedName("Suggestion") @Expose private String Suggestion; /** * The most likely label for the segment. Valid values:
  • Porn
  • Terrorism
  • */ @SerializedName("Label") @Expose private String Label; /** * The sublabel for the segment. This parameter is valid only if `Form` is `Image` or `Voice`. Valid values when `Form` is `Image` and `Label` is `Porn`:
  • porn
  • vulgar
  • Valid values when `Form` is `Image` and `Label` is `Terrorism`:
  • guns
  • bloody
  • banners
  • scenario (terrorist scenes)
  • explosion
  • Valid values when `Form` is `Voice` and `Label` is `Porn`:
  • moan
  • */ @SerializedName("SubLabel") @Expose private String SubLabel; /** * The format of the suspicious segment detected. Valid values:
  • Image
  • OCR
  • ASR
  • Voice
  • */ @SerializedName("Form") @Expose private String Form; /** * The pixel coordinates ([x1, y1, x2, y2]) of the top-left corner and bottom-right corner of the suspicious text. This parameter is valid only if `Form` is `OCR`. Note: This parameter is not supported currently. */ @SerializedName("AreaCoordSet") @Expose private Long [] AreaCoordSet; /** * The content of the suspicious text detected. This parameter is valid only if `Form` is `OCR` or `ASR`. */ @SerializedName("Text") @Expose private String Text; /** * The keywords that match the suspicious text. This parameter is valid only if `Form` is `OCR` or `ASR`. */ @SerializedName("KeywordSet") @Expose private String [] KeywordSet; /** * Get The start time offset (seconds) of the segment. * @return StartTimeOffset The start time offset (seconds) of the segment. */ public Float getStartTimeOffset() { return this.StartTimeOffset; } /** * Set The start time offset (seconds) of the segment. * @param StartTimeOffset The start time offset (seconds) of the segment. */ public void setStartTimeOffset(Float StartTimeOffset) { this.StartTimeOffset = StartTimeOffset; } /** * Get The end time offset (seconds) of the segment. * @return EndTimeOffset The end time offset (seconds) of the segment. */ public Float getEndTimeOffset() { return this.EndTimeOffset; } /** * Set The end time offset (seconds) of the segment. * @param EndTimeOffset The end time offset (seconds) of the segment. */ public void setEndTimeOffset(Float EndTimeOffset) { this.EndTimeOffset = EndTimeOffset; } /** * Get The confidence score of the segment. * @return Confidence The confidence score of the segment. */ public Float getConfidence() { return this.Confidence; } /** * Set The confidence score of the segment. * @param Confidence The confidence score of the segment. */ public void setConfidence(Float Confidence) { this.Confidence = Confidence; } /** * Get The processing suggestion for the segment. Valid values:
  • review: The content may be non-compliant. Please review it.
  • block: The content is non-compliant. We recommend you block it.
  • * @return Suggestion The processing suggestion for the segment. Valid values:
  • review: The content may be non-compliant. Please review it.
  • block: The content is non-compliant. We recommend you block it.
  • */ public String getSuggestion() { return this.Suggestion; } /** * Set The processing suggestion for the segment. Valid values:
  • review: The content may be non-compliant. Please review it.
  • block: The content is non-compliant. We recommend you block it.
  • * @param Suggestion The processing suggestion for the segment. Valid values:
  • review: The content may be non-compliant. Please review it.
  • block: The content is non-compliant. We recommend you block it.
  • */ public void setSuggestion(String Suggestion) { this.Suggestion = Suggestion; } /** * Get The most likely label for the segment. Valid values:
  • Porn
  • Terrorism
  • * @return Label The most likely label for the segment. Valid values:
  • Porn
  • Terrorism
  • */ public String getLabel() { return this.Label; } /** * Set The most likely label for the segment. Valid values:
  • Porn
  • Terrorism
  • * @param Label The most likely label for the segment. Valid values:
  • Porn
  • Terrorism
  • */ public void setLabel(String Label) { this.Label = Label; } /** * Get The sublabel for the segment. This parameter is valid only if `Form` is `Image` or `Voice`. Valid values when `Form` is `Image` and `Label` is `Porn`:
  • porn
  • vulgar
  • Valid values when `Form` is `Image` and `Label` is `Terrorism`:
  • guns
  • bloody
  • banners
  • scenario (terrorist scenes)
  • explosion
  • Valid values when `Form` is `Voice` and `Label` is `Porn`:
  • moan
  • * @return SubLabel The sublabel for the segment. This parameter is valid only if `Form` is `Image` or `Voice`. Valid values when `Form` is `Image` and `Label` is `Porn`:
  • porn
  • vulgar
  • Valid values when `Form` is `Image` and `Label` is `Terrorism`:
  • guns
  • bloody
  • banners
  • scenario (terrorist scenes)
  • explosion
  • Valid values when `Form` is `Voice` and `Label` is `Porn`:
  • moan
  • */ public String getSubLabel() { return this.SubLabel; } /** * Set The sublabel for the segment. This parameter is valid only if `Form` is `Image` or `Voice`. Valid values when `Form` is `Image` and `Label` is `Porn`:
  • porn
  • vulgar
  • Valid values when `Form` is `Image` and `Label` is `Terrorism`:
  • guns
  • bloody
  • banners
  • scenario (terrorist scenes)
  • explosion
  • Valid values when `Form` is `Voice` and `Label` is `Porn`:
  • moan
  • * @param SubLabel The sublabel for the segment. This parameter is valid only if `Form` is `Image` or `Voice`. Valid values when `Form` is `Image` and `Label` is `Porn`:
  • porn
  • vulgar
  • Valid values when `Form` is `Image` and `Label` is `Terrorism`:
  • guns
  • bloody
  • banners
  • scenario (terrorist scenes)
  • explosion
  • Valid values when `Form` is `Voice` and `Label` is `Porn`:
  • moan
  • */ public void setSubLabel(String SubLabel) { this.SubLabel = SubLabel; } /** * Get The format of the suspicious segment detected. Valid values:
  • Image
  • OCR
  • ASR
  • Voice
  • * @return Form The format of the suspicious segment detected. Valid values:
  • Image
  • OCR
  • ASR
  • Voice
  • */ public String getForm() { return this.Form; } /** * Set The format of the suspicious segment detected. Valid values:
  • Image
  • OCR
  • ASR
  • Voice
  • * @param Form The format of the suspicious segment detected. Valid values:
  • Image
  • OCR
  • ASR
  • Voice
  • */ public void setForm(String Form) { this.Form = Form; } /** * Get The pixel coordinates ([x1, y1, x2, y2]) of the top-left corner and bottom-right corner of the suspicious text. This parameter is valid only if `Form` is `OCR`. Note: This parameter is not supported currently. * @return AreaCoordSet The pixel coordinates ([x1, y1, x2, y2]) of the top-left corner and bottom-right corner of the suspicious text. This parameter is valid only if `Form` is `OCR`. Note: This parameter is not supported currently. */ public Long [] getAreaCoordSet() { return this.AreaCoordSet; } /** * Set The pixel coordinates ([x1, y1, x2, y2]) of the top-left corner and bottom-right corner of the suspicious text. This parameter is valid only if `Form` is `OCR`. Note: This parameter is not supported currently. * @param AreaCoordSet The pixel coordinates ([x1, y1, x2, y2]) of the top-left corner and bottom-right corner of the suspicious text. This parameter is valid only if `Form` is `OCR`. Note: This parameter is not supported currently. */ public void setAreaCoordSet(Long [] AreaCoordSet) { this.AreaCoordSet = AreaCoordSet; } /** * Get The content of the suspicious text detected. This parameter is valid only if `Form` is `OCR` or `ASR`. * @return Text The content of the suspicious text detected. This parameter is valid only if `Form` is `OCR` or `ASR`. */ public String getText() { return this.Text; } /** * Set The content of the suspicious text detected. This parameter is valid only if `Form` is `OCR` or `ASR`. * @param Text The content of the suspicious text detected. This parameter is valid only if `Form` is `OCR` or `ASR`. */ public void setText(String Text) { this.Text = Text; } /** * Get The keywords that match the suspicious text. This parameter is valid only if `Form` is `OCR` or `ASR`. * @return KeywordSet The keywords that match the suspicious text. This parameter is valid only if `Form` is `OCR` or `ASR`. */ public String [] getKeywordSet() { return this.KeywordSet; } /** * Set The keywords that match the suspicious text. This parameter is valid only if `Form` is `OCR` or `ASR`. * @param KeywordSet The keywords that match the suspicious text. This parameter is valid only if `Form` is `OCR` or `ASR`. */ public void setKeywordSet(String [] KeywordSet) { this.KeywordSet = KeywordSet; } public ReviewAudioVideoSegmentItem() { } /** * 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 ReviewAudioVideoSegmentItem(ReviewAudioVideoSegmentItem source) { if (source.StartTimeOffset != null) { this.StartTimeOffset = new Float(source.StartTimeOffset); } if (source.EndTimeOffset != null) { this.EndTimeOffset = new Float(source.EndTimeOffset); } if (source.Confidence != null) { this.Confidence = new Float(source.Confidence); } if (source.Suggestion != null) { this.Suggestion = new String(source.Suggestion); } if (source.Label != null) { this.Label = new String(source.Label); } if (source.SubLabel != null) { this.SubLabel = new String(source.SubLabel); } if (source.Form != null) { this.Form = new String(source.Form); } if (source.AreaCoordSet != null) { this.AreaCoordSet = new Long[source.AreaCoordSet.length]; for (int i = 0; i < source.AreaCoordSet.length; i++) { this.AreaCoordSet[i] = new Long(source.AreaCoordSet[i]); } } if (source.Text != null) { this.Text = new String(source.Text); } if (source.KeywordSet != null) { this.KeywordSet = new String[source.KeywordSet.length]; for (int i = 0; i < source.KeywordSet.length; i++) { this.KeywordSet[i] = new String(source.KeywordSet[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset); this.setParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset); this.setParamSimple(map, prefix + "Confidence", this.Confidence); this.setParamSimple(map, prefix + "Suggestion", this.Suggestion); this.setParamSimple(map, prefix + "Label", this.Label); this.setParamSimple(map, prefix + "SubLabel", this.SubLabel); this.setParamSimple(map, prefix + "Form", this.Form); this.setParamArraySimple(map, prefix + "AreaCoordSet.", this.AreaCoordSet); this.setParamSimple(map, prefix + "Text", this.Text); this.setParamArraySimple(map, prefix + "KeywordSet.", this.KeywordSet); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy