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

com.tencentcloudapi.gme.v20180711.models.ScanVoiceRequest 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.gme.v20180711.models;

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

public class ScanVoiceRequest extends AbstractModel{

    /**
    * Application ID, which is the `AppID` obtained when you create an application in [Console > Service Management](https://console.cloud.tencent.com/gamegme)
    */
    @SerializedName("BizId")
    @Expose
    private Long BizId;

    /**
    * Speech detection scenario. The value of this parameter is currently required to be `default`. Preset scenarios: abusive, pornographic, politically sensitive, advertising, terrorism, and prohibited scenarios. For specific values, please see the Label description above.
    */
    @SerializedName("Scenes")
    @Expose
    private String [] Scenes;

    /**
    * Whether it is a live stream. false: audio file detection, true: audio stream detection.
    */
    @SerializedName("Live")
    @Expose
    private Boolean Live;

    /**
    * Speech detection task list. Up to 100 tasks can be added in the list. The structure contains:
  • DataId: unique data ID
  • Url: URL-encoded data file URL, which is a pull address if the detected speech is a stream
  • */ @SerializedName("Tasks") @Expose private Task [] Tasks; /** * Async callback address for detection result. For more information, please see the callback description above. (Note: if this field is empty, the detection result can only be obtained by calling the `DescribeScanResultList` API.) */ @SerializedName("Callback") @Expose private String Callback; /** * Get Application ID, which is the `AppID` obtained when you create an application in [Console > Service Management](https://console.cloud.tencent.com/gamegme) * @return BizId Application ID, which is the `AppID` obtained when you create an application in [Console > Service Management](https://console.cloud.tencent.com/gamegme) */ public Long getBizId() { return this.BizId; } /** * Set Application ID, which is the `AppID` obtained when you create an application in [Console > Service Management](https://console.cloud.tencent.com/gamegme) * @param BizId Application ID, which is the `AppID` obtained when you create an application in [Console > Service Management](https://console.cloud.tencent.com/gamegme) */ public void setBizId(Long BizId) { this.BizId = BizId; } /** * Get Speech detection scenario. The value of this parameter is currently required to be `default`. Preset scenarios: abusive, pornographic, politically sensitive, advertising, terrorism, and prohibited scenarios. For specific values, please see the Label description above. * @return Scenes Speech detection scenario. The value of this parameter is currently required to be `default`. Preset scenarios: abusive, pornographic, politically sensitive, advertising, terrorism, and prohibited scenarios. For specific values, please see the Label description above. */ public String [] getScenes() { return this.Scenes; } /** * Set Speech detection scenario. The value of this parameter is currently required to be `default`. Preset scenarios: abusive, pornographic, politically sensitive, advertising, terrorism, and prohibited scenarios. For specific values, please see the Label description above. * @param Scenes Speech detection scenario. The value of this parameter is currently required to be `default`. Preset scenarios: abusive, pornographic, politically sensitive, advertising, terrorism, and prohibited scenarios. For specific values, please see the Label description above. */ public void setScenes(String [] Scenes) { this.Scenes = Scenes; } /** * Get Whether it is a live stream. false: audio file detection, true: audio stream detection. * @return Live Whether it is a live stream. false: audio file detection, true: audio stream detection. */ public Boolean getLive() { return this.Live; } /** * Set Whether it is a live stream. false: audio file detection, true: audio stream detection. * @param Live Whether it is a live stream. false: audio file detection, true: audio stream detection. */ public void setLive(Boolean Live) { this.Live = Live; } /** * Get Speech detection task list. Up to 100 tasks can be added in the list. The structure contains:
  • DataId: unique data ID
  • Url: URL-encoded data file URL, which is a pull address if the detected speech is a stream
  • * @return Tasks Speech detection task list. Up to 100 tasks can be added in the list. The structure contains:
  • DataId: unique data ID
  • Url: URL-encoded data file URL, which is a pull address if the detected speech is a stream
  • */ public Task [] getTasks() { return this.Tasks; } /** * Set Speech detection task list. Up to 100 tasks can be added in the list. The structure contains:
  • DataId: unique data ID
  • Url: URL-encoded data file URL, which is a pull address if the detected speech is a stream
  • * @param Tasks Speech detection task list. Up to 100 tasks can be added in the list. The structure contains:
  • DataId: unique data ID
  • Url: URL-encoded data file URL, which is a pull address if the detected speech is a stream
  • */ public void setTasks(Task [] Tasks) { this.Tasks = Tasks; } /** * Get Async callback address for detection result. For more information, please see the callback description above. (Note: if this field is empty, the detection result can only be obtained by calling the `DescribeScanResultList` API.) * @return Callback Async callback address for detection result. For more information, please see the callback description above. (Note: if this field is empty, the detection result can only be obtained by calling the `DescribeScanResultList` API.) */ public String getCallback() { return this.Callback; } /** * Set Async callback address for detection result. For more information, please see the callback description above. (Note: if this field is empty, the detection result can only be obtained by calling the `DescribeScanResultList` API.) * @param Callback Async callback address for detection result. For more information, please see the callback description above. (Note: if this field is empty, the detection result can only be obtained by calling the `DescribeScanResultList` API.) */ public void setCallback(String Callback) { this.Callback = Callback; } public ScanVoiceRequest() { } /** * 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 ScanVoiceRequest(ScanVoiceRequest source) { if (source.BizId != null) { this.BizId = new Long(source.BizId); } if (source.Scenes != null) { this.Scenes = new String[source.Scenes.length]; for (int i = 0; i < source.Scenes.length; i++) { this.Scenes[i] = new String(source.Scenes[i]); } } if (source.Live != null) { this.Live = new Boolean(source.Live); } if (source.Tasks != null) { this.Tasks = new Task[source.Tasks.length]; for (int i = 0; i < source.Tasks.length; i++) { this.Tasks[i] = new Task(source.Tasks[i]); } } if (source.Callback != null) { this.Callback = new String(source.Callback); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "BizId", this.BizId); this.setParamArraySimple(map, prefix + "Scenes.", this.Scenes); this.setParamSimple(map, prefix + "Live", this.Live); this.setParamArrayObj(map, prefix + "Tasks.", this.Tasks); this.setParamSimple(map, prefix + "Callback", this.Callback); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy