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

com.tencentcloudapi.tci.v20190318.models.TextItem 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.tci.v20190318.models;

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

public class TextItem extends AbstractModel{

    /**
    * 当前句子包含的所有单词信息
    */
    @SerializedName("Words")
    @Expose
    private Word [] Words;

    /**
    * 当前句子的置信度
    */
    @SerializedName("Confidence")
    @Expose
    private Float Confidence;

    /**
    * 当前句子语音的起始时间点,单位为ms
    */
    @SerializedName("Mbtm")
    @Expose
    private Long Mbtm;

    /**
    * 当前句子语音的终止时间点,单位为ms
    */
    @SerializedName("Metm")
    @Expose
    private Long Metm;

    /**
    * 保留参数,暂无意义
    */
    @SerializedName("Tag")
    @Expose
    private Long Tag;

    /**
    * 当前句子
    */
    @SerializedName("Text")
    @Expose
    private String Text;

    /**
    * 当前句子的字节数
    */
    @SerializedName("TextSize")
    @Expose
    private Long TextSize;

    /**
     * Get 当前句子包含的所有单词信息 
     * @return Words 当前句子包含的所有单词信息
     */
    public Word [] getWords() {
        return this.Words;
    }

    /**
     * Set 当前句子包含的所有单词信息
     * @param Words 当前句子包含的所有单词信息
     */
    public void setWords(Word [] Words) {
        this.Words = Words;
    }

    /**
     * Get 当前句子的置信度 
     * @return Confidence 当前句子的置信度
     */
    public Float getConfidence() {
        return this.Confidence;
    }

    /**
     * Set 当前句子的置信度
     * @param Confidence 当前句子的置信度
     */
    public void setConfidence(Float Confidence) {
        this.Confidence = Confidence;
    }

    /**
     * Get 当前句子语音的起始时间点,单位为ms 
     * @return Mbtm 当前句子语音的起始时间点,单位为ms
     */
    public Long getMbtm() {
        return this.Mbtm;
    }

    /**
     * Set 当前句子语音的起始时间点,单位为ms
     * @param Mbtm 当前句子语音的起始时间点,单位为ms
     */
    public void setMbtm(Long Mbtm) {
        this.Mbtm = Mbtm;
    }

    /**
     * Get 当前句子语音的终止时间点,单位为ms 
     * @return Metm 当前句子语音的终止时间点,单位为ms
     */
    public Long getMetm() {
        return this.Metm;
    }

    /**
     * Set 当前句子语音的终止时间点,单位为ms
     * @param Metm 当前句子语音的终止时间点,单位为ms
     */
    public void setMetm(Long Metm) {
        this.Metm = Metm;
    }

    /**
     * Get 保留参数,暂无意义 
     * @return Tag 保留参数,暂无意义
     */
    public Long getTag() {
        return this.Tag;
    }

    /**
     * Set 保留参数,暂无意义
     * @param Tag 保留参数,暂无意义
     */
    public void setTag(Long Tag) {
        this.Tag = Tag;
    }

    /**
     * Get 当前句子 
     * @return Text 当前句子
     */
    public String getText() {
        return this.Text;
    }

    /**
     * Set 当前句子
     * @param Text 当前句子
     */
    public void setText(String Text) {
        this.Text = Text;
    }

    /**
     * Get 当前句子的字节数 
     * @return TextSize 当前句子的字节数
     */
    public Long getTextSize() {
        return this.TextSize;
    }

    /**
     * Set 当前句子的字节数
     * @param TextSize 当前句子的字节数
     */
    public void setTextSize(Long TextSize) {
        this.TextSize = TextSize;
    }

    public TextItem() {
    }

    /**
     * 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 TextItem(TextItem source) {
        if (source.Words != null) {
            this.Words = new Word[source.Words.length];
            for (int i = 0; i < source.Words.length; i++) {
                this.Words[i] = new Word(source.Words[i]);
            }
        }
        if (source.Confidence != null) {
            this.Confidence = new Float(source.Confidence);
        }
        if (source.Mbtm != null) {
            this.Mbtm = new Long(source.Mbtm);
        }
        if (source.Metm != null) {
            this.Metm = new Long(source.Metm);
        }
        if (source.Tag != null) {
            this.Tag = new Long(source.Tag);
        }
        if (source.Text != null) {
            this.Text = new String(source.Text);
        }
        if (source.TextSize != null) {
            this.TextSize = new Long(source.TextSize);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamArrayObj(map, prefix + "Words.", this.Words);
        this.setParamSimple(map, prefix + "Confidence", this.Confidence);
        this.setParamSimple(map, prefix + "Mbtm", this.Mbtm);
        this.setParamSimple(map, prefix + "Metm", this.Metm);
        this.setParamSimple(map, prefix + "Tag", this.Tag);
        this.setParamSimple(map, prefix + "Text", this.Text);
        this.setParamSimple(map, prefix + "TextSize", this.TextSize);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy