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

com.tencentcloudapi.tiia.v20190529.models.DetectLabelBetaResponse 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.tiia.v20190529.models;

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

public class DetectLabelBetaResponse extends AbstractModel{

    /**
    * Web网络版标签结果数组。如未选择WEB场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("Labels")
    @Expose
    private DetectLabelItem [] Labels;

    /**
    * Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("CameraLabels")
    @Expose
    private DetectLabelItem [] CameraLabels;

    /**
    * Album相册版标签结果数组。如未选择ALBUM场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("AlbumLabels")
    @Expose
    private DetectLabelItem [] AlbumLabels;

    /**
    * News新闻版标签结果数组。如未选择NEWS场景,则为空。
新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("NewsLabels")
    @Expose
    private DetectLabelItem [] NewsLabels;

    /**
    * 非实拍标签
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("NoneCamLabels")
    @Expose
    private DetectLabelItem [] NoneCamLabels;

    /**
    * 识别结果
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("LocationLabels")
    @Expose
    private Product [] LocationLabels;

    /**
    * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Web网络版标签结果数组。如未选择WEB场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return Labels Web网络版标签结果数组。如未选择WEB场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public DetectLabelItem [] getLabels() {
        return this.Labels;
    }

    /**
     * Set Web网络版标签结果数组。如未选择WEB场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     * @param Labels Web网络版标签结果数组。如未选择WEB场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setLabels(DetectLabelItem [] Labels) {
        this.Labels = Labels;
    }

    /**
     * Get Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return CameraLabels Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public DetectLabelItem [] getCameraLabels() {
        return this.CameraLabels;
    }

    /**
     * Set Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     * @param CameraLabels Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setCameraLabels(DetectLabelItem [] CameraLabels) {
        this.CameraLabels = CameraLabels;
    }

    /**
     * Get Album相册版标签结果数组。如未选择ALBUM场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return AlbumLabels Album相册版标签结果数组。如未选择ALBUM场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public DetectLabelItem [] getAlbumLabels() {
        return this.AlbumLabels;
    }

    /**
     * Set Album相册版标签结果数组。如未选择ALBUM场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     * @param AlbumLabels Album相册版标签结果数组。如未选择ALBUM场景,则为空。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setAlbumLabels(DetectLabelItem [] AlbumLabels) {
        this.AlbumLabels = AlbumLabels;
    }

    /**
     * Get News新闻版标签结果数组。如未选择NEWS场景,则为空。
新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return NewsLabels News新闻版标签结果数组。如未选择NEWS场景,则为空。
新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public DetectLabelItem [] getNewsLabels() {
        return this.NewsLabels;
    }

    /**
     * Set News新闻版标签结果数组。如未选择NEWS场景,则为空。
新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
注意:此字段可能返回 null,表示取不到有效值。
     * @param NewsLabels News新闻版标签结果数组。如未选择NEWS场景,则为空。
新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setNewsLabels(DetectLabelItem [] NewsLabels) {
        this.NewsLabels = NewsLabels;
    }

    /**
     * Get 非实拍标签
注意:此字段可能返回 null,表示取不到有效值。 
     * @return NoneCamLabels 非实拍标签
注意:此字段可能返回 null,表示取不到有效值。
     */
    public DetectLabelItem [] getNoneCamLabels() {
        return this.NoneCamLabels;
    }

    /**
     * Set 非实拍标签
注意:此字段可能返回 null,表示取不到有效值。
     * @param NoneCamLabels 非实拍标签
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setNoneCamLabels(DetectLabelItem [] NoneCamLabels) {
        this.NoneCamLabels = NoneCamLabels;
    }

    /**
     * Get 识别结果
注意:此字段可能返回 null,表示取不到有效值。 
     * @return LocationLabels 识别结果
注意:此字段可能返回 null,表示取不到有效值。
     */
    public Product [] getLocationLabels() {
        return this.LocationLabels;
    }

    /**
     * Set 识别结果
注意:此字段可能返回 null,表示取不到有效值。
     * @param LocationLabels 识别结果
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setLocationLabels(Product [] LocationLabels) {
        this.LocationLabels = LocationLabels;
    }

    /**
     * Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 
     * @return RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
     * @param RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public DetectLabelBetaResponse() {
    }

    /**
     * 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 DetectLabelBetaResponse(DetectLabelBetaResponse source) {
        if (source.Labels != null) {
            this.Labels = new DetectLabelItem[source.Labels.length];
            for (int i = 0; i < source.Labels.length; i++) {
                this.Labels[i] = new DetectLabelItem(source.Labels[i]);
            }
        }
        if (source.CameraLabels != null) {
            this.CameraLabels = new DetectLabelItem[source.CameraLabels.length];
            for (int i = 0; i < source.CameraLabels.length; i++) {
                this.CameraLabels[i] = new DetectLabelItem(source.CameraLabels[i]);
            }
        }
        if (source.AlbumLabels != null) {
            this.AlbumLabels = new DetectLabelItem[source.AlbumLabels.length];
            for (int i = 0; i < source.AlbumLabels.length; i++) {
                this.AlbumLabels[i] = new DetectLabelItem(source.AlbumLabels[i]);
            }
        }
        if (source.NewsLabels != null) {
            this.NewsLabels = new DetectLabelItem[source.NewsLabels.length];
            for (int i = 0; i < source.NewsLabels.length; i++) {
                this.NewsLabels[i] = new DetectLabelItem(source.NewsLabels[i]);
            }
        }
        if (source.NoneCamLabels != null) {
            this.NoneCamLabels = new DetectLabelItem[source.NoneCamLabels.length];
            for (int i = 0; i < source.NoneCamLabels.length; i++) {
                this.NoneCamLabels[i] = new DetectLabelItem(source.NoneCamLabels[i]);
            }
        }
        if (source.LocationLabels != null) {
            this.LocationLabels = new Product[source.LocationLabels.length];
            for (int i = 0; i < source.LocationLabels.length; i++) {
                this.LocationLabels[i] = new Product(source.LocationLabels[i]);
            }
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamArrayObj(map, prefix + "Labels.", this.Labels);
        this.setParamArrayObj(map, prefix + "CameraLabels.", this.CameraLabels);
        this.setParamArrayObj(map, prefix + "AlbumLabels.", this.AlbumLabels);
        this.setParamArrayObj(map, prefix + "NewsLabels.", this.NewsLabels);
        this.setParamArrayObj(map, prefix + "NoneCamLabels.", this.NoneCamLabels);
        this.setParamArrayObj(map, prefix + "LocationLabels.", this.LocationLabels);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy