com.aliyun.sdk.service.green20220302.models.VoiceModerationResultResponseBody Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.green20220302.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link VoiceModerationResultResponseBody} extends {@link TeaModel}
*
* VoiceModerationResultResponseBody
*/
public class VoiceModerationResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private VoiceModerationResultResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static VoiceModerationResultResponseBody create() {
return builder().build();
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer code;
private Data data;
private String message;
private String requestId;
/**
* The returned HTTP status code.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* The data returned.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* The message that is returned in response to the request.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public VoiceModerationResultResponseBody build() {
return new VoiceModerationResultResponseBody(this);
}
}
public static class SliceDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.NameInMap("EndTimestamp")
private Long endTimestamp;
@com.aliyun.core.annotation.NameInMap("Extend")
private String extend;
@com.aliyun.core.annotation.NameInMap("Labels")
private String labels;
@com.aliyun.core.annotation.NameInMap("OriginAlgoResult")
private java.util.Map < String, ? > originAlgoResult;
@com.aliyun.core.annotation.NameInMap("RiskTips")
private String riskTips;
@com.aliyun.core.annotation.NameInMap("RiskWords")
private String riskWords;
@com.aliyun.core.annotation.NameInMap("Score")
private Float score;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("StartTimestamp")
private Long startTimestamp;
@com.aliyun.core.annotation.NameInMap("Text")
private String text;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private SliceDetails(Builder builder) {
this.endTime = builder.endTime;
this.endTimestamp = builder.endTimestamp;
this.extend = builder.extend;
this.labels = builder.labels;
this.originAlgoResult = builder.originAlgoResult;
this.riskTips = builder.riskTips;
this.riskWords = builder.riskWords;
this.score = builder.score;
this.startTime = builder.startTime;
this.startTimestamp = builder.startTimestamp;
this.text = builder.text;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static SliceDetails create() {
return builder().build();
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return endTimestamp
*/
public Long getEndTimestamp() {
return this.endTimestamp;
}
/**
* @return extend
*/
public String getExtend() {
return this.extend;
}
/**
* @return labels
*/
public String getLabels() {
return this.labels;
}
/**
* @return originAlgoResult
*/
public java.util.Map < String, ? > getOriginAlgoResult() {
return this.originAlgoResult;
}
/**
* @return riskTips
*/
public String getRiskTips() {
return this.riskTips;
}
/**
* @return riskWords
*/
public String getRiskWords() {
return this.riskWords;
}
/**
* @return score
*/
public Float getScore() {
return this.score;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return startTimestamp
*/
public Long getStartTimestamp() {
return this.startTimestamp;
}
/**
* @return text
*/
public String getText() {
return this.text;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private Long endTime;
private Long endTimestamp;
private String extend;
private String labels;
private java.util.Map < String, ? > originAlgoResult;
private String riskTips;
private String riskWords;
private Float score;
private Long startTime;
private Long startTimestamp;
private String text;
private String url;
/**
* The end time of the text after audio-to-text conversion. Unit: seconds.
*/
public Builder endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* The end timestamp of the segment. Unit: milliseconds.
*/
public Builder endTimestamp(Long endTimestamp) {
this.endTimestamp = endTimestamp;
return this;
}
/**
* A reserved parameter.
*/
public Builder extend(String extend) {
this.extend = extend;
return this;
}
/**
* The details of the labels.
*/
public Builder labels(String labels) {
this.labels = labels;
return this;
}
/**
* Reserved field.
*/
public Builder originAlgoResult(java.util.Map < String, ? > originAlgoResult) {
this.originAlgoResult = originAlgoResult;
return this;
}
/**
* The risk details that are hit.
*/
public Builder riskTips(String riskTips) {
this.riskTips = riskTips;
return this;
}
/**
* The risk words that are hit.
*/
public Builder riskWords(String riskWords) {
this.riskWords = riskWords;
return this;
}
/**
* Risk score, default range 0-99.
*/
public Builder score(Float score) {
this.score = score;
return this;
}
/**
* The start time of the text after audio-to-text conversion. Unit: seconds.
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The start timestamp of the segment. Unit: milliseconds.
*/
public Builder startTimestamp(Long startTimestamp) {
this.startTimestamp = startTimestamp;
return this;
}
/**
* The text converted from voice.
*/
public Builder text(String text) {
this.text = text;
return this;
}
/**
* The temporary access address of the audio segment. The validity period of the URL is 30 minutes. You must prepare another URL to store the audio segment at the earliest opportunity.
*/
public Builder url(String url) {
this.url = url;
return this;
}
public SliceDetails build() {
return new SliceDetails(this);
}
}
}
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DataId")
private String dataId;
@com.aliyun.core.annotation.NameInMap("LiveId")
private String liveId;
@com.aliyun.core.annotation.NameInMap("SliceDetails")
private java.util.List < SliceDetails> sliceDetails;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private Data(Builder builder) {
this.dataId = builder.dataId;
this.liveId = builder.liveId;
this.sliceDetails = builder.sliceDetails;
this.taskId = builder.taskId;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return dataId
*/
public String getDataId() {
return this.dataId;
}
/**
* @return liveId
*/
public String getLiveId() {
return this.liveId;
}
/**
* @return sliceDetails
*/
public java.util.List < SliceDetails> getSliceDetails() {
return this.sliceDetails;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String dataId;
private String liveId;
private java.util.List < SliceDetails> sliceDetails;
private String taskId;
private String url;
/**
* The ID of the moderated object.
*/
public Builder dataId(String dataId) {
this.dataId = dataId;
return this;
}
/**
* The unique ID of the live stream.
*/
public Builder liveId(String liveId) {
this.liveId = liveId;
return this;
}
/**
* The details about the audio segments.
*/
public Builder sliceDetails(java.util.List < SliceDetails> sliceDetails) {
this.sliceDetails = sliceDetails;
return this;
}
/**
* The task ID.
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* The URL of the moderation object.
*/
public Builder url(String url) {
this.url = url;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}