com.volcengine.service.vod.model.business.VodASRInfoForAudit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: volcengine/vod/business/vod_media.proto
package com.volcengine.service.vod.model.business;
/**
* Protobuf type {@code Volcengine.Vod.Models.Business.VodASRInfoForAudit}
*/
public final class VodASRInfoForAudit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.VodASRInfoForAudit)
VodASRInfoForAuditOrBuilder {
private static final long serialVersionUID = 0L;
// Use VodASRInfoForAudit.newBuilder() to construct.
private VodASRInfoForAudit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VodASRInfoForAudit() {
text_ = "";
utterances_ = java.util.Collections.emptyList();
language_ = "";
languageDetails_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VodASRInfoForAudit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VodASRInfoForAudit(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
text_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
utterances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
utterances_.add(
input.readMessage(com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.parser(), extensionRegistry));
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
language_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
languageDetails_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
languageDetails_.add(
input.readMessage(com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.parser(), extensionRegistry));
break;
}
case 49: {
speechRate_ = input.readDouble();
break;
}
case 57: {
volume_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
utterances_ = java.util.Collections.unmodifiableList(utterances_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
languageDetails_ = java.util.Collections.unmodifiableList(languageDetails_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodASRInfoForAudit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodASRInfoForAudit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodASRInfoForAudit.class, com.volcengine.service.vod.model.business.VodASRInfoForAudit.Builder.class);
}
public static final int TEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object text_;
/**
*
* 识别的语音文本
*
*
* string Text = 1;
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
}
}
/**
*
* 识别的语音文本
*
*
* string Text = 1;
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UTTERANCES_FIELD_NUMBER = 3;
private java.util.List utterances_;
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
@java.lang.Override
public java.util.List getUtterancesList() {
return utterances_;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
@java.lang.Override
public java.util.List extends com.volcengine.service.vod.model.business.VodASRUtteranceForAuditOrBuilder>
getUtterancesOrBuilderList() {
return utterances_;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
@java.lang.Override
public int getUtterancesCount() {
return utterances_.size();
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRUtteranceForAudit getUtterances(int index) {
return utterances_.get(index);
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRUtteranceForAuditOrBuilder getUtterancesOrBuilder(
int index) {
return utterances_.get(index);
}
public static final int LANGUAGE_FIELD_NUMBER = 4;
private volatile java.lang.Object language_;
/**
*
* 整个音频对应的语言
*
*
* string Language = 4;
* @return The language.
*/
@java.lang.Override
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
language_ = s;
return s;
}
}
/**
*
* 整个音频对应的语言
*
*
* string Language = 4;
* @return The bytes for language.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LANGUAGEDETAILS_FIELD_NUMBER = 5;
private java.util.List languageDetails_;
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
@java.lang.Override
public java.util.List getLanguageDetailsList() {
return languageDetails_;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
@java.lang.Override
public java.util.List extends com.volcengine.service.vod.model.business.VodASRLanguageDetailForAuditOrBuilder>
getLanguageDetailsOrBuilderList() {
return languageDetails_;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
@java.lang.Override
public int getLanguageDetailsCount() {
return languageDetails_.size();
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit getLanguageDetails(int index) {
return languageDetails_.get(index);
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRLanguageDetailForAuditOrBuilder getLanguageDetailsOrBuilder(
int index) {
return languageDetails_.get(index);
}
public static final int SPEECHRATE_FIELD_NUMBER = 6;
private double speechRate_;
/**
*
*语速,即一秒钟几个字
*
*
* double SpeechRate = 6;
* @return The speechRate.
*/
@java.lang.Override
public double getSpeechRate() {
return speechRate_;
}
public static final int VOLUME_FIELD_NUMBER = 7;
private double volume_;
/**
*
*音量
*
*
* double Volume = 7;
* @return The volume.
*/
@java.lang.Override
public double getVolume() {
return volume_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
}
for (int i = 0; i < utterances_.size(); i++) {
output.writeMessage(3, utterances_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, language_);
}
for (int i = 0; i < languageDetails_.size(); i++) {
output.writeMessage(5, languageDetails_.get(i));
}
if (java.lang.Double.doubleToRawLongBits(speechRate_) != 0) {
output.writeDouble(6, speechRate_);
}
if (java.lang.Double.doubleToRawLongBits(volume_) != 0) {
output.writeDouble(7, volume_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
}
for (int i = 0; i < utterances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, utterances_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, language_);
}
for (int i = 0; i < languageDetails_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, languageDetails_.get(i));
}
if (java.lang.Double.doubleToRawLongBits(speechRate_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, speechRate_);
}
if (java.lang.Double.doubleToRawLongBits(volume_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, volume_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.volcengine.service.vod.model.business.VodASRInfoForAudit)) {
return super.equals(obj);
}
com.volcengine.service.vod.model.business.VodASRInfoForAudit other = (com.volcengine.service.vod.model.business.VodASRInfoForAudit) obj;
if (!getText()
.equals(other.getText())) return false;
if (!getUtterancesList()
.equals(other.getUtterancesList())) return false;
if (!getLanguage()
.equals(other.getLanguage())) return false;
if (!getLanguageDetailsList()
.equals(other.getLanguageDetailsList())) return false;
if (java.lang.Double.doubleToLongBits(getSpeechRate())
!= java.lang.Double.doubleToLongBits(
other.getSpeechRate())) return false;
if (java.lang.Double.doubleToLongBits(getVolume())
!= java.lang.Double.doubleToLongBits(
other.getVolume())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
if (getUtterancesCount() > 0) {
hash = (37 * hash) + UTTERANCES_FIELD_NUMBER;
hash = (53 * hash) + getUtterancesList().hashCode();
}
hash = (37 * hash) + LANGUAGE_FIELD_NUMBER;
hash = (53 * hash) + getLanguage().hashCode();
if (getLanguageDetailsCount() > 0) {
hash = (37 * hash) + LANGUAGEDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getLanguageDetailsList().hashCode();
}
hash = (37 * hash) + SPEECHRATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSpeechRate()));
hash = (37 * hash) + VOLUME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVolume()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.volcengine.service.vod.model.business.VodASRInfoForAudit prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Volcengine.Vod.Models.Business.VodASRInfoForAudit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.VodASRInfoForAudit)
com.volcengine.service.vod.model.business.VodASRInfoForAuditOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodASRInfoForAudit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodASRInfoForAudit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodASRInfoForAudit.class, com.volcengine.service.vod.model.business.VodASRInfoForAudit.Builder.class);
}
// Construct using com.volcengine.service.vod.model.business.VodASRInfoForAudit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUtterancesFieldBuilder();
getLanguageDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
text_ = "";
if (utterancesBuilder_ == null) {
utterances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
utterancesBuilder_.clear();
}
language_ = "";
if (languageDetailsBuilder_ == null) {
languageDetails_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
languageDetailsBuilder_.clear();
}
speechRate_ = 0D;
volume_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodASRInfoForAudit_descriptor;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRInfoForAudit getDefaultInstanceForType() {
return com.volcengine.service.vod.model.business.VodASRInfoForAudit.getDefaultInstance();
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRInfoForAudit build() {
com.volcengine.service.vod.model.business.VodASRInfoForAudit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRInfoForAudit buildPartial() {
com.volcengine.service.vod.model.business.VodASRInfoForAudit result = new com.volcengine.service.vod.model.business.VodASRInfoForAudit(this);
int from_bitField0_ = bitField0_;
result.text_ = text_;
if (utterancesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
utterances_ = java.util.Collections.unmodifiableList(utterances_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.utterances_ = utterances_;
} else {
result.utterances_ = utterancesBuilder_.build();
}
result.language_ = language_;
if (languageDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
languageDetails_ = java.util.Collections.unmodifiableList(languageDetails_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.languageDetails_ = languageDetails_;
} else {
result.languageDetails_ = languageDetailsBuilder_.build();
}
result.speechRate_ = speechRate_;
result.volume_ = volume_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.volcengine.service.vod.model.business.VodASRInfoForAudit) {
return mergeFrom((com.volcengine.service.vod.model.business.VodASRInfoForAudit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.volcengine.service.vod.model.business.VodASRInfoForAudit other) {
if (other == com.volcengine.service.vod.model.business.VodASRInfoForAudit.getDefaultInstance()) return this;
if (!other.getText().isEmpty()) {
text_ = other.text_;
onChanged();
}
if (utterancesBuilder_ == null) {
if (!other.utterances_.isEmpty()) {
if (utterances_.isEmpty()) {
utterances_ = other.utterances_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUtterancesIsMutable();
utterances_.addAll(other.utterances_);
}
onChanged();
}
} else {
if (!other.utterances_.isEmpty()) {
if (utterancesBuilder_.isEmpty()) {
utterancesBuilder_.dispose();
utterancesBuilder_ = null;
utterances_ = other.utterances_;
bitField0_ = (bitField0_ & ~0x00000001);
utterancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUtterancesFieldBuilder() : null;
} else {
utterancesBuilder_.addAllMessages(other.utterances_);
}
}
}
if (!other.getLanguage().isEmpty()) {
language_ = other.language_;
onChanged();
}
if (languageDetailsBuilder_ == null) {
if (!other.languageDetails_.isEmpty()) {
if (languageDetails_.isEmpty()) {
languageDetails_ = other.languageDetails_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLanguageDetailsIsMutable();
languageDetails_.addAll(other.languageDetails_);
}
onChanged();
}
} else {
if (!other.languageDetails_.isEmpty()) {
if (languageDetailsBuilder_.isEmpty()) {
languageDetailsBuilder_.dispose();
languageDetailsBuilder_ = null;
languageDetails_ = other.languageDetails_;
bitField0_ = (bitField0_ & ~0x00000002);
languageDetailsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLanguageDetailsFieldBuilder() : null;
} else {
languageDetailsBuilder_.addAllMessages(other.languageDetails_);
}
}
}
if (other.getSpeechRate() != 0D) {
setSpeechRate(other.getSpeechRate());
}
if (other.getVolume() != 0D) {
setVolume(other.getVolume());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.volcengine.service.vod.model.business.VodASRInfoForAudit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.volcengine.service.vod.model.business.VodASRInfoForAudit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object text_ = "";
/**
*
* 识别的语音文本
*
*
* string Text = 1;
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 识别的语音文本
*
*
* string Text = 1;
* @return The bytes for text.
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 识别的语音文本
*
*
* string Text = 1;
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
text_ = value;
onChanged();
return this;
}
/**
*
* 识别的语音文本
*
*
* string Text = 1;
* @return This builder for chaining.
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
*
* 识别的语音文本
*
*
* string Text = 1;
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
text_ = value;
onChanged();
return this;
}
private java.util.List utterances_ =
java.util.Collections.emptyList();
private void ensureUtterancesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
utterances_ = new java.util.ArrayList(utterances_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodASRUtteranceForAudit, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder, com.volcengine.service.vod.model.business.VodASRUtteranceForAuditOrBuilder> utterancesBuilder_;
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public java.util.List getUtterancesList() {
if (utterancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(utterances_);
} else {
return utterancesBuilder_.getMessageList();
}
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public int getUtterancesCount() {
if (utterancesBuilder_ == null) {
return utterances_.size();
} else {
return utterancesBuilder_.getCount();
}
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public com.volcengine.service.vod.model.business.VodASRUtteranceForAudit getUtterances(int index) {
if (utterancesBuilder_ == null) {
return utterances_.get(index);
} else {
return utterancesBuilder_.getMessage(index);
}
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder setUtterances(
int index, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit value) {
if (utterancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUtterancesIsMutable();
utterances_.set(index, value);
onChanged();
} else {
utterancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder setUtterances(
int index, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder builderForValue) {
if (utterancesBuilder_ == null) {
ensureUtterancesIsMutable();
utterances_.set(index, builderForValue.build());
onChanged();
} else {
utterancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder addUtterances(com.volcengine.service.vod.model.business.VodASRUtteranceForAudit value) {
if (utterancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUtterancesIsMutable();
utterances_.add(value);
onChanged();
} else {
utterancesBuilder_.addMessage(value);
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder addUtterances(
int index, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit value) {
if (utterancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUtterancesIsMutable();
utterances_.add(index, value);
onChanged();
} else {
utterancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder addUtterances(
com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder builderForValue) {
if (utterancesBuilder_ == null) {
ensureUtterancesIsMutable();
utterances_.add(builderForValue.build());
onChanged();
} else {
utterancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder addUtterances(
int index, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder builderForValue) {
if (utterancesBuilder_ == null) {
ensureUtterancesIsMutable();
utterances_.add(index, builderForValue.build());
onChanged();
} else {
utterancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder addAllUtterances(
java.lang.Iterable extends com.volcengine.service.vod.model.business.VodASRUtteranceForAudit> values) {
if (utterancesBuilder_ == null) {
ensureUtterancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, utterances_);
onChanged();
} else {
utterancesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder clearUtterances() {
if (utterancesBuilder_ == null) {
utterances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
utterancesBuilder_.clear();
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public Builder removeUtterances(int index) {
if (utterancesBuilder_ == null) {
ensureUtterancesIsMutable();
utterances_.remove(index);
onChanged();
} else {
utterancesBuilder_.remove(index);
}
return this;
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder getUtterancesBuilder(
int index) {
return getUtterancesFieldBuilder().getBuilder(index);
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public com.volcengine.service.vod.model.business.VodASRUtteranceForAuditOrBuilder getUtterancesOrBuilder(
int index) {
if (utterancesBuilder_ == null) {
return utterances_.get(index); } else {
return utterancesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public java.util.List extends com.volcengine.service.vod.model.business.VodASRUtteranceForAuditOrBuilder>
getUtterancesOrBuilderList() {
if (utterancesBuilder_ != null) {
return utterancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(utterances_);
}
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder addUtterancesBuilder() {
return getUtterancesFieldBuilder().addBuilder(
com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.getDefaultInstance());
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder addUtterancesBuilder(
int index) {
return getUtterancesFieldBuilder().addBuilder(
index, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.getDefaultInstance());
}
/**
*
* 识别结果语音分句信息
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRUtteranceForAudit Utterances = 3;
*/
public java.util.List
getUtterancesBuilderList() {
return getUtterancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodASRUtteranceForAudit, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder, com.volcengine.service.vod.model.business.VodASRUtteranceForAuditOrBuilder>
getUtterancesFieldBuilder() {
if (utterancesBuilder_ == null) {
utterancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodASRUtteranceForAudit, com.volcengine.service.vod.model.business.VodASRUtteranceForAudit.Builder, com.volcengine.service.vod.model.business.VodASRUtteranceForAuditOrBuilder>(
utterances_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
utterances_ = null;
}
return utterancesBuilder_;
}
private java.lang.Object language_ = "";
/**
*
* 整个音频对应的语言
*
*
* string Language = 4;
* @return The language.
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
language_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 整个音频对应的语言
*
*
* string Language = 4;
* @return The bytes for language.
*/
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 整个音频对应的语言
*
*
* string Language = 4;
* @param value The language to set.
* @return This builder for chaining.
*/
public Builder setLanguage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
language_ = value;
onChanged();
return this;
}
/**
*
* 整个音频对应的语言
*
*
* string Language = 4;
* @return This builder for chaining.
*/
public Builder clearLanguage() {
language_ = getDefaultInstance().getLanguage();
onChanged();
return this;
}
/**
*
* 整个音频对应的语言
*
*
* string Language = 4;
* @param value The bytes for language to set.
* @return This builder for chaining.
*/
public Builder setLanguageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
language_ = value;
onChanged();
return this;
}
private java.util.List languageDetails_ =
java.util.Collections.emptyList();
private void ensureLanguageDetailsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
languageDetails_ = new java.util.ArrayList(languageDetails_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAuditOrBuilder> languageDetailsBuilder_;
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public java.util.List getLanguageDetailsList() {
if (languageDetailsBuilder_ == null) {
return java.util.Collections.unmodifiableList(languageDetails_);
} else {
return languageDetailsBuilder_.getMessageList();
}
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public int getLanguageDetailsCount() {
if (languageDetailsBuilder_ == null) {
return languageDetails_.size();
} else {
return languageDetailsBuilder_.getCount();
}
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit getLanguageDetails(int index) {
if (languageDetailsBuilder_ == null) {
return languageDetails_.get(index);
} else {
return languageDetailsBuilder_.getMessage(index);
}
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder setLanguageDetails(
int index, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit value) {
if (languageDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguageDetailsIsMutable();
languageDetails_.set(index, value);
onChanged();
} else {
languageDetailsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder setLanguageDetails(
int index, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder builderForValue) {
if (languageDetailsBuilder_ == null) {
ensureLanguageDetailsIsMutable();
languageDetails_.set(index, builderForValue.build());
onChanged();
} else {
languageDetailsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder addLanguageDetails(com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit value) {
if (languageDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguageDetailsIsMutable();
languageDetails_.add(value);
onChanged();
} else {
languageDetailsBuilder_.addMessage(value);
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder addLanguageDetails(
int index, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit value) {
if (languageDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguageDetailsIsMutable();
languageDetails_.add(index, value);
onChanged();
} else {
languageDetailsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder addLanguageDetails(
com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder builderForValue) {
if (languageDetailsBuilder_ == null) {
ensureLanguageDetailsIsMutable();
languageDetails_.add(builderForValue.build());
onChanged();
} else {
languageDetailsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder addLanguageDetails(
int index, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder builderForValue) {
if (languageDetailsBuilder_ == null) {
ensureLanguageDetailsIsMutable();
languageDetails_.add(index, builderForValue.build());
onChanged();
} else {
languageDetailsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder addAllLanguageDetails(
java.lang.Iterable extends com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit> values) {
if (languageDetailsBuilder_ == null) {
ensureLanguageDetailsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, languageDetails_);
onChanged();
} else {
languageDetailsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder clearLanguageDetails() {
if (languageDetailsBuilder_ == null) {
languageDetails_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
languageDetailsBuilder_.clear();
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public Builder removeLanguageDetails(int index) {
if (languageDetailsBuilder_ == null) {
ensureLanguageDetailsIsMutable();
languageDetails_.remove(index);
onChanged();
} else {
languageDetailsBuilder_.remove(index);
}
return this;
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder getLanguageDetailsBuilder(
int index) {
return getLanguageDetailsFieldBuilder().getBuilder(index);
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public com.volcengine.service.vod.model.business.VodASRLanguageDetailForAuditOrBuilder getLanguageDetailsOrBuilder(
int index) {
if (languageDetailsBuilder_ == null) {
return languageDetails_.get(index); } else {
return languageDetailsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public java.util.List extends com.volcengine.service.vod.model.business.VodASRLanguageDetailForAuditOrBuilder>
getLanguageDetailsOrBuilderList() {
if (languageDetailsBuilder_ != null) {
return languageDetailsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(languageDetails_);
}
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder addLanguageDetailsBuilder() {
return getLanguageDetailsFieldBuilder().addBuilder(
com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.getDefaultInstance());
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder addLanguageDetailsBuilder(
int index) {
return getLanguageDetailsFieldBuilder().addBuilder(
index, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.getDefaultInstance());
}
/**
*
* 语言的详情,描述每个语言的概率
*
*
* repeated .Volcengine.Vod.Models.Business.VodASRLanguageDetailForAudit LanguageDetails = 5;
*/
public java.util.List
getLanguageDetailsBuilderList() {
return getLanguageDetailsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAuditOrBuilder>
getLanguageDetailsFieldBuilder() {
if (languageDetailsBuilder_ == null) {
languageDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAudit.Builder, com.volcengine.service.vod.model.business.VodASRLanguageDetailForAuditOrBuilder>(
languageDetails_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
languageDetails_ = null;
}
return languageDetailsBuilder_;
}
private double speechRate_ ;
/**
*
*语速,即一秒钟几个字
*
*
* double SpeechRate = 6;
* @return The speechRate.
*/
@java.lang.Override
public double getSpeechRate() {
return speechRate_;
}
/**
*
*语速,即一秒钟几个字
*
*
* double SpeechRate = 6;
* @param value The speechRate to set.
* @return This builder for chaining.
*/
public Builder setSpeechRate(double value) {
speechRate_ = value;
onChanged();
return this;
}
/**
*
*语速,即一秒钟几个字
*
*
* double SpeechRate = 6;
* @return This builder for chaining.
*/
public Builder clearSpeechRate() {
speechRate_ = 0D;
onChanged();
return this;
}
private double volume_ ;
/**
*
*音量
*
*
* double Volume = 7;
* @return The volume.
*/
@java.lang.Override
public double getVolume() {
return volume_;
}
/**
*
*音量
*
*
* double Volume = 7;
* @param value The volume to set.
* @return This builder for chaining.
*/
public Builder setVolume(double value) {
volume_ = value;
onChanged();
return this;
}
/**
*
*音量
*
*
* double Volume = 7;
* @return This builder for chaining.
*/
public Builder clearVolume() {
volume_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Volcengine.Vod.Models.Business.VodASRInfoForAudit)
}
// @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.VodASRInfoForAudit)
private static final com.volcengine.service.vod.model.business.VodASRInfoForAudit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.VodASRInfoForAudit();
}
public static com.volcengine.service.vod.model.business.VodASRInfoForAudit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VodASRInfoForAudit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VodASRInfoForAudit(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodASRInfoForAudit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy