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

yandex.cloud.api.ai.stt.v3.Stt Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/ai/stt/v3/stt.proto

package yandex.cloud.api.ai.stt.v3;

public final class Stt {
  private Stt() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code speechkit.stt.v3.CodeType}
   */
  public enum CodeType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * CODE_TYPE_UNSPECIFIED = 0;
     */
    CODE_TYPE_UNSPECIFIED(0),
    /**
     * 
     *all good
     * 
* * WORKING = 1; */ WORKING(1), /** *
     *for example, if speech is sent not in real time. or unknown context (and we've made fallback).
     * 
* * WARNING = 2; */ WARNING(2), /** *
     *after session was closed.
     * 
* * CLOSED = 3; */ CLOSED(3), UNRECOGNIZED(-1), ; /** * CODE_TYPE_UNSPECIFIED = 0; */ public static final int CODE_TYPE_UNSPECIFIED_VALUE = 0; /** *
     *all good
     * 
* * WORKING = 1; */ public static final int WORKING_VALUE = 1; /** *
     *for example, if speech is sent not in real time. or unknown context (and we've made fallback).
     * 
* * WARNING = 2; */ public static final int WARNING_VALUE = 2; /** *
     *after session was closed.
     * 
* * CLOSED = 3; */ public static final int CLOSED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CodeType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static CodeType forNumber(int value) { switch (value) { case 0: return CODE_TYPE_UNSPECIFIED; case 1: return WORKING; case 2: return WARNING; case 3: return CLOSED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CodeType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CodeType findValueByNumber(int number) { return CodeType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.getDescriptor().getEnumTypes().get(0); } private static final CodeType[] VALUES = values(); public static CodeType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CodeType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.CodeType) } public interface TextNormalizationOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.TextNormalizationOptions) com.google.protobuf.MessageOrBuilder { /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @return The enum numeric value on the wire for textNormalization. */ int getTextNormalizationValue(); /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @return The textNormalization. */ yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization getTextNormalization(); /** *
     * Profanity filter (default: false).
     * 
* * bool profanity_filter = 2; * @return The profanityFilter. */ boolean getProfanityFilter(); /** *
     * Rewrite text in literature style (default: false).
     * 
* * bool literature_text = 3; * @return The literatureText. */ boolean getLiteratureText(); /** *
     * Define phone formatting mode
     * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @return The enum numeric value on the wire for phoneFormattingMode. */ int getPhoneFormattingModeValue(); /** *
     * Define phone formatting mode
     * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @return The phoneFormattingMode. */ yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode getPhoneFormattingMode(); } /** *
   * Options
   * 
* * Protobuf type {@code speechkit.stt.v3.TextNormalizationOptions} */ public static final class TextNormalizationOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.TextNormalizationOptions) TextNormalizationOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use TextNormalizationOptions.newBuilder() to construct. private TextNormalizationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TextNormalizationOptions() { textNormalization_ = 0; phoneFormattingMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TextNormalizationOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TextNormalizationOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { int rawValue = input.readEnum(); textNormalization_ = rawValue; break; } case 16: { profanityFilter_ = input.readBool(); break; } case 24: { literatureText_ = input.readBool(); break; } case 32: { int rawValue = input.readEnum(); phoneFormattingMode_ = rawValue; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_TextNormalizationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_TextNormalizationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.class, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder.class); } /** *
     * Normalization 
     * 
* * Protobuf enum {@code speechkit.stt.v3.TextNormalizationOptions.TextNormalization} */ public enum TextNormalization implements com.google.protobuf.ProtocolMessageEnum { /** * TEXT_NORMALIZATION_UNSPECIFIED = 0; */ TEXT_NORMALIZATION_UNSPECIFIED(0), /** *
       * Enable normalization
       * 
* * TEXT_NORMALIZATION_ENABLED = 1; */ TEXT_NORMALIZATION_ENABLED(1), /** *
       * Disable normalization
       * 
* * TEXT_NORMALIZATION_DISABLED = 2; */ TEXT_NORMALIZATION_DISABLED(2), UNRECOGNIZED(-1), ; /** * TEXT_NORMALIZATION_UNSPECIFIED = 0; */ public static final int TEXT_NORMALIZATION_UNSPECIFIED_VALUE = 0; /** *
       * Enable normalization
       * 
* * TEXT_NORMALIZATION_ENABLED = 1; */ public static final int TEXT_NORMALIZATION_ENABLED_VALUE = 1; /** *
       * Disable normalization
       * 
* * TEXT_NORMALIZATION_DISABLED = 2; */ public static final int TEXT_NORMALIZATION_DISABLED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TextNormalization valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static TextNormalization forNumber(int value) { switch (value) { case 0: return TEXT_NORMALIZATION_UNSPECIFIED; case 1: return TEXT_NORMALIZATION_ENABLED; case 2: return TEXT_NORMALIZATION_DISABLED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TextNormalization> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TextNormalization findValueByNumber(int number) { return TextNormalization.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.getDescriptor().getEnumTypes().get(0); } private static final TextNormalization[] VALUES = values(); public static TextNormalization valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private TextNormalization(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.TextNormalizationOptions.TextNormalization) } /** * Protobuf enum {@code speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode} */ public enum PhoneFormattingMode implements com.google.protobuf.ProtocolMessageEnum { /** * PHONE_FORMATTING_MODE_UNSPECIFIED = 0; */ PHONE_FORMATTING_MODE_UNSPECIFIED(0), /** *
       * Disable phone formatting
       * 
* * PHONE_FORMATTING_MODE_DISABLED = 1; */ PHONE_FORMATTING_MODE_DISABLED(1), UNRECOGNIZED(-1), ; /** * PHONE_FORMATTING_MODE_UNSPECIFIED = 0; */ public static final int PHONE_FORMATTING_MODE_UNSPECIFIED_VALUE = 0; /** *
       * Disable phone formatting
       * 
* * PHONE_FORMATTING_MODE_DISABLED = 1; */ public static final int PHONE_FORMATTING_MODE_DISABLED_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PhoneFormattingMode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static PhoneFormattingMode forNumber(int value) { switch (value) { case 0: return PHONE_FORMATTING_MODE_UNSPECIFIED; case 1: return PHONE_FORMATTING_MODE_DISABLED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PhoneFormattingMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PhoneFormattingMode findValueByNumber(int number) { return PhoneFormattingMode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.getDescriptor().getEnumTypes().get(1); } private static final PhoneFormattingMode[] VALUES = values(); public static PhoneFormattingMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PhoneFormattingMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode) } public static final int TEXT_NORMALIZATION_FIELD_NUMBER = 1; private int textNormalization_; /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @return The enum numeric value on the wire for textNormalization. */ @java.lang.Override public int getTextNormalizationValue() { return textNormalization_; } /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @return The textNormalization. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization getTextNormalization() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization result = yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization.valueOf(textNormalization_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization.UNRECOGNIZED : result; } public static final int PROFANITY_FILTER_FIELD_NUMBER = 2; private boolean profanityFilter_; /** *
     * Profanity filter (default: false).
     * 
* * bool profanity_filter = 2; * @return The profanityFilter. */ @java.lang.Override public boolean getProfanityFilter() { return profanityFilter_; } public static final int LITERATURE_TEXT_FIELD_NUMBER = 3; private boolean literatureText_; /** *
     * Rewrite text in literature style (default: false).
     * 
* * bool literature_text = 3; * @return The literatureText. */ @java.lang.Override public boolean getLiteratureText() { return literatureText_; } public static final int PHONE_FORMATTING_MODE_FIELD_NUMBER = 4; private int phoneFormattingMode_; /** *
     * Define phone formatting mode
     * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @return The enum numeric value on the wire for phoneFormattingMode. */ @java.lang.Override public int getPhoneFormattingModeValue() { return phoneFormattingMode_; } /** *
     * Define phone formatting mode
     * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @return The phoneFormattingMode. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode getPhoneFormattingMode() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode result = yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode.valueOf(phoneFormattingMode_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode.UNRECOGNIZED : result; } 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 (textNormalization_ != yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization.TEXT_NORMALIZATION_UNSPECIFIED.getNumber()) { output.writeEnum(1, textNormalization_); } if (profanityFilter_ != false) { output.writeBool(2, profanityFilter_); } if (literatureText_ != false) { output.writeBool(3, literatureText_); } if (phoneFormattingMode_ != yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode.PHONE_FORMATTING_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(4, phoneFormattingMode_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (textNormalization_ != yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization.TEXT_NORMALIZATION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, textNormalization_); } if (profanityFilter_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, profanityFilter_); } if (literatureText_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, literatureText_); } if (phoneFormattingMode_ != yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode.PHONE_FORMATTING_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, phoneFormattingMode_); } 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 yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions other = (yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions) obj; if (textNormalization_ != other.textNormalization_) return false; if (getProfanityFilter() != other.getProfanityFilter()) return false; if (getLiteratureText() != other.getLiteratureText()) return false; if (phoneFormattingMode_ != other.phoneFormattingMode_) 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_NORMALIZATION_FIELD_NUMBER; hash = (53 * hash) + textNormalization_; hash = (37 * hash) + PROFANITY_FILTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getProfanityFilter()); hash = (37 * hash) + LITERATURE_TEXT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLiteratureText()); hash = (37 * hash) + PHONE_FORMATTING_MODE_FIELD_NUMBER; hash = (53 * hash) + phoneFormattingMode_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions 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 yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions 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 yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions 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(yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions 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; } /** *
     * Options
     * 
* * Protobuf type {@code speechkit.stt.v3.TextNormalizationOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.TextNormalizationOptions) yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_TextNormalizationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_TextNormalizationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.class, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); textNormalization_ = 0; profanityFilter_ = false; literatureText_ = false; phoneFormattingMode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_TextNormalizationOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions build() { yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions result = new yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions(this); result.textNormalization_ = textNormalization_; result.profanityFilter_ = profanityFilter_; result.literatureText_ = literatureText_; result.phoneFormattingMode_ = phoneFormattingMode_; 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 yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.getDefaultInstance()) return this; if (other.textNormalization_ != 0) { setTextNormalizationValue(other.getTextNormalizationValue()); } if (other.getProfanityFilter() != false) { setProfanityFilter(other.getProfanityFilter()); } if (other.getLiteratureText() != false) { setLiteratureText(other.getLiteratureText()); } if (other.phoneFormattingMode_ != 0) { setPhoneFormattingModeValue(other.getPhoneFormattingModeValue()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int textNormalization_ = 0; /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @return The enum numeric value on the wire for textNormalization. */ @java.lang.Override public int getTextNormalizationValue() { return textNormalization_; } /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @param value The enum numeric value on the wire for textNormalization to set. * @return This builder for chaining. */ public Builder setTextNormalizationValue(int value) { textNormalization_ = value; onChanged(); return this; } /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @return The textNormalization. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization getTextNormalization() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization result = yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization.valueOf(textNormalization_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization.UNRECOGNIZED : result; } /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @param value The textNormalization to set. * @return This builder for chaining. */ public Builder setTextNormalization(yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.TextNormalization value) { if (value == null) { throw new NullPointerException(); } textNormalization_ = value.getNumber(); onChanged(); return this; } /** * .speechkit.stt.v3.TextNormalizationOptions.TextNormalization text_normalization = 1; * @return This builder for chaining. */ public Builder clearTextNormalization() { textNormalization_ = 0; onChanged(); return this; } private boolean profanityFilter_ ; /** *
       * Profanity filter (default: false).
       * 
* * bool profanity_filter = 2; * @return The profanityFilter. */ @java.lang.Override public boolean getProfanityFilter() { return profanityFilter_; } /** *
       * Profanity filter (default: false).
       * 
* * bool profanity_filter = 2; * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { profanityFilter_ = value; onChanged(); return this; } /** *
       * Profanity filter (default: false).
       * 
* * bool profanity_filter = 2; * @return This builder for chaining. */ public Builder clearProfanityFilter() { profanityFilter_ = false; onChanged(); return this; } private boolean literatureText_ ; /** *
       * Rewrite text in literature style (default: false).
       * 
* * bool literature_text = 3; * @return The literatureText. */ @java.lang.Override public boolean getLiteratureText() { return literatureText_; } /** *
       * Rewrite text in literature style (default: false).
       * 
* * bool literature_text = 3; * @param value The literatureText to set. * @return This builder for chaining. */ public Builder setLiteratureText(boolean value) { literatureText_ = value; onChanged(); return this; } /** *
       * Rewrite text in literature style (default: false).
       * 
* * bool literature_text = 3; * @return This builder for chaining. */ public Builder clearLiteratureText() { literatureText_ = false; onChanged(); return this; } private int phoneFormattingMode_ = 0; /** *
       * Define phone formatting mode
       * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @return The enum numeric value on the wire for phoneFormattingMode. */ @java.lang.Override public int getPhoneFormattingModeValue() { return phoneFormattingMode_; } /** *
       * Define phone formatting mode
       * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @param value The enum numeric value on the wire for phoneFormattingMode to set. * @return This builder for chaining. */ public Builder setPhoneFormattingModeValue(int value) { phoneFormattingMode_ = value; onChanged(); return this; } /** *
       * Define phone formatting mode
       * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @return The phoneFormattingMode. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode getPhoneFormattingMode() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode result = yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode.valueOf(phoneFormattingMode_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode.UNRECOGNIZED : result; } /** *
       * Define phone formatting mode
       * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @param value The phoneFormattingMode to set. * @return This builder for chaining. */ public Builder setPhoneFormattingMode(yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.PhoneFormattingMode value) { if (value == null) { throw new NullPointerException(); } phoneFormattingMode_ = value.getNumber(); onChanged(); return this; } /** *
       * Define phone formatting mode
       * 
* * .speechkit.stt.v3.TextNormalizationOptions.PhoneFormattingMode phone_formatting_mode = 4; * @return This builder for chaining. */ public Builder clearPhoneFormattingMode() { phoneFormattingMode_ = 0; 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:speechkit.stt.v3.TextNormalizationOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.TextNormalizationOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TextNormalizationOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TextNormalizationOptions(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 yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefaultEouClassifierOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.DefaultEouClassifier) com.google.protobuf.MessageOrBuilder { /** *
     * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
     * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
     * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @return The type. */ yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity getType(); /** *
     * Hint for max pause between words. Our EOU detector could use this information to distinguish between end of utterance and slow speech (like one <long pause> two <long pause> three, etc).
     * 
* * int64 max_pause_between_words_hint_ms = 2; * @return The maxPauseBetweenWordsHintMs. */ long getMaxPauseBetweenWordsHintMs(); } /** * Protobuf type {@code speechkit.stt.v3.DefaultEouClassifier} */ public static final class DefaultEouClassifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.DefaultEouClassifier) DefaultEouClassifierOrBuilder { private static final long serialVersionUID = 0L; // Use DefaultEouClassifier.newBuilder() to construct. private DefaultEouClassifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefaultEouClassifier() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefaultEouClassifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefaultEouClassifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { maxPauseBetweenWordsHintMs_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DefaultEouClassifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DefaultEouClassifier_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.class, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.DefaultEouClassifier.EouSensitivity} */ public enum EouSensitivity implements com.google.protobuf.ProtocolMessageEnum { /** * EOU_SENSITIVITY_UNSPECIFIED = 0; */ EOU_SENSITIVITY_UNSPECIFIED(0), /** * DEFAULT = 1; */ DEFAULT(1), /** * HIGH = 2; */ HIGH(2), UNRECOGNIZED(-1), ; /** * EOU_SENSITIVITY_UNSPECIFIED = 0; */ public static final int EOU_SENSITIVITY_UNSPECIFIED_VALUE = 0; /** * DEFAULT = 1; */ public static final int DEFAULT_VALUE = 1; /** * HIGH = 2; */ public static final int HIGH_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EouSensitivity valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static EouSensitivity forNumber(int value) { switch (value) { case 0: return EOU_SENSITIVITY_UNSPECIFIED; case 1: return DEFAULT; case 2: return HIGH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< EouSensitivity> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EouSensitivity findValueByNumber(int number) { return EouSensitivity.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDescriptor().getEnumTypes().get(0); } private static final EouSensitivity[] VALUES = values(); public static EouSensitivity valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private EouSensitivity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.DefaultEouClassifier.EouSensitivity) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
     * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
     * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity getType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity result = yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity.valueOf(type_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity.UNRECOGNIZED : result; } public static final int MAX_PAUSE_BETWEEN_WORDS_HINT_MS_FIELD_NUMBER = 2; private long maxPauseBetweenWordsHintMs_; /** *
     * Hint for max pause between words. Our EOU detector could use this information to distinguish between end of utterance and slow speech (like one <long pause> two <long pause> three, etc).
     * 
* * int64 max_pause_between_words_hint_ms = 2; * @return The maxPauseBetweenWordsHintMs. */ @java.lang.Override public long getMaxPauseBetweenWordsHintMs() { return maxPauseBetweenWordsHintMs_; } 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 (type_ != yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity.EOU_SENSITIVITY_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (maxPauseBetweenWordsHintMs_ != 0L) { output.writeInt64(2, maxPauseBetweenWordsHintMs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity.EOU_SENSITIVITY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (maxPauseBetweenWordsHintMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, maxPauseBetweenWordsHintMs_); } 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 yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier other = (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) obj; if (type_ != other.type_) return false; if (getMaxPauseBetweenWordsHintMs() != other.getMaxPauseBetweenWordsHintMs()) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + MAX_PAUSE_BETWEEN_WORDS_HINT_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxPauseBetweenWordsHintMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier 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 yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier 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 yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier 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(yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier 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 speechkit.stt.v3.DefaultEouClassifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.DefaultEouClassifier) yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DefaultEouClassifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DefaultEouClassifier_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.class, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; maxPauseBetweenWordsHintMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DefaultEouClassifier_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier build() { yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier result = new yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier(this); result.type_ = type_; result.maxPauseBetweenWordsHintMs_ = maxPauseBetweenWordsHintMs_; 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 yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getMaxPauseBetweenWordsHintMs() != 0L) { setMaxPauseBetweenWordsHintMs(other.getMaxPauseBetweenWordsHintMs()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** *
       * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
       * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
       * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
       * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity getType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity result = yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity.valueOf(type_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity.UNRECOGNIZED : result; } /** *
       * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
       * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.EouSensitivity value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * EOU sensitivity. Currently two levels, faster with more error and more conservative (our default).
       * 
* * .speechkit.stt.v3.DefaultEouClassifier.EouSensitivity type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long maxPauseBetweenWordsHintMs_ ; /** *
       * Hint for max pause between words. Our EOU detector could use this information to distinguish between end of utterance and slow speech (like one <long pause> two <long pause> three, etc).
       * 
* * int64 max_pause_between_words_hint_ms = 2; * @return The maxPauseBetweenWordsHintMs. */ @java.lang.Override public long getMaxPauseBetweenWordsHintMs() { return maxPauseBetweenWordsHintMs_; } /** *
       * Hint for max pause between words. Our EOU detector could use this information to distinguish between end of utterance and slow speech (like one <long pause> two <long pause> three, etc).
       * 
* * int64 max_pause_between_words_hint_ms = 2; * @param value The maxPauseBetweenWordsHintMs to set. * @return This builder for chaining. */ public Builder setMaxPauseBetweenWordsHintMs(long value) { maxPauseBetweenWordsHintMs_ = value; onChanged(); return this; } /** *
       * Hint for max pause between words. Our EOU detector could use this information to distinguish between end of utterance and slow speech (like one <long pause> two <long pause> three, etc).
       * 
* * int64 max_pause_between_words_hint_ms = 2; * @return This builder for chaining. */ public Builder clearMaxPauseBetweenWordsHintMs() { maxPauseBetweenWordsHintMs_ = 0L; 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:speechkit.stt.v3.DefaultEouClassifier) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.DefaultEouClassifier) private static final yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier(); } public static yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefaultEouClassifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefaultEouClassifier(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 yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExternalEouClassifierOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.ExternalEouClassifier) com.google.protobuf.MessageOrBuilder { } /** *
   * Use EOU provided by user
   * 
* * Protobuf type {@code speechkit.stt.v3.ExternalEouClassifier} */ public static final class ExternalEouClassifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.ExternalEouClassifier) ExternalEouClassifierOrBuilder { private static final long serialVersionUID = 0L; // Use ExternalEouClassifier.newBuilder() to construct. private ExternalEouClassifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExternalEouClassifier() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExternalEouClassifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExternalEouClassifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ExternalEouClassifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ExternalEouClassifier_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.class, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier other = (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier 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 yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier 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 yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier 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(yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier 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; } /** *
     * Use EOU provided by user
     * 
* * Protobuf type {@code speechkit.stt.v3.ExternalEouClassifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.ExternalEouClassifier) yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ExternalEouClassifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ExternalEouClassifier_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.class, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ExternalEouClassifier_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier build() { yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier result = new yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier(this); 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 yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance()) return this; 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 { yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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:speechkit.stt.v3.ExternalEouClassifier) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.ExternalEouClassifier) private static final yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier(); } public static yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExternalEouClassifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExternalEouClassifier(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 yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EouClassifierOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.EouClassifierOptions) com.google.protobuf.MessageOrBuilder { /** *
     * EOU classifier provided by SpeechKit. Default.
     * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; * @return Whether the defaultClassifier field is set. */ boolean hasDefaultClassifier(); /** *
     * EOU classifier provided by SpeechKit. Default.
     * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; * @return The defaultClassifier. */ yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier getDefaultClassifier(); /** *
     * EOU classifier provided by SpeechKit. Default.
     * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifierOrBuilder getDefaultClassifierOrBuilder(); /** *
     * EOU is enforced by external messages from user.
     * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; * @return Whether the externalClassifier field is set. */ boolean hasExternalClassifier(); /** *
     * EOU is enforced by external messages from user.
     * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; * @return The externalClassifier. */ yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier getExternalClassifier(); /** *
     * EOU is enforced by external messages from user.
     * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifierOrBuilder getExternalClassifierOrBuilder(); public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.ClassifierCase getClassifierCase(); } /** * Protobuf type {@code speechkit.stt.v3.EouClassifierOptions} */ public static final class EouClassifierOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.EouClassifierOptions) EouClassifierOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use EouClassifierOptions.newBuilder() to construct. private EouClassifierOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EouClassifierOptions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EouClassifierOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EouClassifierOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder subBuilder = null; if (classifierCase_ == 1) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_).toBuilder(); } classifier_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_); classifier_ = subBuilder.buildPartial(); } classifierCase_ = 1; break; } case 18: { yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder subBuilder = null; if (classifierCase_ == 2) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_).toBuilder(); } classifier_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_); classifier_ = subBuilder.buildPartial(); } classifierCase_ = 2; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouClassifierOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouClassifierOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.class, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder.class); } private int classifierCase_ = 0; private java.lang.Object classifier_; public enum ClassifierCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DEFAULT_CLASSIFIER(1), EXTERNAL_CLASSIFIER(2), CLASSIFIER_NOT_SET(0); private final int value; private ClassifierCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ClassifierCase valueOf(int value) { return forNumber(value); } public static ClassifierCase forNumber(int value) { switch (value) { case 1: return DEFAULT_CLASSIFIER; case 2: return EXTERNAL_CLASSIFIER; case 0: return CLASSIFIER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ClassifierCase getClassifierCase() { return ClassifierCase.forNumber( classifierCase_); } public static final int DEFAULT_CLASSIFIER_FIELD_NUMBER = 1; /** *
     * EOU classifier provided by SpeechKit. Default.
     * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; * @return Whether the defaultClassifier field is set. */ @java.lang.Override public boolean hasDefaultClassifier() { return classifierCase_ == 1; } /** *
     * EOU classifier provided by SpeechKit. Default.
     * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; * @return The defaultClassifier. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier getDefaultClassifier() { if (classifierCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance(); } /** *
     * EOU classifier provided by SpeechKit. Default.
     * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifierOrBuilder getDefaultClassifierOrBuilder() { if (classifierCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance(); } public static final int EXTERNAL_CLASSIFIER_FIELD_NUMBER = 2; /** *
     * EOU is enforced by external messages from user.
     * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; * @return Whether the externalClassifier field is set. */ @java.lang.Override public boolean hasExternalClassifier() { return classifierCase_ == 2; } /** *
     * EOU is enforced by external messages from user.
     * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; * @return The externalClassifier. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier getExternalClassifier() { if (classifierCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance(); } /** *
     * EOU is enforced by external messages from user.
     * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifierOrBuilder getExternalClassifierOrBuilder() { if (classifierCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance(); } 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 (classifierCase_ == 1) { output.writeMessage(1, (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_); } if (classifierCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (classifierCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_); } if (classifierCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_); } 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 yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions other = (yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions) obj; if (!getClassifierCase().equals(other.getClassifierCase())) return false; switch (classifierCase_) { case 1: if (!getDefaultClassifier() .equals(other.getDefaultClassifier())) return false; break; case 2: if (!getExternalClassifier() .equals(other.getExternalClassifier())) return false; break; case 0: default: } 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(); switch (classifierCase_) { case 1: hash = (37 * hash) + DEFAULT_CLASSIFIER_FIELD_NUMBER; hash = (53 * hash) + getDefaultClassifier().hashCode(); break; case 2: hash = (37 * hash) + EXTERNAL_CLASSIFIER_FIELD_NUMBER; hash = (53 * hash) + getExternalClassifier().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions 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 yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions 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 yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions 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(yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions 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 speechkit.stt.v3.EouClassifierOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.EouClassifierOptions) yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouClassifierOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouClassifierOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.class, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); classifierCase_ = 0; classifier_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouClassifierOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions build() { yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions result = new yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions(this); if (classifierCase_ == 1) { if (defaultClassifierBuilder_ == null) { result.classifier_ = classifier_; } else { result.classifier_ = defaultClassifierBuilder_.build(); } } if (classifierCase_ == 2) { if (externalClassifierBuilder_ == null) { result.classifier_ = classifier_; } else { result.classifier_ = externalClassifierBuilder_.build(); } } result.classifierCase_ = classifierCase_; 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 yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.getDefaultInstance()) return this; switch (other.getClassifierCase()) { case DEFAULT_CLASSIFIER: { mergeDefaultClassifier(other.getDefaultClassifier()); break; } case EXTERNAL_CLASSIFIER: { mergeExternalClassifier(other.getExternalClassifier()); break; } case CLASSIFIER_NOT_SET: { break; } } 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 { yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int classifierCase_ = 0; private java.lang.Object classifier_; public ClassifierCase getClassifierCase() { return ClassifierCase.forNumber( classifierCase_); } public Builder clearClassifier() { classifierCase_ = 0; classifier_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifierOrBuilder> defaultClassifierBuilder_; /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; * @return Whether the defaultClassifier field is set. */ @java.lang.Override public boolean hasDefaultClassifier() { return classifierCase_ == 1; } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; * @return The defaultClassifier. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier getDefaultClassifier() { if (defaultClassifierBuilder_ == null) { if (classifierCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance(); } else { if (classifierCase_ == 1) { return defaultClassifierBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance(); } } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ public Builder setDefaultClassifier(yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier value) { if (defaultClassifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } classifier_ = value; onChanged(); } else { defaultClassifierBuilder_.setMessage(value); } classifierCase_ = 1; return this; } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ public Builder setDefaultClassifier( yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder builderForValue) { if (defaultClassifierBuilder_ == null) { classifier_ = builderForValue.build(); onChanged(); } else { defaultClassifierBuilder_.setMessage(builderForValue.build()); } classifierCase_ = 1; return this; } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ public Builder mergeDefaultClassifier(yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier value) { if (defaultClassifierBuilder_ == null) { if (classifierCase_ == 1 && classifier_ != yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance()) { classifier_ = yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_) .mergeFrom(value).buildPartial(); } else { classifier_ = value; } onChanged(); } else { if (classifierCase_ == 1) { defaultClassifierBuilder_.mergeFrom(value); } defaultClassifierBuilder_.setMessage(value); } classifierCase_ = 1; return this; } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ public Builder clearDefaultClassifier() { if (defaultClassifierBuilder_ == null) { if (classifierCase_ == 1) { classifierCase_ = 0; classifier_ = null; onChanged(); } } else { if (classifierCase_ == 1) { classifierCase_ = 0; classifier_ = null; } defaultClassifierBuilder_.clear(); } return this; } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder getDefaultClassifierBuilder() { return getDefaultClassifierFieldBuilder().getBuilder(); } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifierOrBuilder getDefaultClassifierOrBuilder() { if ((classifierCase_ == 1) && (defaultClassifierBuilder_ != null)) { return defaultClassifierBuilder_.getMessageOrBuilder(); } else { if (classifierCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance(); } } /** *
       * EOU classifier provided by SpeechKit. Default.
       * 
* * .speechkit.stt.v3.DefaultEouClassifier default_classifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifierOrBuilder> getDefaultClassifierFieldBuilder() { if (defaultClassifierBuilder_ == null) { if (!(classifierCase_ == 1)) { classifier_ = yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.getDefaultInstance(); } defaultClassifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifierOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.DefaultEouClassifier) classifier_, getParentForChildren(), isClean()); classifier_ = null; } classifierCase_ = 1; onChanged();; return defaultClassifierBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifierOrBuilder> externalClassifierBuilder_; /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; * @return Whether the externalClassifier field is set. */ @java.lang.Override public boolean hasExternalClassifier() { return classifierCase_ == 2; } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; * @return The externalClassifier. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier getExternalClassifier() { if (externalClassifierBuilder_ == null) { if (classifierCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance(); } else { if (classifierCase_ == 2) { return externalClassifierBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance(); } } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ public Builder setExternalClassifier(yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier value) { if (externalClassifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } classifier_ = value; onChanged(); } else { externalClassifierBuilder_.setMessage(value); } classifierCase_ = 2; return this; } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ public Builder setExternalClassifier( yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder builderForValue) { if (externalClassifierBuilder_ == null) { classifier_ = builderForValue.build(); onChanged(); } else { externalClassifierBuilder_.setMessage(builderForValue.build()); } classifierCase_ = 2; return this; } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ public Builder mergeExternalClassifier(yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier value) { if (externalClassifierBuilder_ == null) { if (classifierCase_ == 2 && classifier_ != yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance()) { classifier_ = yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_) .mergeFrom(value).buildPartial(); } else { classifier_ = value; } onChanged(); } else { if (classifierCase_ == 2) { externalClassifierBuilder_.mergeFrom(value); } externalClassifierBuilder_.setMessage(value); } classifierCase_ = 2; return this; } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ public Builder clearExternalClassifier() { if (externalClassifierBuilder_ == null) { if (classifierCase_ == 2) { classifierCase_ = 0; classifier_ = null; onChanged(); } } else { if (classifierCase_ == 2) { classifierCase_ = 0; classifier_ = null; } externalClassifierBuilder_.clear(); } return this; } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder getExternalClassifierBuilder() { return getExternalClassifierFieldBuilder().getBuilder(); } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifierOrBuilder getExternalClassifierOrBuilder() { if ((classifierCase_ == 2) && (externalClassifierBuilder_ != null)) { return externalClassifierBuilder_.getMessageOrBuilder(); } else { if (classifierCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_; } return yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance(); } } /** *
       * EOU is enforced by external messages from user.
       * 
* * .speechkit.stt.v3.ExternalEouClassifier external_classifier = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifierOrBuilder> getExternalClassifierFieldBuilder() { if (externalClassifierBuilder_ == null) { if (!(classifierCase_ == 2)) { classifier_ = yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.getDefaultInstance(); } externalClassifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifierOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.ExternalEouClassifier) classifier_, getParentForChildren(), isClean()); classifier_ = null; } classifierCase_ = 2; onChanged();; return externalClassifierBuilder_; } @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:speechkit.stt.v3.EouClassifierOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.EouClassifierOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EouClassifierOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EouClassifierOptions(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 yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecognitionClassifierOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RecognitionClassifier) com.google.protobuf.MessageOrBuilder { /** *
     * Classifier name
     * 
* * string classifier = 1; * @return The classifier. */ java.lang.String getClassifier(); /** *
     * Classifier name
     * 
* * string classifier = 1; * @return The bytes for classifier. */ com.google.protobuf.ByteString getClassifierBytes(); /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return A list containing the triggers. */ java.util.List getTriggersList(); /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return The count of triggers. */ int getTriggersCount(); /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index of the element to return. * @return The triggers at the given index. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType getTriggers(int index); /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return A list containing the enum numeric values on the wire for triggers. */ java.util.List getTriggersValueList(); /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of triggers at the given index. */ int getTriggersValue(int index); } /** * Protobuf type {@code speechkit.stt.v3.RecognitionClassifier} */ public static final class RecognitionClassifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RecognitionClassifier) RecognitionClassifierOrBuilder { private static final long serialVersionUID = 0L; // Use RecognitionClassifier.newBuilder() to construct. private RecognitionClassifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecognitionClassifier() { classifier_ = ""; triggers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecognitionClassifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecognitionClassifier( 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(); classifier_ = s; break; } case 16: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { triggers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } triggers_.add(rawValue); break; } case 18: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { triggers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } triggers_.add(rawValue); } input.popLimit(oldLimit); 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)) { triggers_ = java.util.Collections.unmodifiableList(triggers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifier_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.RecognitionClassifier.TriggerType} */ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Do not use
       * 
* * TRIGGER_TYPE_UNSPECIFIED = 0; */ TRIGGER_TYPE_UNSPECIFIED(0), /** *
       * Apply classifier to utterance responses
       * 
* * ON_UTTERANCE = 1; */ ON_UTTERANCE(1), /** *
       * Apply classifier to final responses
       * 
* * ON_FINAL = 2; */ ON_FINAL(2), UNRECOGNIZED(-1), ; /** *
       * Do not use
       * 
* * TRIGGER_TYPE_UNSPECIFIED = 0; */ public static final int TRIGGER_TYPE_UNSPECIFIED_VALUE = 0; /** *
       * Apply classifier to utterance responses
       * 
* * ON_UTTERANCE = 1; */ public static final int ON_UTTERANCE_VALUE = 1; /** *
       * Apply classifier to final responses
       * 
* * ON_FINAL = 2; */ public static final int ON_FINAL_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TriggerType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static TriggerType forNumber(int value) { switch (value) { case 0: return TRIGGER_TYPE_UNSPECIFIED; case 1: return ON_UTTERANCE; case 2: return ON_FINAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TriggerType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TriggerType findValueByNumber(int number) { return TriggerType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.getDescriptor().getEnumTypes().get(0); } private static final TriggerType[] VALUES = values(); public static TriggerType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private TriggerType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.RecognitionClassifier.TriggerType) } public static final int CLASSIFIER_FIELD_NUMBER = 1; private volatile java.lang.Object classifier_; /** *
     * Classifier name
     * 
* * string classifier = 1; * @return The classifier. */ @java.lang.Override public java.lang.String getClassifier() { java.lang.Object ref = classifier_; 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(); classifier_ = s; return s; } } /** *
     * Classifier name
     * 
* * string classifier = 1; * @return The bytes for classifier. */ @java.lang.Override public com.google.protobuf.ByteString getClassifierBytes() { java.lang.Object ref = classifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRIGGERS_FIELD_NUMBER = 2; private java.util.List triggers_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType> triggers_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType>() { public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType convert(java.lang.Integer from) { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType result = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType.valueOf(from); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType.UNRECOGNIZED : result; } }; /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return A list containing the triggers. */ @java.lang.Override public java.util.List getTriggersList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType>(triggers_, triggers_converter_); } /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return The count of triggers. */ @java.lang.Override public int getTriggersCount() { return triggers_.size(); } /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index of the element to return. * @return The triggers at the given index. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType getTriggers(int index) { return triggers_converter_.convert(triggers_.get(index)); } /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return A list containing the enum numeric values on the wire for triggers. */ @java.lang.Override public java.util.List getTriggersValueList() { return triggers_; } /** *
     * Describes the types of responses to which the classification results will come
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of triggers at the given index. */ @java.lang.Override public int getTriggersValue(int index) { return triggers_.get(index); } private int triggersMemoizedSerializedSize; 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classifier_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, classifier_); } if (getTriggersList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(triggersMemoizedSerializedSize); } for (int i = 0; i < triggers_.size(); i++) { output.writeEnumNoTag(triggers_.get(i)); } 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(classifier_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, classifier_); } { int dataSize = 0; for (int i = 0; i < triggers_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(triggers_.get(i)); } size += dataSize; if (!getTriggersList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }triggersMemoizedSerializedSize = dataSize; } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier other = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier) obj; if (!getClassifier() .equals(other.getClassifier())) return false; if (!triggers_.equals(other.triggers_)) 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) + CLASSIFIER_FIELD_NUMBER; hash = (53 * hash) + getClassifier().hashCode(); if (getTriggersCount() > 0) { hash = (37 * hash) + TRIGGERS_FIELD_NUMBER; hash = (53 * hash) + triggers_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier 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(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier 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 speechkit.stt.v3.RecognitionClassifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RecognitionClassifier) yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifier_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); classifier_ = ""; triggers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifier_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier build() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier result = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier(this); int from_bitField0_ = bitField0_; result.classifier_ = classifier_; if (((bitField0_ & 0x00000001) != 0)) { triggers_ = java.util.Collections.unmodifiableList(triggers_); bitField0_ = (bitField0_ & ~0x00000001); } result.triggers_ = triggers_; 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.getDefaultInstance()) return this; if (!other.getClassifier().isEmpty()) { classifier_ = other.classifier_; onChanged(); } if (!other.triggers_.isEmpty()) { if (triggers_.isEmpty()) { triggers_ = other.triggers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTriggersIsMutable(); triggers_.addAll(other.triggers_); } onChanged(); } 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 { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object classifier_ = ""; /** *
       * Classifier name
       * 
* * string classifier = 1; * @return The classifier. */ public java.lang.String getClassifier() { java.lang.Object ref = classifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); classifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Classifier name
       * 
* * string classifier = 1; * @return The bytes for classifier. */ public com.google.protobuf.ByteString getClassifierBytes() { java.lang.Object ref = classifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Classifier name
       * 
* * string classifier = 1; * @param value The classifier to set. * @return This builder for chaining. */ public Builder setClassifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } classifier_ = value; onChanged(); return this; } /** *
       * Classifier name
       * 
* * string classifier = 1; * @return This builder for chaining. */ public Builder clearClassifier() { classifier_ = getDefaultInstance().getClassifier(); onChanged(); return this; } /** *
       * Classifier name
       * 
* * string classifier = 1; * @param value The bytes for classifier to set. * @return This builder for chaining. */ public Builder setClassifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); classifier_ = value; onChanged(); return this; } private java.util.List triggers_ = java.util.Collections.emptyList(); private void ensureTriggersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { triggers_ = new java.util.ArrayList(triggers_); bitField0_ |= 0x00000001; } } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return A list containing the triggers. */ public java.util.List getTriggersList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType>(triggers_, triggers_converter_); } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return The count of triggers. */ public int getTriggersCount() { return triggers_.size(); } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index of the element to return. * @return The triggers at the given index. */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType getTriggers(int index) { return triggers_converter_.convert(triggers_.get(index)); } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index to set the value at. * @param value The triggers to set. * @return This builder for chaining. */ public Builder setTriggers( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType value) { if (value == null) { throw new NullPointerException(); } ensureTriggersIsMutable(); triggers_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param value The triggers to add. * @return This builder for chaining. */ public Builder addTriggers(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType value) { if (value == null) { throw new NullPointerException(); } ensureTriggersIsMutable(); triggers_.add(value.getNumber()); onChanged(); return this; } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param values The triggers to add. * @return This builder for chaining. */ public Builder addAllTriggers( java.lang.Iterable values) { ensureTriggersIsMutable(); for (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.TriggerType value : values) { triggers_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return This builder for chaining. */ public Builder clearTriggers() { triggers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @return A list containing the enum numeric values on the wire for triggers. */ public java.util.List getTriggersValueList() { return java.util.Collections.unmodifiableList(triggers_); } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of triggers at the given index. */ public int getTriggersValue(int index) { return triggers_.get(index); } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of triggers at the given index. * @return This builder for chaining. */ public Builder setTriggersValue( int index, int value) { ensureTriggersIsMutable(); triggers_.set(index, value); onChanged(); return this; } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param value The enum numeric value on the wire for triggers to add. * @return This builder for chaining. */ public Builder addTriggersValue(int value) { ensureTriggersIsMutable(); triggers_.add(value); onChanged(); return this; } /** *
       * Describes the types of responses to which the classification results will come
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier.TriggerType triggers = 2; * @param values The enum numeric values on the wire for triggers to add. * @return This builder for chaining. */ public Builder addAllTriggersValue( java.lang.Iterable values) { ensureTriggersIsMutable(); for (int value : values) { triggers_.add(value); } 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:speechkit.stt.v3.RecognitionClassifier) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RecognitionClassifier) private static final yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier(); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecognitionClassifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecognitionClassifier(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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecognitionClassifierOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RecognitionClassifierOptions) com.google.protobuf.MessageOrBuilder { /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ java.util.List getClassifiersList(); /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier getClassifiers(int index); /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ int getClassifiersCount(); /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ java.util.List getClassifiersOrBuilderList(); /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOrBuilder getClassifiersOrBuilder( int index); } /** * Protobuf type {@code speechkit.stt.v3.RecognitionClassifierOptions} */ public static final class RecognitionClassifierOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RecognitionClassifierOptions) RecognitionClassifierOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use RecognitionClassifierOptions.newBuilder() to construct. private RecognitionClassifierOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecognitionClassifierOptions() { classifiers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecognitionClassifierOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecognitionClassifierOptions( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { classifiers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } classifiers_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.parser(), extensionRegistry)); 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)) { classifiers_ = java.util.Collections.unmodifiableList(classifiers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder.class); } public static final int CLASSIFIERS_FIELD_NUMBER = 1; private java.util.List classifiers_; /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ @java.lang.Override public java.util.List getClassifiersList() { return classifiers_; } /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ @java.lang.Override public java.util.List getClassifiersOrBuilderList() { return classifiers_; } /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ @java.lang.Override public int getClassifiersCount() { return classifiers_.size(); } /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier getClassifiers(int index) { return classifiers_.get(index); } /** *
     * List of classifiers to use
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOrBuilder getClassifiersOrBuilder( int index) { return classifiers_.get(index); } 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 { for (int i = 0; i < classifiers_.size(); i++) { output.writeMessage(1, classifiers_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < classifiers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, classifiers_.get(i)); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions other = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions) obj; if (!getClassifiersList() .equals(other.getClassifiersList())) 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(); if (getClassifiersCount() > 0) { hash = (37 * hash) + CLASSIFIERS_FIELD_NUMBER; hash = (53 * hash) + getClassifiersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions 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(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions 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 speechkit.stt.v3.RecognitionClassifierOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RecognitionClassifierOptions) yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClassifiersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (classifiersBuilder_ == null) { classifiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { classifiersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions build() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions result = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions(this); int from_bitField0_ = bitField0_; if (classifiersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { classifiers_ = java.util.Collections.unmodifiableList(classifiers_); bitField0_ = (bitField0_ & ~0x00000001); } result.classifiers_ = classifiers_; } else { result.classifiers_ = classifiersBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance()) return this; if (classifiersBuilder_ == null) { if (!other.classifiers_.isEmpty()) { if (classifiers_.isEmpty()) { classifiers_ = other.classifiers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureClassifiersIsMutable(); classifiers_.addAll(other.classifiers_); } onChanged(); } } else { if (!other.classifiers_.isEmpty()) { if (classifiersBuilder_.isEmpty()) { classifiersBuilder_.dispose(); classifiersBuilder_ = null; classifiers_ = other.classifiers_; bitField0_ = (bitField0_ & ~0x00000001); classifiersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClassifiersFieldBuilder() : null; } else { classifiersBuilder_.addAllMessages(other.classifiers_); } } } 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 { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List classifiers_ = java.util.Collections.emptyList(); private void ensureClassifiersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { classifiers_ = new java.util.ArrayList(classifiers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOrBuilder> classifiersBuilder_; /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public java.util.List getClassifiersList() { if (classifiersBuilder_ == null) { return java.util.Collections.unmodifiableList(classifiers_); } else { return classifiersBuilder_.getMessageList(); } } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public int getClassifiersCount() { if (classifiersBuilder_ == null) { return classifiers_.size(); } else { return classifiersBuilder_.getCount(); } } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier getClassifiers(int index) { if (classifiersBuilder_ == null) { return classifiers_.get(index); } else { return classifiersBuilder_.getMessage(index); } } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder setClassifiers( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier value) { if (classifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClassifiersIsMutable(); classifiers_.set(index, value); onChanged(); } else { classifiersBuilder_.setMessage(index, value); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder setClassifiers( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder builderForValue) { if (classifiersBuilder_ == null) { ensureClassifiersIsMutable(); classifiers_.set(index, builderForValue.build()); onChanged(); } else { classifiersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder addClassifiers(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier value) { if (classifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClassifiersIsMutable(); classifiers_.add(value); onChanged(); } else { classifiersBuilder_.addMessage(value); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder addClassifiers( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier value) { if (classifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClassifiersIsMutable(); classifiers_.add(index, value); onChanged(); } else { classifiersBuilder_.addMessage(index, value); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder addClassifiers( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder builderForValue) { if (classifiersBuilder_ == null) { ensureClassifiersIsMutable(); classifiers_.add(builderForValue.build()); onChanged(); } else { classifiersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder addClassifiers( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder builderForValue) { if (classifiersBuilder_ == null) { ensureClassifiersIsMutable(); classifiers_.add(index, builderForValue.build()); onChanged(); } else { classifiersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder addAllClassifiers( java.lang.Iterable values) { if (classifiersBuilder_ == null) { ensureClassifiersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, classifiers_); onChanged(); } else { classifiersBuilder_.addAllMessages(values); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder clearClassifiers() { if (classifiersBuilder_ == null) { classifiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { classifiersBuilder_.clear(); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public Builder removeClassifiers(int index) { if (classifiersBuilder_ == null) { ensureClassifiersIsMutable(); classifiers_.remove(index); onChanged(); } else { classifiersBuilder_.remove(index); } return this; } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder getClassifiersBuilder( int index) { return getClassifiersFieldBuilder().getBuilder(index); } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOrBuilder getClassifiersOrBuilder( int index) { if (classifiersBuilder_ == null) { return classifiers_.get(index); } else { return classifiersBuilder_.getMessageOrBuilder(index); } } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public java.util.List getClassifiersOrBuilderList() { if (classifiersBuilder_ != null) { return classifiersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(classifiers_); } } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder addClassifiersBuilder() { return getClassifiersFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.getDefaultInstance()); } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder addClassifiersBuilder( int index) { return getClassifiersFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.getDefaultInstance()); } /** *
       * List of classifiers to use
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifier classifiers = 1; */ public java.util.List getClassifiersBuilderList() { return getClassifiersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOrBuilder> getClassifiersFieldBuilder() { if (classifiersBuilder_ == null) { classifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifier.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOrBuilder>( classifiers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); classifiers_ = null; } return classifiersBuilder_; } @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:speechkit.stt.v3.RecognitionClassifierOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RecognitionClassifierOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecognitionClassifierOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecognitionClassifierOptions(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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SpeechAnalysisOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.SpeechAnalysisOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Analyse speech for every speaker
     * 
* * bool enable_speaker_analysis = 1; * @return The enableSpeakerAnalysis. */ boolean getEnableSpeakerAnalysis(); /** *
     * Analyse conversation of two speakers
     * 
* * bool enable_conversation_analysis = 2; * @return The enableConversationAnalysis. */ boolean getEnableConversationAnalysis(); /** *
     * Quantile levels in range (0, 1) for descriptive statistics
     * 
* * repeated double descriptive_statistics_quantiles = 3; * @return A list containing the descriptiveStatisticsQuantiles. */ java.util.List getDescriptiveStatisticsQuantilesList(); /** *
     * Quantile levels in range (0, 1) for descriptive statistics
     * 
* * repeated double descriptive_statistics_quantiles = 3; * @return The count of descriptiveStatisticsQuantiles. */ int getDescriptiveStatisticsQuantilesCount(); /** *
     * Quantile levels in range (0, 1) for descriptive statistics
     * 
* * repeated double descriptive_statistics_quantiles = 3; * @param index The index of the element to return. * @return The descriptiveStatisticsQuantiles at the given index. */ double getDescriptiveStatisticsQuantiles(int index); } /** * Protobuf type {@code speechkit.stt.v3.SpeechAnalysisOptions} */ public static final class SpeechAnalysisOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.SpeechAnalysisOptions) SpeechAnalysisOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use SpeechAnalysisOptions.newBuilder() to construct. private SpeechAnalysisOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpeechAnalysisOptions() { descriptiveStatisticsQuantiles_ = emptyDoubleList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpeechAnalysisOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SpeechAnalysisOptions( 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 8: { enableSpeakerAnalysis_ = input.readBool(); break; } case 16: { enableConversationAnalysis_ = input.readBool(); break; } case 25: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { descriptiveStatisticsQuantiles_ = newDoubleList(); mutable_bitField0_ |= 0x00000001; } descriptiveStatisticsQuantiles_.addDouble(input.readDouble()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { descriptiveStatisticsQuantiles_ = newDoubleList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { descriptiveStatisticsQuantiles_.addDouble(input.readDouble()); } input.popLimit(limit); 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)) { descriptiveStatisticsQuantiles_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeechAnalysisOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeechAnalysisOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.class, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder.class); } public static final int ENABLE_SPEAKER_ANALYSIS_FIELD_NUMBER = 1; private boolean enableSpeakerAnalysis_; /** *
     * Analyse speech for every speaker
     * 
* * bool enable_speaker_analysis = 1; * @return The enableSpeakerAnalysis. */ @java.lang.Override public boolean getEnableSpeakerAnalysis() { return enableSpeakerAnalysis_; } public static final int ENABLE_CONVERSATION_ANALYSIS_FIELD_NUMBER = 2; private boolean enableConversationAnalysis_; /** *
     * Analyse conversation of two speakers
     * 
* * bool enable_conversation_analysis = 2; * @return The enableConversationAnalysis. */ @java.lang.Override public boolean getEnableConversationAnalysis() { return enableConversationAnalysis_; } public static final int DESCRIPTIVE_STATISTICS_QUANTILES_FIELD_NUMBER = 3; private com.google.protobuf.Internal.DoubleList descriptiveStatisticsQuantiles_; /** *
     * Quantile levels in range (0, 1) for descriptive statistics
     * 
* * repeated double descriptive_statistics_quantiles = 3; * @return A list containing the descriptiveStatisticsQuantiles. */ @java.lang.Override public java.util.List getDescriptiveStatisticsQuantilesList() { return descriptiveStatisticsQuantiles_; } /** *
     * Quantile levels in range (0, 1) for descriptive statistics
     * 
* * repeated double descriptive_statistics_quantiles = 3; * @return The count of descriptiveStatisticsQuantiles. */ public int getDescriptiveStatisticsQuantilesCount() { return descriptiveStatisticsQuantiles_.size(); } /** *
     * Quantile levels in range (0, 1) for descriptive statistics
     * 
* * repeated double descriptive_statistics_quantiles = 3; * @param index The index of the element to return. * @return The descriptiveStatisticsQuantiles at the given index. */ public double getDescriptiveStatisticsQuantiles(int index) { return descriptiveStatisticsQuantiles_.getDouble(index); } private int descriptiveStatisticsQuantilesMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (enableSpeakerAnalysis_ != false) { output.writeBool(1, enableSpeakerAnalysis_); } if (enableConversationAnalysis_ != false) { output.writeBool(2, enableConversationAnalysis_); } if (getDescriptiveStatisticsQuantilesList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(descriptiveStatisticsQuantilesMemoizedSerializedSize); } for (int i = 0; i < descriptiveStatisticsQuantiles_.size(); i++) { output.writeDoubleNoTag(descriptiveStatisticsQuantiles_.getDouble(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enableSpeakerAnalysis_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enableSpeakerAnalysis_); } if (enableConversationAnalysis_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, enableConversationAnalysis_); } { int dataSize = 0; dataSize = 8 * getDescriptiveStatisticsQuantilesList().size(); size += dataSize; if (!getDescriptiveStatisticsQuantilesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } descriptiveStatisticsQuantilesMemoizedSerializedSize = dataSize; } 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 yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions other = (yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions) obj; if (getEnableSpeakerAnalysis() != other.getEnableSpeakerAnalysis()) return false; if (getEnableConversationAnalysis() != other.getEnableConversationAnalysis()) return false; if (!getDescriptiveStatisticsQuantilesList() .equals(other.getDescriptiveStatisticsQuantilesList())) 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) + ENABLE_SPEAKER_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableSpeakerAnalysis()); hash = (37 * hash) + ENABLE_CONVERSATION_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableConversationAnalysis()); if (getDescriptiveStatisticsQuantilesCount() > 0) { hash = (37 * hash) + DESCRIPTIVE_STATISTICS_QUANTILES_FIELD_NUMBER; hash = (53 * hash) + getDescriptiveStatisticsQuantilesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions 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 yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions 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 yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions 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(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions 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 speechkit.stt.v3.SpeechAnalysisOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.SpeechAnalysisOptions) yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeechAnalysisOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeechAnalysisOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.class, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); enableSpeakerAnalysis_ = false; enableConversationAnalysis_ = false; descriptiveStatisticsQuantiles_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeechAnalysisOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions build() { yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions result = new yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions(this); int from_bitField0_ = bitField0_; result.enableSpeakerAnalysis_ = enableSpeakerAnalysis_; result.enableConversationAnalysis_ = enableConversationAnalysis_; if (((bitField0_ & 0x00000001) != 0)) { descriptiveStatisticsQuantiles_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.descriptiveStatisticsQuantiles_ = descriptiveStatisticsQuantiles_; 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 yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance()) return this; if (other.getEnableSpeakerAnalysis() != false) { setEnableSpeakerAnalysis(other.getEnableSpeakerAnalysis()); } if (other.getEnableConversationAnalysis() != false) { setEnableConversationAnalysis(other.getEnableConversationAnalysis()); } if (!other.descriptiveStatisticsQuantiles_.isEmpty()) { if (descriptiveStatisticsQuantiles_.isEmpty()) { descriptiveStatisticsQuantiles_ = other.descriptiveStatisticsQuantiles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDescriptiveStatisticsQuantilesIsMutable(); descriptiveStatisticsQuantiles_.addAll(other.descriptiveStatisticsQuantiles_); } onChanged(); } 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 { yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean enableSpeakerAnalysis_ ; /** *
       * Analyse speech for every speaker
       * 
* * bool enable_speaker_analysis = 1; * @return The enableSpeakerAnalysis. */ @java.lang.Override public boolean getEnableSpeakerAnalysis() { return enableSpeakerAnalysis_; } /** *
       * Analyse speech for every speaker
       * 
* * bool enable_speaker_analysis = 1; * @param value The enableSpeakerAnalysis to set. * @return This builder for chaining. */ public Builder setEnableSpeakerAnalysis(boolean value) { enableSpeakerAnalysis_ = value; onChanged(); return this; } /** *
       * Analyse speech for every speaker
       * 
* * bool enable_speaker_analysis = 1; * @return This builder for chaining. */ public Builder clearEnableSpeakerAnalysis() { enableSpeakerAnalysis_ = false; onChanged(); return this; } private boolean enableConversationAnalysis_ ; /** *
       * Analyse conversation of two speakers
       * 
* * bool enable_conversation_analysis = 2; * @return The enableConversationAnalysis. */ @java.lang.Override public boolean getEnableConversationAnalysis() { return enableConversationAnalysis_; } /** *
       * Analyse conversation of two speakers
       * 
* * bool enable_conversation_analysis = 2; * @param value The enableConversationAnalysis to set. * @return This builder for chaining. */ public Builder setEnableConversationAnalysis(boolean value) { enableConversationAnalysis_ = value; onChanged(); return this; } /** *
       * Analyse conversation of two speakers
       * 
* * bool enable_conversation_analysis = 2; * @return This builder for chaining. */ public Builder clearEnableConversationAnalysis() { enableConversationAnalysis_ = false; onChanged(); return this; } private com.google.protobuf.Internal.DoubleList descriptiveStatisticsQuantiles_ = emptyDoubleList(); private void ensureDescriptiveStatisticsQuantilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { descriptiveStatisticsQuantiles_ = mutableCopy(descriptiveStatisticsQuantiles_); bitField0_ |= 0x00000001; } } /** *
       * Quantile levels in range (0, 1) for descriptive statistics
       * 
* * repeated double descriptive_statistics_quantiles = 3; * @return A list containing the descriptiveStatisticsQuantiles. */ public java.util.List getDescriptiveStatisticsQuantilesList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(descriptiveStatisticsQuantiles_) : descriptiveStatisticsQuantiles_; } /** *
       * Quantile levels in range (0, 1) for descriptive statistics
       * 
* * repeated double descriptive_statistics_quantiles = 3; * @return The count of descriptiveStatisticsQuantiles. */ public int getDescriptiveStatisticsQuantilesCount() { return descriptiveStatisticsQuantiles_.size(); } /** *
       * Quantile levels in range (0, 1) for descriptive statistics
       * 
* * repeated double descriptive_statistics_quantiles = 3; * @param index The index of the element to return. * @return The descriptiveStatisticsQuantiles at the given index. */ public double getDescriptiveStatisticsQuantiles(int index) { return descriptiveStatisticsQuantiles_.getDouble(index); } /** *
       * Quantile levels in range (0, 1) for descriptive statistics
       * 
* * repeated double descriptive_statistics_quantiles = 3; * @param index The index to set the value at. * @param value The descriptiveStatisticsQuantiles to set. * @return This builder for chaining. */ public Builder setDescriptiveStatisticsQuantiles( int index, double value) { ensureDescriptiveStatisticsQuantilesIsMutable(); descriptiveStatisticsQuantiles_.setDouble(index, value); onChanged(); return this; } /** *
       * Quantile levels in range (0, 1) for descriptive statistics
       * 
* * repeated double descriptive_statistics_quantiles = 3; * @param value The descriptiveStatisticsQuantiles to add. * @return This builder for chaining. */ public Builder addDescriptiveStatisticsQuantiles(double value) { ensureDescriptiveStatisticsQuantilesIsMutable(); descriptiveStatisticsQuantiles_.addDouble(value); onChanged(); return this; } /** *
       * Quantile levels in range (0, 1) for descriptive statistics
       * 
* * repeated double descriptive_statistics_quantiles = 3; * @param values The descriptiveStatisticsQuantiles to add. * @return This builder for chaining. */ public Builder addAllDescriptiveStatisticsQuantiles( java.lang.Iterable values) { ensureDescriptiveStatisticsQuantilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, descriptiveStatisticsQuantiles_); onChanged(); return this; } /** *
       * Quantile levels in range (0, 1) for descriptive statistics
       * 
* * repeated double descriptive_statistics_quantiles = 3; * @return This builder for chaining. */ public Builder clearDescriptiveStatisticsQuantiles() { descriptiveStatisticsQuantiles_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); 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:speechkit.stt.v3.SpeechAnalysisOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.SpeechAnalysisOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpeechAnalysisOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SpeechAnalysisOptions(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 yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawAudioOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RawAudio) com.google.protobuf.MessageOrBuilder { /** *
     * Type of audio encoding
     * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @return The enum numeric value on the wire for audioEncoding. */ int getAudioEncodingValue(); /** *
     * Type of audio encoding
     * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @return The audioEncoding. */ yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding getAudioEncoding(); /** *
     * PCM sample rate
     * 
* * int64 sample_rate_hertz = 2; * @return The sampleRateHertz. */ long getSampleRateHertz(); /** *
     * PCM channel count. Currently only single channel audio is supported in real-time recognition.
     * 
* * int64 audio_channel_count = 3; * @return The audioChannelCount. */ long getAudioChannelCount(); } /** *
   * RAW Audio format spec (no container to infer type). Used in AudioFormat options.
   * 
* * Protobuf type {@code speechkit.stt.v3.RawAudio} */ public static final class RawAudio extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RawAudio) RawAudioOrBuilder { private static final long serialVersionUID = 0L; // Use RawAudio.newBuilder() to construct. private RawAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawAudio() { audioEncoding_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RawAudio(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawAudio( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { int rawValue = input.readEnum(); audioEncoding_ = rawValue; break; } case 16: { sampleRateHertz_ = input.readInt64(); break; } case 24: { audioChannelCount_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RawAudio_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RawAudio_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RawAudio.class, yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.RawAudio.AudioEncoding} */ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { /** * AUDIO_ENCODING_UNSPECIFIED = 0; */ AUDIO_ENCODING_UNSPECIFIED(0), /** *
       * Audio bit depth 16-bit signed little-endian (Linear PCM).
       * 
* * LINEAR16_PCM = 1; */ LINEAR16_PCM(1), UNRECOGNIZED(-1), ; /** * AUDIO_ENCODING_UNSPECIFIED = 0; */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** *
       * Audio bit depth 16-bit signed little-endian (Linear PCM).
       * 
* * LINEAR16_PCM = 1; */ public static final int LINEAR16_PCM_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AudioEncoding valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AudioEncoding forNumber(int value) { switch (value) { case 0: return AUDIO_ENCODING_UNSPECIFIED; case 1: return LINEAR16_PCM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AudioEncoding> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AudioEncoding findValueByNumber(int number) { return AudioEncoding.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDescriptor().getEnumTypes().get(0); } private static final AudioEncoding[] VALUES = values(); public static AudioEncoding valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AudioEncoding(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.RawAudio.AudioEncoding) } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; private int audioEncoding_; /** *
     * Type of audio encoding
     * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @return The enum numeric value on the wire for audioEncoding. */ @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** *
     * Type of audio encoding
     * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @return The audioEncoding. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding result = yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding.valueOf(audioEncoding_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private long sampleRateHertz_; /** *
     * PCM sample rate
     * 
* * int64 sample_rate_hertz = 2; * @return The sampleRateHertz. */ @java.lang.Override public long getSampleRateHertz() { return sampleRateHertz_; } public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 3; private long audioChannelCount_; /** *
     * PCM channel count. Currently only single channel audio is supported in real-time recognition.
     * 
* * int64 audio_channel_count = 3; * @return The audioChannelCount. */ @java.lang.Override public long getAudioChannelCount() { return audioChannelCount_; } 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 (audioEncoding_ != yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, audioEncoding_); } if (sampleRateHertz_ != 0L) { output.writeInt64(2, sampleRateHertz_); } if (audioChannelCount_ != 0L) { output.writeInt64(3, audioChannelCount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (audioEncoding_ != yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, audioEncoding_); } if (sampleRateHertz_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, sampleRateHertz_); } if (audioChannelCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, audioChannelCount_); } 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 yandex.cloud.api.ai.stt.v3.Stt.RawAudio)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RawAudio other = (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) obj; if (audioEncoding_ != other.audioEncoding_) return false; if (getSampleRateHertz() != other.getSampleRateHertz()) return false; if (getAudioChannelCount() != other.getAudioChannelCount()) 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) + AUDIO_ENCODING_FIELD_NUMBER; hash = (53 * hash) + audioEncoding_; hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSampleRateHertz()); hash = (37 * hash) + AUDIO_CHANNEL_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAudioChannelCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio 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 yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio 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 yandex.cloud.api.ai.stt.v3.Stt.RawAudio parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio 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(yandex.cloud.api.ai.stt.v3.Stt.RawAudio 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; } /** *
     * RAW Audio format spec (no container to infer type). Used in AudioFormat options.
     * 
* * Protobuf type {@code speechkit.stt.v3.RawAudio} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RawAudio) yandex.cloud.api.ai.stt.v3.Stt.RawAudioOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RawAudio_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RawAudio_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RawAudio.class, yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RawAudio.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); audioEncoding_ = 0; sampleRateHertz_ = 0L; audioChannelCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RawAudio_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudio getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudio build() { yandex.cloud.api.ai.stt.v3.Stt.RawAudio result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudio buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RawAudio result = new yandex.cloud.api.ai.stt.v3.Stt.RawAudio(this); result.audioEncoding_ = audioEncoding_; result.sampleRateHertz_ = sampleRateHertz_; result.audioChannelCount_ = audioChannelCount_; 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 yandex.cloud.api.ai.stt.v3.Stt.RawAudio) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RawAudio)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RawAudio other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance()) return this; if (other.audioEncoding_ != 0) { setAudioEncodingValue(other.getAudioEncodingValue()); } if (other.getSampleRateHertz() != 0L) { setSampleRateHertz(other.getSampleRateHertz()); } if (other.getAudioChannelCount() != 0L) { setAudioChannelCount(other.getAudioChannelCount()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.RawAudio parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int audioEncoding_ = 0; /** *
       * Type of audio encoding
       * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @return The enum numeric value on the wire for audioEncoding. */ @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** *
       * Type of audio encoding
       * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { audioEncoding_ = value; onChanged(); return this; } /** *
       * Type of audio encoding
       * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @return The audioEncoding. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding result = yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding.valueOf(audioEncoding_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding.UNRECOGNIZED : result; } /** *
       * Type of audio encoding
       * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @param value The audioEncoding to set. * @return This builder for chaining. */ public Builder setAudioEncoding(yandex.cloud.api.ai.stt.v3.Stt.RawAudio.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } audioEncoding_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of audio encoding
       * 
* * .speechkit.stt.v3.RawAudio.AudioEncoding audio_encoding = 1; * @return This builder for chaining. */ public Builder clearAudioEncoding() { audioEncoding_ = 0; onChanged(); return this; } private long sampleRateHertz_ ; /** *
       * PCM sample rate
       * 
* * int64 sample_rate_hertz = 2; * @return The sampleRateHertz. */ @java.lang.Override public long getSampleRateHertz() { return sampleRateHertz_; } /** *
       * PCM sample rate
       * 
* * int64 sample_rate_hertz = 2; * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(long value) { sampleRateHertz_ = value; onChanged(); return this; } /** *
       * PCM sample rate
       * 
* * int64 sample_rate_hertz = 2; * @return This builder for chaining. */ public Builder clearSampleRateHertz() { sampleRateHertz_ = 0L; onChanged(); return this; } private long audioChannelCount_ ; /** *
       * PCM channel count. Currently only single channel audio is supported in real-time recognition.
       * 
* * int64 audio_channel_count = 3; * @return The audioChannelCount. */ @java.lang.Override public long getAudioChannelCount() { return audioChannelCount_; } /** *
       * PCM channel count. Currently only single channel audio is supported in real-time recognition.
       * 
* * int64 audio_channel_count = 3; * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(long value) { audioChannelCount_ = value; onChanged(); return this; } /** *
       * PCM channel count. Currently only single channel audio is supported in real-time recognition.
       * 
* * int64 audio_channel_count = 3; * @return This builder for chaining. */ public Builder clearAudioChannelCount() { audioChannelCount_ = 0L; 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:speechkit.stt.v3.RawAudio) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RawAudio) private static final yandex.cloud.api.ai.stt.v3.Stt.RawAudio DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RawAudio(); } public static yandex.cloud.api.ai.stt.v3.Stt.RawAudio getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RawAudio parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawAudio(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 yandex.cloud.api.ai.stt.v3.Stt.RawAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerAudioOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.ContainerAudio) com.google.protobuf.MessageOrBuilder { /** *
     * Type of audio container.
     * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @return The enum numeric value on the wire for containerAudioType. */ int getContainerAudioTypeValue(); /** *
     * Type of audio container.
     * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @return The containerAudioType. */ yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType getContainerAudioType(); } /** *
   * Audio with fixed type in container. Used in AudioFormat options.
   * 
* * Protobuf type {@code speechkit.stt.v3.ContainerAudio} */ public static final class ContainerAudio extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.ContainerAudio) ContainerAudioOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerAudio.newBuilder() to construct. private ContainerAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerAudio() { containerAudioType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContainerAudio(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerAudio( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { int rawValue = input.readEnum(); containerAudioType_ = rawValue; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ContainerAudio_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ContainerAudio_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.class, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.ContainerAudio.ContainerAudioType} */ public enum ContainerAudioType implements com.google.protobuf.ProtocolMessageEnum { /** * CONTAINER_AUDIO_TYPE_UNSPECIFIED = 0; */ CONTAINER_AUDIO_TYPE_UNSPECIFIED(0), /** *
       * Audio bit depth 16-bit signed little-endian (Linear PCM).
       * 
* * WAV = 1; */ WAV(1), /** *
       * Data is encoded using the OPUS audio codec and compressed using the OGG container format.
       * 
* * OGG_OPUS = 2; */ OGG_OPUS(2), /** *
       * Data is encoded using MPEG-1/2 Layer III and compressed using the MP3 container format.
       * 
* * MP3 = 3; */ MP3(3), UNRECOGNIZED(-1), ; /** * CONTAINER_AUDIO_TYPE_UNSPECIFIED = 0; */ public static final int CONTAINER_AUDIO_TYPE_UNSPECIFIED_VALUE = 0; /** *
       * Audio bit depth 16-bit signed little-endian (Linear PCM).
       * 
* * WAV = 1; */ public static final int WAV_VALUE = 1; /** *
       * Data is encoded using the OPUS audio codec and compressed using the OGG container format.
       * 
* * OGG_OPUS = 2; */ public static final int OGG_OPUS_VALUE = 2; /** *
       * Data is encoded using MPEG-1/2 Layer III and compressed using the MP3 container format.
       * 
* * MP3 = 3; */ public static final int MP3_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ContainerAudioType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ContainerAudioType forNumber(int value) { switch (value) { case 0: return CONTAINER_AUDIO_TYPE_UNSPECIFIED; case 1: return WAV; case 2: return OGG_OPUS; case 3: return MP3; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ContainerAudioType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ContainerAudioType findValueByNumber(int number) { return ContainerAudioType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDescriptor().getEnumTypes().get(0); } private static final ContainerAudioType[] VALUES = values(); public static ContainerAudioType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ContainerAudioType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.ContainerAudio.ContainerAudioType) } public static final int CONTAINER_AUDIO_TYPE_FIELD_NUMBER = 1; private int containerAudioType_; /** *
     * Type of audio container.
     * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @return The enum numeric value on the wire for containerAudioType. */ @java.lang.Override public int getContainerAudioTypeValue() { return containerAudioType_; } /** *
     * Type of audio container.
     * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @return The containerAudioType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType getContainerAudioType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType result = yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType.valueOf(containerAudioType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType.UNRECOGNIZED : result; } 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 (containerAudioType_ != yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType.CONTAINER_AUDIO_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, containerAudioType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (containerAudioType_ != yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType.CONTAINER_AUDIO_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, containerAudioType_); } 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 yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio other = (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) obj; if (containerAudioType_ != other.containerAudioType_) 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) + CONTAINER_AUDIO_TYPE_FIELD_NUMBER; hash = (53 * hash) + containerAudioType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio 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 yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio 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 yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio 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(yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio 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; } /** *
     * Audio with fixed type in container. Used in AudioFormat options.
     * 
* * Protobuf type {@code speechkit.stt.v3.ContainerAudio} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.ContainerAudio) yandex.cloud.api.ai.stt.v3.Stt.ContainerAudioOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ContainerAudio_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ContainerAudio_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.class, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); containerAudioType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ContainerAudio_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio build() { yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio result = new yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio(this); result.containerAudioType_ = containerAudioType_; 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 yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance()) return this; if (other.containerAudioType_ != 0) { setContainerAudioTypeValue(other.getContainerAudioTypeValue()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int containerAudioType_ = 0; /** *
       * Type of audio container.
       * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @return The enum numeric value on the wire for containerAudioType. */ @java.lang.Override public int getContainerAudioTypeValue() { return containerAudioType_; } /** *
       * Type of audio container.
       * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @param value The enum numeric value on the wire for containerAudioType to set. * @return This builder for chaining. */ public Builder setContainerAudioTypeValue(int value) { containerAudioType_ = value; onChanged(); return this; } /** *
       * Type of audio container.
       * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @return The containerAudioType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType getContainerAudioType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType result = yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType.valueOf(containerAudioType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType.UNRECOGNIZED : result; } /** *
       * Type of audio container.
       * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @param value The containerAudioType to set. * @return This builder for chaining. */ public Builder setContainerAudioType(yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.ContainerAudioType value) { if (value == null) { throw new NullPointerException(); } containerAudioType_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of audio container.
       * 
* * .speechkit.stt.v3.ContainerAudio.ContainerAudioType container_audio_type = 1; * @return This builder for chaining. */ public Builder clearContainerAudioType() { containerAudioType_ = 0; 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:speechkit.stt.v3.ContainerAudio) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.ContainerAudio) private static final yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio(); } public static yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerAudio parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerAudio(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 yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AudioFormatOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.AudioFormatOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Audio without container.
     * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; * @return Whether the rawAudio field is set. */ boolean hasRawAudio(); /** *
     * Audio without container.
     * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; * @return The rawAudio. */ yandex.cloud.api.ai.stt.v3.Stt.RawAudio getRawAudio(); /** *
     * Audio without container.
     * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ yandex.cloud.api.ai.stt.v3.Stt.RawAudioOrBuilder getRawAudioOrBuilder(); /** *
     * Audio is wrapped in container.
     * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; * @return Whether the containerAudio field is set. */ boolean hasContainerAudio(); /** *
     * Audio is wrapped in container.
     * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; * @return The containerAudio. */ yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio getContainerAudio(); /** *
     * Audio is wrapped in container.
     * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ yandex.cloud.api.ai.stt.v3.Stt.ContainerAudioOrBuilder getContainerAudioOrBuilder(); public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.AudioFormatCase getAudioFormatCase(); } /** *
   * Audio format options.
   * 
* * Protobuf type {@code speechkit.stt.v3.AudioFormatOptions} */ public static final class AudioFormatOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.AudioFormatOptions) AudioFormatOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use AudioFormatOptions.newBuilder() to construct. private AudioFormatOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudioFormatOptions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudioFormatOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AudioFormatOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder subBuilder = null; if (audioFormatCase_ == 1) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_).toBuilder(); } audioFormat_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RawAudio.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_); audioFormat_ = subBuilder.buildPartial(); } audioFormatCase_ = 1; break; } case 18: { yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder subBuilder = null; if (audioFormatCase_ == 2) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_).toBuilder(); } audioFormat_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_); audioFormat_ = subBuilder.buildPartial(); } audioFormatCase_ = 2; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioFormatOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioFormatOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.class, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder.class); } private int audioFormatCase_ = 0; private java.lang.Object audioFormat_; public enum AudioFormatCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RAW_AUDIO(1), CONTAINER_AUDIO(2), AUDIOFORMAT_NOT_SET(0); private final int value; private AudioFormatCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AudioFormatCase valueOf(int value) { return forNumber(value); } public static AudioFormatCase forNumber(int value) { switch (value) { case 1: return RAW_AUDIO; case 2: return CONTAINER_AUDIO; case 0: return AUDIOFORMAT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AudioFormatCase getAudioFormatCase() { return AudioFormatCase.forNumber( audioFormatCase_); } public static final int RAW_AUDIO_FIELD_NUMBER = 1; /** *
     * Audio without container.
     * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; * @return Whether the rawAudio field is set. */ @java.lang.Override public boolean hasRawAudio() { return audioFormatCase_ == 1; } /** *
     * Audio without container.
     * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; * @return The rawAudio. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudio getRawAudio() { if (audioFormatCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance(); } /** *
     * Audio without container.
     * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudioOrBuilder getRawAudioOrBuilder() { if (audioFormatCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance(); } public static final int CONTAINER_AUDIO_FIELD_NUMBER = 2; /** *
     * Audio is wrapped in container.
     * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; * @return Whether the containerAudio field is set. */ @java.lang.Override public boolean hasContainerAudio() { return audioFormatCase_ == 2; } /** *
     * Audio is wrapped in container.
     * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; * @return The containerAudio. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio getContainerAudio() { if (audioFormatCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance(); } /** *
     * Audio is wrapped in container.
     * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudioOrBuilder getContainerAudioOrBuilder() { if (audioFormatCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance(); } 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 (audioFormatCase_ == 1) { output.writeMessage(1, (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_); } if (audioFormatCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (audioFormatCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_); } if (audioFormatCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_); } 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 yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions other = (yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions) obj; if (!getAudioFormatCase().equals(other.getAudioFormatCase())) return false; switch (audioFormatCase_) { case 1: if (!getRawAudio() .equals(other.getRawAudio())) return false; break; case 2: if (!getContainerAudio() .equals(other.getContainerAudio())) return false; break; case 0: default: } 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(); switch (audioFormatCase_) { case 1: hash = (37 * hash) + RAW_AUDIO_FIELD_NUMBER; hash = (53 * hash) + getRawAudio().hashCode(); break; case 2: hash = (37 * hash) + CONTAINER_AUDIO_FIELD_NUMBER; hash = (53 * hash) + getContainerAudio().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions 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 yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions 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 yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions 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(yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions 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; } /** *
     * Audio format options.
     * 
* * Protobuf type {@code speechkit.stt.v3.AudioFormatOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.AudioFormatOptions) yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioFormatOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioFormatOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.class, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); audioFormatCase_ = 0; audioFormat_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioFormatOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions build() { yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions result = new yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions(this); if (audioFormatCase_ == 1) { if (rawAudioBuilder_ == null) { result.audioFormat_ = audioFormat_; } else { result.audioFormat_ = rawAudioBuilder_.build(); } } if (audioFormatCase_ == 2) { if (containerAudioBuilder_ == null) { result.audioFormat_ = audioFormat_; } else { result.audioFormat_ = containerAudioBuilder_.build(); } } result.audioFormatCase_ = audioFormatCase_; 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 yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.getDefaultInstance()) return this; switch (other.getAudioFormatCase()) { case RAW_AUDIO: { mergeRawAudio(other.getRawAudio()); break; } case CONTAINER_AUDIO: { mergeContainerAudio(other.getContainerAudio()); break; } case AUDIOFORMAT_NOT_SET: { break; } } 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 { yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int audioFormatCase_ = 0; private java.lang.Object audioFormat_; public AudioFormatCase getAudioFormatCase() { return AudioFormatCase.forNumber( audioFormatCase_); } public Builder clearAudioFormat() { audioFormatCase_ = 0; audioFormat_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RawAudio, yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder, yandex.cloud.api.ai.stt.v3.Stt.RawAudioOrBuilder> rawAudioBuilder_; /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; * @return Whether the rawAudio field is set. */ @java.lang.Override public boolean hasRawAudio() { return audioFormatCase_ == 1; } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; * @return The rawAudio. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudio getRawAudio() { if (rawAudioBuilder_ == null) { if (audioFormatCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance(); } else { if (audioFormatCase_ == 1) { return rawAudioBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance(); } } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ public Builder setRawAudio(yandex.cloud.api.ai.stt.v3.Stt.RawAudio value) { if (rawAudioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audioFormat_ = value; onChanged(); } else { rawAudioBuilder_.setMessage(value); } audioFormatCase_ = 1; return this; } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ public Builder setRawAudio( yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder builderForValue) { if (rawAudioBuilder_ == null) { audioFormat_ = builderForValue.build(); onChanged(); } else { rawAudioBuilder_.setMessage(builderForValue.build()); } audioFormatCase_ = 1; return this; } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ public Builder mergeRawAudio(yandex.cloud.api.ai.stt.v3.Stt.RawAudio value) { if (rawAudioBuilder_ == null) { if (audioFormatCase_ == 1 && audioFormat_ != yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance()) { audioFormat_ = yandex.cloud.api.ai.stt.v3.Stt.RawAudio.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_) .mergeFrom(value).buildPartial(); } else { audioFormat_ = value; } onChanged(); } else { if (audioFormatCase_ == 1) { rawAudioBuilder_.mergeFrom(value); } rawAudioBuilder_.setMessage(value); } audioFormatCase_ = 1; return this; } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ public Builder clearRawAudio() { if (rawAudioBuilder_ == null) { if (audioFormatCase_ == 1) { audioFormatCase_ = 0; audioFormat_ = null; onChanged(); } } else { if (audioFormatCase_ == 1) { audioFormatCase_ = 0; audioFormat_ = null; } rawAudioBuilder_.clear(); } return this; } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder getRawAudioBuilder() { return getRawAudioFieldBuilder().getBuilder(); } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RawAudioOrBuilder getRawAudioOrBuilder() { if ((audioFormatCase_ == 1) && (rawAudioBuilder_ != null)) { return rawAudioBuilder_.getMessageOrBuilder(); } else { if (audioFormatCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance(); } } /** *
       * Audio without container.
       * 
* * .speechkit.stt.v3.RawAudio raw_audio = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RawAudio, yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder, yandex.cloud.api.ai.stt.v3.Stt.RawAudioOrBuilder> getRawAudioFieldBuilder() { if (rawAudioBuilder_ == null) { if (!(audioFormatCase_ == 1)) { audioFormat_ = yandex.cloud.api.ai.stt.v3.Stt.RawAudio.getDefaultInstance(); } rawAudioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RawAudio, yandex.cloud.api.ai.stt.v3.Stt.RawAudio.Builder, yandex.cloud.api.ai.stt.v3.Stt.RawAudioOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.RawAudio) audioFormat_, getParentForChildren(), isClean()); audioFormat_ = null; } audioFormatCase_ = 1; onChanged();; return rawAudioBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudioOrBuilder> containerAudioBuilder_; /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; * @return Whether the containerAudio field is set. */ @java.lang.Override public boolean hasContainerAudio() { return audioFormatCase_ == 2; } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; * @return The containerAudio. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio getContainerAudio() { if (containerAudioBuilder_ == null) { if (audioFormatCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance(); } else { if (audioFormatCase_ == 2) { return containerAudioBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance(); } } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ public Builder setContainerAudio(yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio value) { if (containerAudioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audioFormat_ = value; onChanged(); } else { containerAudioBuilder_.setMessage(value); } audioFormatCase_ = 2; return this; } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ public Builder setContainerAudio( yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder builderForValue) { if (containerAudioBuilder_ == null) { audioFormat_ = builderForValue.build(); onChanged(); } else { containerAudioBuilder_.setMessage(builderForValue.build()); } audioFormatCase_ = 2; return this; } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ public Builder mergeContainerAudio(yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio value) { if (containerAudioBuilder_ == null) { if (audioFormatCase_ == 2 && audioFormat_ != yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance()) { audioFormat_ = yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_) .mergeFrom(value).buildPartial(); } else { audioFormat_ = value; } onChanged(); } else { if (audioFormatCase_ == 2) { containerAudioBuilder_.mergeFrom(value); } containerAudioBuilder_.setMessage(value); } audioFormatCase_ = 2; return this; } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ public Builder clearContainerAudio() { if (containerAudioBuilder_ == null) { if (audioFormatCase_ == 2) { audioFormatCase_ = 0; audioFormat_ = null; onChanged(); } } else { if (audioFormatCase_ == 2) { audioFormatCase_ = 0; audioFormat_ = null; } containerAudioBuilder_.clear(); } return this; } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder getContainerAudioBuilder() { return getContainerAudioFieldBuilder().getBuilder(); } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ContainerAudioOrBuilder getContainerAudioOrBuilder() { if ((audioFormatCase_ == 2) && (containerAudioBuilder_ != null)) { return containerAudioBuilder_.getMessageOrBuilder(); } else { if (audioFormatCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_; } return yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance(); } } /** *
       * Audio is wrapped in container.
       * 
* * .speechkit.stt.v3.ContainerAudio container_audio = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudioOrBuilder> getContainerAudioFieldBuilder() { if (containerAudioBuilder_ == null) { if (!(audioFormatCase_ == 2)) { audioFormat_ = yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.getDefaultInstance(); } containerAudioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio.Builder, yandex.cloud.api.ai.stt.v3.Stt.ContainerAudioOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.ContainerAudio) audioFormat_, getParentForChildren(), isClean()); audioFormat_ = null; } audioFormatCase_ = 2; onChanged();; return containerAudioBuilder_; } @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:speechkit.stt.v3.AudioFormatOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.AudioFormatOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudioFormatOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AudioFormatOptions(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 yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LanguageRestrictionOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.LanguageRestrictionOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Language restriction type
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @return The enum numeric value on the wire for restrictionType. */ int getRestrictionTypeValue(); /** *
     * Language restriction type
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @return The restrictionType. */ yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType getRestrictionType(); /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @return A list containing the languageCode. */ java.util.List getLanguageCodeList(); /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @return The count of languageCode. */ int getLanguageCodeCount(); /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @param index The index of the element to return. * @return The languageCode at the given index. */ java.lang.String getLanguageCode(int index); /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @param index The index of the value to return. * @return The bytes of the languageCode at the given index. */ com.google.protobuf.ByteString getLanguageCodeBytes(int index); } /** *
   * Type of restriction for the list of languages expected in the incoming speech stream.
   * 
* * Protobuf type {@code speechkit.stt.v3.LanguageRestrictionOptions} */ public static final class LanguageRestrictionOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.LanguageRestrictionOptions) LanguageRestrictionOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use LanguageRestrictionOptions.newBuilder() to construct. private LanguageRestrictionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LanguageRestrictionOptions() { restrictionType_ = 0; languageCode_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LanguageRestrictionOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LanguageRestrictionOptions( 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 8: { int rawValue = input.readEnum(); restrictionType_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { languageCode_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } languageCode_.add(s); 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)) { languageCode_ = languageCode_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageRestrictionOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageRestrictionOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.class, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType} */ public enum LanguageRestrictionType implements com.google.protobuf.ProtocolMessageEnum { /** * LANGUAGE_RESTRICTION_TYPE_UNSPECIFIED = 0; */ LANGUAGE_RESTRICTION_TYPE_UNSPECIFIED(0), /** *
       * The allowing list. The incoming audio can contain only the listed languages.
       * 
* * WHITELIST = 1; */ WHITELIST(1), /** *
       * The forbidding list. The incoming audio cannot contain the listed languages.
       * 
* * BLACKLIST = 2; */ BLACKLIST(2), UNRECOGNIZED(-1), ; /** * LANGUAGE_RESTRICTION_TYPE_UNSPECIFIED = 0; */ public static final int LANGUAGE_RESTRICTION_TYPE_UNSPECIFIED_VALUE = 0; /** *
       * The allowing list. The incoming audio can contain only the listed languages.
       * 
* * WHITELIST = 1; */ public static final int WHITELIST_VALUE = 1; /** *
       * The forbidding list. The incoming audio cannot contain the listed languages.
       * 
* * BLACKLIST = 2; */ public static final int BLACKLIST_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LanguageRestrictionType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LanguageRestrictionType forNumber(int value) { switch (value) { case 0: return LANGUAGE_RESTRICTION_TYPE_UNSPECIFIED; case 1: return WHITELIST; case 2: return BLACKLIST; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LanguageRestrictionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LanguageRestrictionType findValueByNumber(int number) { return LanguageRestrictionType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.getDescriptor().getEnumTypes().get(0); } private static final LanguageRestrictionType[] VALUES = values(); public static LanguageRestrictionType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LanguageRestrictionType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType) } public static final int RESTRICTION_TYPE_FIELD_NUMBER = 1; private int restrictionType_; /** *
     * Language restriction type
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @return The enum numeric value on the wire for restrictionType. */ @java.lang.Override public int getRestrictionTypeValue() { return restrictionType_; } /** *
     * Language restriction type
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @return The restrictionType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType getRestrictionType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType result = yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType.valueOf(restrictionType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType.UNRECOGNIZED : result; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageCode_; /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @return A list containing the languageCode. */ public com.google.protobuf.ProtocolStringList getLanguageCodeList() { return languageCode_; } /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @return The count of languageCode. */ public int getLanguageCodeCount() { return languageCode_.size(); } /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @param index The index of the element to return. * @return The languageCode at the given index. */ public java.lang.String getLanguageCode(int index) { return languageCode_.get(index); } /** *
     * The list of language codes to restrict recognition in the case of an auto model
     * 
* * repeated string language_code = 2; * @param index The index of the value to return. * @return The bytes of the languageCode at the given index. */ public com.google.protobuf.ByteString getLanguageCodeBytes(int index) { return languageCode_.getByteString(index); } 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 (restrictionType_ != yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType.LANGUAGE_RESTRICTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, restrictionType_); } for (int i = 0; i < languageCode_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (restrictionType_ != yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType.LANGUAGE_RESTRICTION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, restrictionType_); } { int dataSize = 0; for (int i = 0; i < languageCode_.size(); i++) { dataSize += computeStringSizeNoTag(languageCode_.getRaw(i)); } size += dataSize; size += 1 * getLanguageCodeList().size(); } 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions other = (yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions) obj; if (restrictionType_ != other.restrictionType_) return false; if (!getLanguageCodeList() .equals(other.getLanguageCodeList())) 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) + RESTRICTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + restrictionType_; if (getLanguageCodeCount() > 0) { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCodeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions 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(yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions 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; } /** *
     * Type of restriction for the list of languages expected in the incoming speech stream.
     * 
* * Protobuf type {@code speechkit.stt.v3.LanguageRestrictionOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.LanguageRestrictionOptions) yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageRestrictionOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageRestrictionOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.class, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); restrictionType_ = 0; languageCode_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageRestrictionOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions build() { yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions result = new yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions(this); int from_bitField0_ = bitField0_; result.restrictionType_ = restrictionType_; if (((bitField0_ & 0x00000001) != 0)) { languageCode_ = languageCode_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.languageCode_ = languageCode_; 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.getDefaultInstance()) return this; if (other.restrictionType_ != 0) { setRestrictionTypeValue(other.getRestrictionTypeValue()); } if (!other.languageCode_.isEmpty()) { if (languageCode_.isEmpty()) { languageCode_ = other.languageCode_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLanguageCodeIsMutable(); languageCode_.addAll(other.languageCode_); } onChanged(); } 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 { yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int restrictionType_ = 0; /** *
       * Language restriction type
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @return The enum numeric value on the wire for restrictionType. */ @java.lang.Override public int getRestrictionTypeValue() { return restrictionType_; } /** *
       * Language restriction type
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @param value The enum numeric value on the wire for restrictionType to set. * @return This builder for chaining. */ public Builder setRestrictionTypeValue(int value) { restrictionType_ = value; onChanged(); return this; } /** *
       * Language restriction type
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @return The restrictionType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType getRestrictionType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType result = yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType.valueOf(restrictionType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType.UNRECOGNIZED : result; } /** *
       * Language restriction type
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @param value The restrictionType to set. * @return This builder for chaining. */ public Builder setRestrictionType(yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.LanguageRestrictionType value) { if (value == null) { throw new NullPointerException(); } restrictionType_ = value.getNumber(); onChanged(); return this; } /** *
       * Language restriction type
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions.LanguageRestrictionType restriction_type = 1; * @return This builder for chaining. */ public Builder clearRestrictionType() { restrictionType_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList languageCode_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageCodeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageCode_ = new com.google.protobuf.LazyStringArrayList(languageCode_); bitField0_ |= 0x00000001; } } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @return A list containing the languageCode. */ public com.google.protobuf.ProtocolStringList getLanguageCodeList() { return languageCode_.getUnmodifiableView(); } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @return The count of languageCode. */ public int getLanguageCodeCount() { return languageCode_.size(); } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @param index The index of the element to return. * @return The languageCode at the given index. */ public java.lang.String getLanguageCode(int index) { return languageCode_.get(index); } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @param index The index of the value to return. * @return The bytes of the languageCode at the given index. */ public com.google.protobuf.ByteString getLanguageCodeBytes(int index) { return languageCode_.getByteString(index); } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @param index The index to set the value at. * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguageCodeIsMutable(); languageCode_.set(index, value); onChanged(); return this; } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @param value The languageCode to add. * @return This builder for chaining. */ public Builder addLanguageCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguageCodeIsMutable(); languageCode_.add(value); onChanged(); return this; } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @param values The languageCode to add. * @return This builder for chaining. */ public Builder addAllLanguageCode( java.lang.Iterable values) { ensureLanguageCodeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, languageCode_); onChanged(); return this; } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The list of language codes to restrict recognition in the case of an auto model
       * 
* * repeated string language_code = 2; * @param value The bytes of the languageCode to add. * @return This builder for chaining. */ public Builder addLanguageCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageCodeIsMutable(); languageCode_.add(value); 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:speechkit.stt.v3.LanguageRestrictionOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.LanguageRestrictionOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LanguageRestrictionOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LanguageRestrictionOptions(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 yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecognitionModelOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RecognitionModelOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
     * The model is ignored for SpeechKit Hybrid.
     * 
* * string model = 1; * @return The model. */ java.lang.String getModel(); /** *
     * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
     * The model is ignored for SpeechKit Hybrid.
     * 
* * string model = 1; * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); /** *
     * Specified input audio.
     * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; * @return Whether the audioFormat field is set. */ boolean hasAudioFormat(); /** *
     * Specified input audio.
     * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; * @return The audioFormat. */ yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions getAudioFormat(); /** *
     * Specified input audio.
     * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptionsOrBuilder getAudioFormatOrBuilder(); /** *
     * Text normalization options.
     * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; * @return Whether the textNormalization field is set. */ boolean hasTextNormalization(); /** *
     * Text normalization options.
     * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; * @return The textNormalization. */ yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions getTextNormalization(); /** *
     * Text normalization options.
     * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptionsOrBuilder getTextNormalizationOrBuilder(); /** *
     * Possible languages in audio.
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; * @return Whether the languageRestriction field is set. */ boolean hasLanguageRestriction(); /** *
     * Possible languages in audio.
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; * @return The languageRestriction. */ yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions getLanguageRestriction(); /** *
     * Possible languages in audio.
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptionsOrBuilder getLanguageRestrictionOrBuilder(); /** *
     * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @return The enum numeric value on the wire for audioProcessingType. */ int getAudioProcessingTypeValue(); /** *
     * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @return The audioProcessingType. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType getAudioProcessingType(); } /** * Protobuf type {@code speechkit.stt.v3.RecognitionModelOptions} */ public static final class RecognitionModelOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RecognitionModelOptions) RecognitionModelOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use RecognitionModelOptions.newBuilder() to construct. private RecognitionModelOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecognitionModelOptions() { model_ = ""; audioProcessingType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecognitionModelOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecognitionModelOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); model_ = s; break; } case 18: { yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder subBuilder = null; if (audioFormat_ != null) { subBuilder = audioFormat_.toBuilder(); } audioFormat_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(audioFormat_); audioFormat_ = subBuilder.buildPartial(); } break; } case 26: { yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder subBuilder = null; if (textNormalization_ != null) { subBuilder = textNormalization_.toBuilder(); } textNormalization_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(textNormalization_); textNormalization_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder subBuilder = null; if (languageRestriction_ != null) { subBuilder = languageRestriction_.toBuilder(); } languageRestriction_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(languageRestriction_); languageRestriction_ = subBuilder.buildPartial(); } break; } case 40: { int rawValue = input.readEnum(); audioProcessingType_ = rawValue; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionModelOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionModelOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType} */ public enum AudioProcessingType implements com.google.protobuf.ProtocolMessageEnum { /** * AUDIO_PROCESSING_TYPE_UNSPECIFIED = 0; */ AUDIO_PROCESSING_TYPE_UNSPECIFIED(0), /** *
       * Process audio in mode optimized for real-time recognition, i.e. send partials and final responses as soon as possible
       * 
* * REAL_TIME = 1; */ REAL_TIME(1), /** *
       * Process audio after all data was received
       * 
* * FULL_DATA = 2; */ FULL_DATA(2), UNRECOGNIZED(-1), ; /** * AUDIO_PROCESSING_TYPE_UNSPECIFIED = 0; */ public static final int AUDIO_PROCESSING_TYPE_UNSPECIFIED_VALUE = 0; /** *
       * Process audio in mode optimized for real-time recognition, i.e. send partials and final responses as soon as possible
       * 
* * REAL_TIME = 1; */ public static final int REAL_TIME_VALUE = 1; /** *
       * Process audio after all data was received
       * 
* * FULL_DATA = 2; */ public static final int FULL_DATA_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AudioProcessingType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AudioProcessingType forNumber(int value) { switch (value) { case 0: return AUDIO_PROCESSING_TYPE_UNSPECIFIED; case 1: return REAL_TIME; case 2: return FULL_DATA; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AudioProcessingType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AudioProcessingType findValueByNumber(int number) { return AudioProcessingType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDescriptor().getEnumTypes().get(0); } private static final AudioProcessingType[] VALUES = values(); public static AudioProcessingType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AudioProcessingType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType) } public static final int MODEL_FIELD_NUMBER = 1; private volatile java.lang.Object model_; /** *
     * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
     * The model is ignored for SpeechKit Hybrid.
     * 
* * string model = 1; * @return The model. */ @java.lang.Override public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; } } /** *
     * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
     * The model is ignored for SpeechKit Hybrid.
     * 
* * string model = 1; * @return The bytes for model. */ @java.lang.Override public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); model_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUDIO_FORMAT_FIELD_NUMBER = 2; private yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions audioFormat_; /** *
     * Specified input audio.
     * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; * @return Whether the audioFormat field is set. */ @java.lang.Override public boolean hasAudioFormat() { return audioFormat_ != null; } /** *
     * Specified input audio.
     * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; * @return The audioFormat. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions getAudioFormat() { return audioFormat_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.getDefaultInstance() : audioFormat_; } /** *
     * Specified input audio.
     * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptionsOrBuilder getAudioFormatOrBuilder() { return getAudioFormat(); } public static final int TEXT_NORMALIZATION_FIELD_NUMBER = 3; private yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions textNormalization_; /** *
     * Text normalization options.
     * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; * @return Whether the textNormalization field is set. */ @java.lang.Override public boolean hasTextNormalization() { return textNormalization_ != null; } /** *
     * Text normalization options.
     * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; * @return The textNormalization. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions getTextNormalization() { return textNormalization_ == null ? yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.getDefaultInstance() : textNormalization_; } /** *
     * Text normalization options.
     * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptionsOrBuilder getTextNormalizationOrBuilder() { return getTextNormalization(); } public static final int LANGUAGE_RESTRICTION_FIELD_NUMBER = 4; private yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions languageRestriction_; /** *
     * Possible languages in audio.
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; * @return Whether the languageRestriction field is set. */ @java.lang.Override public boolean hasLanguageRestriction() { return languageRestriction_ != null; } /** *
     * Possible languages in audio.
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; * @return The languageRestriction. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions getLanguageRestriction() { return languageRestriction_ == null ? yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.getDefaultInstance() : languageRestriction_; } /** *
     * Possible languages in audio.
     * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptionsOrBuilder getLanguageRestrictionOrBuilder() { return getLanguageRestriction(); } public static final int AUDIO_PROCESSING_TYPE_FIELD_NUMBER = 5; private int audioProcessingType_; /** *
     * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @return The enum numeric value on the wire for audioProcessingType. */ @java.lang.Override public int getAudioProcessingTypeValue() { return audioProcessingType_; } /** *
     * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @return The audioProcessingType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType getAudioProcessingType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType result = yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType.valueOf(audioProcessingType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType.UNRECOGNIZED : result; } 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(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); } if (audioFormat_ != null) { output.writeMessage(2, getAudioFormat()); } if (textNormalization_ != null) { output.writeMessage(3, getTextNormalization()); } if (languageRestriction_ != null) { output.writeMessage(4, getLanguageRestriction()); } if (audioProcessingType_ != yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType.AUDIO_PROCESSING_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, audioProcessingType_); } 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(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); } if (audioFormat_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAudioFormat()); } if (textNormalization_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTextNormalization()); } if (languageRestriction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLanguageRestriction()); } if (audioProcessingType_ != yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType.AUDIO_PROCESSING_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, audioProcessingType_); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions other = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions) obj; if (!getModel() .equals(other.getModel())) return false; if (hasAudioFormat() != other.hasAudioFormat()) return false; if (hasAudioFormat()) { if (!getAudioFormat() .equals(other.getAudioFormat())) return false; } if (hasTextNormalization() != other.hasTextNormalization()) return false; if (hasTextNormalization()) { if (!getTextNormalization() .equals(other.getTextNormalization())) return false; } if (hasLanguageRestriction() != other.hasLanguageRestriction()) return false; if (hasLanguageRestriction()) { if (!getLanguageRestriction() .equals(other.getLanguageRestriction())) return false; } if (audioProcessingType_ != other.audioProcessingType_) 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) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); if (hasAudioFormat()) { hash = (37 * hash) + AUDIO_FORMAT_FIELD_NUMBER; hash = (53 * hash) + getAudioFormat().hashCode(); } if (hasTextNormalization()) { hash = (37 * hash) + TEXT_NORMALIZATION_FIELD_NUMBER; hash = (53 * hash) + getTextNormalization().hashCode(); } if (hasLanguageRestriction()) { hash = (37 * hash) + LANGUAGE_RESTRICTION_FIELD_NUMBER; hash = (53 * hash) + getLanguageRestriction().hashCode(); } hash = (37 * hash) + AUDIO_PROCESSING_TYPE_FIELD_NUMBER; hash = (53 * hash) + audioProcessingType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions 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(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions 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 speechkit.stt.v3.RecognitionModelOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RecognitionModelOptions) yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionModelOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionModelOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); model_ = ""; if (audioFormatBuilder_ == null) { audioFormat_ = null; } else { audioFormat_ = null; audioFormatBuilder_ = null; } if (textNormalizationBuilder_ == null) { textNormalization_ = null; } else { textNormalization_ = null; textNormalizationBuilder_ = null; } if (languageRestrictionBuilder_ == null) { languageRestriction_ = null; } else { languageRestriction_ = null; languageRestrictionBuilder_ = null; } audioProcessingType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionModelOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions build() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions result = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions(this); result.model_ = model_; if (audioFormatBuilder_ == null) { result.audioFormat_ = audioFormat_; } else { result.audioFormat_ = audioFormatBuilder_.build(); } if (textNormalizationBuilder_ == null) { result.textNormalization_ = textNormalization_; } else { result.textNormalization_ = textNormalizationBuilder_.build(); } if (languageRestrictionBuilder_ == null) { result.languageRestriction_ = languageRestriction_; } else { result.languageRestriction_ = languageRestrictionBuilder_.build(); } result.audioProcessingType_ = audioProcessingType_; 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; onChanged(); } if (other.hasAudioFormat()) { mergeAudioFormat(other.getAudioFormat()); } if (other.hasTextNormalization()) { mergeTextNormalization(other.getTextNormalization()); } if (other.hasLanguageRestriction()) { mergeLanguageRestriction(other.getLanguageRestriction()); } if (other.audioProcessingType_ != 0) { setAudioProcessingTypeValue(other.getAudioProcessingTypeValue()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object model_ = ""; /** *
       * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
       * The model is ignored for SpeechKit Hybrid.
       * 
* * string model = 1; * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
       * The model is ignored for SpeechKit Hybrid.
       * 
* * string model = 1; * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); model_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
       * The model is ignored for SpeechKit Hybrid.
       * 
* * string model = 1; * @param value The model to set. * @return This builder for chaining. */ public Builder setModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); return this; } /** *
       * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
       * The model is ignored for SpeechKit Hybrid.
       * 
* * string model = 1; * @return This builder for chaining. */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** *
       * Sets the recognition model for the cloud version of SpeechKit. Possible values: 'general', 'general:rc', 'general:deprecated'.
       * The model is ignored for SpeechKit Hybrid.
       * 
* * string model = 1; * @param value The bytes for model to set. * @return This builder for chaining. */ public Builder setModelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions audioFormat_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptionsOrBuilder> audioFormatBuilder_; /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; * @return Whether the audioFormat field is set. */ public boolean hasAudioFormat() { return audioFormatBuilder_ != null || audioFormat_ != null; } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; * @return The audioFormat. */ public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions getAudioFormat() { if (audioFormatBuilder_ == null) { return audioFormat_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.getDefaultInstance() : audioFormat_; } else { return audioFormatBuilder_.getMessage(); } } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ public Builder setAudioFormat(yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions value) { if (audioFormatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audioFormat_ = value; onChanged(); } else { audioFormatBuilder_.setMessage(value); } return this; } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ public Builder setAudioFormat( yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder builderForValue) { if (audioFormatBuilder_ == null) { audioFormat_ = builderForValue.build(); onChanged(); } else { audioFormatBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ public Builder mergeAudioFormat(yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions value) { if (audioFormatBuilder_ == null) { if (audioFormat_ != null) { audioFormat_ = yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.newBuilder(audioFormat_).mergeFrom(value).buildPartial(); } else { audioFormat_ = value; } onChanged(); } else { audioFormatBuilder_.mergeFrom(value); } return this; } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ public Builder clearAudioFormat() { if (audioFormatBuilder_ == null) { audioFormat_ = null; onChanged(); } else { audioFormat_ = null; audioFormatBuilder_ = null; } return this; } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder getAudioFormatBuilder() { onChanged(); return getAudioFormatFieldBuilder().getBuilder(); } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptionsOrBuilder getAudioFormatOrBuilder() { if (audioFormatBuilder_ != null) { return audioFormatBuilder_.getMessageOrBuilder(); } else { return audioFormat_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.getDefaultInstance() : audioFormat_; } } /** *
       * Specified input audio.
       * 
* * .speechkit.stt.v3.AudioFormatOptions audio_format = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptionsOrBuilder> getAudioFormatFieldBuilder() { if (audioFormatBuilder_ == null) { audioFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioFormatOptionsOrBuilder>( getAudioFormat(), getParentForChildren(), isClean()); audioFormat_ = null; } return audioFormatBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions textNormalization_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptionsOrBuilder> textNormalizationBuilder_; /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; * @return Whether the textNormalization field is set. */ public boolean hasTextNormalization() { return textNormalizationBuilder_ != null || textNormalization_ != null; } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; * @return The textNormalization. */ public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions getTextNormalization() { if (textNormalizationBuilder_ == null) { return textNormalization_ == null ? yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.getDefaultInstance() : textNormalization_; } else { return textNormalizationBuilder_.getMessage(); } } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ public Builder setTextNormalization(yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions value) { if (textNormalizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } textNormalization_ = value; onChanged(); } else { textNormalizationBuilder_.setMessage(value); } return this; } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ public Builder setTextNormalization( yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder builderForValue) { if (textNormalizationBuilder_ == null) { textNormalization_ = builderForValue.build(); onChanged(); } else { textNormalizationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ public Builder mergeTextNormalization(yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions value) { if (textNormalizationBuilder_ == null) { if (textNormalization_ != null) { textNormalization_ = yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.newBuilder(textNormalization_).mergeFrom(value).buildPartial(); } else { textNormalization_ = value; } onChanged(); } else { textNormalizationBuilder_.mergeFrom(value); } return this; } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ public Builder clearTextNormalization() { if (textNormalizationBuilder_ == null) { textNormalization_ = null; onChanged(); } else { textNormalization_ = null; textNormalizationBuilder_ = null; } return this; } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder getTextNormalizationBuilder() { onChanged(); return getTextNormalizationFieldBuilder().getBuilder(); } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptionsOrBuilder getTextNormalizationOrBuilder() { if (textNormalizationBuilder_ != null) { return textNormalizationBuilder_.getMessageOrBuilder(); } else { return textNormalization_ == null ? yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.getDefaultInstance() : textNormalization_; } } /** *
       * Text normalization options.
       * 
* * .speechkit.stt.v3.TextNormalizationOptions text_normalization = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptionsOrBuilder> getTextNormalizationFieldBuilder() { if (textNormalizationBuilder_ == null) { textNormalizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.TextNormalizationOptionsOrBuilder>( getTextNormalization(), getParentForChildren(), isClean()); textNormalization_ = null; } return textNormalizationBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions languageRestriction_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptionsOrBuilder> languageRestrictionBuilder_; /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; * @return Whether the languageRestriction field is set. */ public boolean hasLanguageRestriction() { return languageRestrictionBuilder_ != null || languageRestriction_ != null; } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; * @return The languageRestriction. */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions getLanguageRestriction() { if (languageRestrictionBuilder_ == null) { return languageRestriction_ == null ? yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.getDefaultInstance() : languageRestriction_; } else { return languageRestrictionBuilder_.getMessage(); } } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ public Builder setLanguageRestriction(yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions value) { if (languageRestrictionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } languageRestriction_ = value; onChanged(); } else { languageRestrictionBuilder_.setMessage(value); } return this; } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ public Builder setLanguageRestriction( yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder builderForValue) { if (languageRestrictionBuilder_ == null) { languageRestriction_ = builderForValue.build(); onChanged(); } else { languageRestrictionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ public Builder mergeLanguageRestriction(yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions value) { if (languageRestrictionBuilder_ == null) { if (languageRestriction_ != null) { languageRestriction_ = yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.newBuilder(languageRestriction_).mergeFrom(value).buildPartial(); } else { languageRestriction_ = value; } onChanged(); } else { languageRestrictionBuilder_.mergeFrom(value); } return this; } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ public Builder clearLanguageRestriction() { if (languageRestrictionBuilder_ == null) { languageRestriction_ = null; onChanged(); } else { languageRestriction_ = null; languageRestrictionBuilder_ = null; } return this; } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder getLanguageRestrictionBuilder() { onChanged(); return getLanguageRestrictionFieldBuilder().getBuilder(); } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptionsOrBuilder getLanguageRestrictionOrBuilder() { if (languageRestrictionBuilder_ != null) { return languageRestrictionBuilder_.getMessageOrBuilder(); } else { return languageRestriction_ == null ? yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.getDefaultInstance() : languageRestriction_; } } /** *
       * Possible languages in audio.
       * 
* * .speechkit.stt.v3.LanguageRestrictionOptions language_restriction = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptionsOrBuilder> getLanguageRestrictionFieldBuilder() { if (languageRestrictionBuilder_ == null) { languageRestrictionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.LanguageRestrictionOptionsOrBuilder>( getLanguageRestriction(), getParentForChildren(), isClean()); languageRestriction_ = null; } return languageRestrictionBuilder_; } private int audioProcessingType_ = 0; /** *
       * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @return The enum numeric value on the wire for audioProcessingType. */ @java.lang.Override public int getAudioProcessingTypeValue() { return audioProcessingType_; } /** *
       * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @param value The enum numeric value on the wire for audioProcessingType to set. * @return This builder for chaining. */ public Builder setAudioProcessingTypeValue(int value) { audioProcessingType_ = value; onChanged(); return this; } /** *
       * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @return The audioProcessingType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType getAudioProcessingType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType result = yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType.valueOf(audioProcessingType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType.UNRECOGNIZED : result; } /** *
       * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @param value The audioProcessingType to set. * @return This builder for chaining. */ public Builder setAudioProcessingType(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.AudioProcessingType value) { if (value == null) { throw new NullPointerException(); } audioProcessingType_ = value.getNumber(); onChanged(); return this; } /** *
       * How to deal with audio data (in real time, after all data is received, etc). Default is REAL_TIME.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions.AudioProcessingType audio_processing_type = 5; * @return This builder for chaining. */ public Builder clearAudioProcessingType() { audioProcessingType_ = 0; 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:speechkit.stt.v3.RecognitionModelOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RecognitionModelOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecognitionModelOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecognitionModelOptions(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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamingOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.StreamingOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; * @return Whether the recognitionModel field is set. */ boolean hasRecognitionModel(); /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; * @return The recognitionModel. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getRecognitionModel(); /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder getRecognitionModelOrBuilder(); /** *
     * Configuration for end of utterance detection model.
     * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; * @return Whether the eouClassifier field is set. */ boolean hasEouClassifier(); /** *
     * Configuration for end of utterance detection model.
     * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; * @return The eouClassifier. */ yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions getEouClassifier(); /** *
     * Configuration for end of utterance detection model.
     * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptionsOrBuilder getEouClassifierOrBuilder(); /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; * @return Whether the recognitionClassifier field is set. */ boolean hasRecognitionClassifier(); /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; * @return The recognitionClassifier. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getRecognitionClassifier(); /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder getRecognitionClassifierOrBuilder(); /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; * @return Whether the speechAnalysis field is set. */ boolean hasSpeechAnalysis(); /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; * @return The speechAnalysis. */ yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getSpeechAnalysis(); /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder getSpeechAnalysisOrBuilder(); } /** * Protobuf type {@code speechkit.stt.v3.StreamingOptions} */ public static final class StreamingOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.StreamingOptions) StreamingOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use StreamingOptions.newBuilder() to construct. private StreamingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamingOptions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamingOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamingOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder subBuilder = null; if (recognitionModel_ != null) { subBuilder = recognitionModel_.toBuilder(); } recognitionModel_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(recognitionModel_); recognitionModel_ = subBuilder.buildPartial(); } break; } case 18: { yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder subBuilder = null; if (eouClassifier_ != null) { subBuilder = eouClassifier_.toBuilder(); } eouClassifier_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eouClassifier_); eouClassifier_ = subBuilder.buildPartial(); } break; } case 26: { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder subBuilder = null; if (recognitionClassifier_ != null) { subBuilder = recognitionClassifier_.toBuilder(); } recognitionClassifier_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(recognitionClassifier_); recognitionClassifier_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder subBuilder = null; if (speechAnalysis_ != null) { subBuilder = speechAnalysis_.toBuilder(); } speechAnalysis_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(speechAnalysis_); speechAnalysis_ = subBuilder.buildPartial(); } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.class, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder.class); } public static final int RECOGNITION_MODEL_FIELD_NUMBER = 1; private yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions recognitionModel_; /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; * @return Whether the recognitionModel field is set. */ @java.lang.Override public boolean hasRecognitionModel() { return recognitionModel_ != null; } /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; * @return The recognitionModel. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getRecognitionModel() { return recognitionModel_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance() : recognitionModel_; } /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder getRecognitionModelOrBuilder() { return getRecognitionModel(); } public static final int EOU_CLASSIFIER_FIELD_NUMBER = 2; private yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions eouClassifier_; /** *
     * Configuration for end of utterance detection model.
     * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; * @return Whether the eouClassifier field is set. */ @java.lang.Override public boolean hasEouClassifier() { return eouClassifier_ != null; } /** *
     * Configuration for end of utterance detection model.
     * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; * @return The eouClassifier. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions getEouClassifier() { return eouClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.getDefaultInstance() : eouClassifier_; } /** *
     * Configuration for end of utterance detection model.
     * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptionsOrBuilder getEouClassifierOrBuilder() { return getEouClassifier(); } public static final int RECOGNITION_CLASSIFIER_FIELD_NUMBER = 3; private yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions recognitionClassifier_; /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; * @return Whether the recognitionClassifier field is set. */ @java.lang.Override public boolean hasRecognitionClassifier() { return recognitionClassifier_ != null; } /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; * @return The recognitionClassifier. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getRecognitionClassifier() { return recognitionClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance() : recognitionClassifier_; } /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder getRecognitionClassifierOrBuilder() { return getRecognitionClassifier(); } public static final int SPEECH_ANALYSIS_FIELD_NUMBER = 4; private yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions speechAnalysis_; /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; * @return Whether the speechAnalysis field is set. */ @java.lang.Override public boolean hasSpeechAnalysis() { return speechAnalysis_ != null; } /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; * @return The speechAnalysis. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getSpeechAnalysis() { return speechAnalysis_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance() : speechAnalysis_; } /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder getSpeechAnalysisOrBuilder() { return getSpeechAnalysis(); } 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 (recognitionModel_ != null) { output.writeMessage(1, getRecognitionModel()); } if (eouClassifier_ != null) { output.writeMessage(2, getEouClassifier()); } if (recognitionClassifier_ != null) { output.writeMessage(3, getRecognitionClassifier()); } if (speechAnalysis_ != null) { output.writeMessage(4, getSpeechAnalysis()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (recognitionModel_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRecognitionModel()); } if (eouClassifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEouClassifier()); } if (recognitionClassifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecognitionClassifier()); } if (speechAnalysis_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSpeechAnalysis()); } 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions other = (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) obj; if (hasRecognitionModel() != other.hasRecognitionModel()) return false; if (hasRecognitionModel()) { if (!getRecognitionModel() .equals(other.getRecognitionModel())) return false; } if (hasEouClassifier() != other.hasEouClassifier()) return false; if (hasEouClassifier()) { if (!getEouClassifier() .equals(other.getEouClassifier())) return false; } if (hasRecognitionClassifier() != other.hasRecognitionClassifier()) return false; if (hasRecognitionClassifier()) { if (!getRecognitionClassifier() .equals(other.getRecognitionClassifier())) return false; } if (hasSpeechAnalysis() != other.hasSpeechAnalysis()) return false; if (hasSpeechAnalysis()) { if (!getSpeechAnalysis() .equals(other.getSpeechAnalysis())) 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(); if (hasRecognitionModel()) { hash = (37 * hash) + RECOGNITION_MODEL_FIELD_NUMBER; hash = (53 * hash) + getRecognitionModel().hashCode(); } if (hasEouClassifier()) { hash = (37 * hash) + EOU_CLASSIFIER_FIELD_NUMBER; hash = (53 * hash) + getEouClassifier().hashCode(); } if (hasRecognitionClassifier()) { hash = (37 * hash) + RECOGNITION_CLASSIFIER_FIELD_NUMBER; hash = (53 * hash) + getRecognitionClassifier().hashCode(); } if (hasSpeechAnalysis()) { hash = (37 * hash) + SPEECH_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + getSpeechAnalysis().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions 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(yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions 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 speechkit.stt.v3.StreamingOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.StreamingOptions) yandex.cloud.api.ai.stt.v3.Stt.StreamingOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.class, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (recognitionModelBuilder_ == null) { recognitionModel_ = null; } else { recognitionModel_ = null; recognitionModelBuilder_ = null; } if (eouClassifierBuilder_ == null) { eouClassifier_ = null; } else { eouClassifier_ = null; eouClassifierBuilder_ = null; } if (recognitionClassifierBuilder_ == null) { recognitionClassifier_ = null; } else { recognitionClassifier_ = null; recognitionClassifierBuilder_ = null; } if (speechAnalysisBuilder_ == null) { speechAnalysis_ = null; } else { speechAnalysis_ = null; speechAnalysisBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingOptions_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions build() { yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions result = new yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions(this); if (recognitionModelBuilder_ == null) { result.recognitionModel_ = recognitionModel_; } else { result.recognitionModel_ = recognitionModelBuilder_.build(); } if (eouClassifierBuilder_ == null) { result.eouClassifier_ = eouClassifier_; } else { result.eouClassifier_ = eouClassifierBuilder_.build(); } if (recognitionClassifierBuilder_ == null) { result.recognitionClassifier_ = recognitionClassifier_; } else { result.recognitionClassifier_ = recognitionClassifierBuilder_.build(); } if (speechAnalysisBuilder_ == null) { result.speechAnalysis_ = speechAnalysis_; } else { result.speechAnalysis_ = speechAnalysisBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance()) return this; if (other.hasRecognitionModel()) { mergeRecognitionModel(other.getRecognitionModel()); } if (other.hasEouClassifier()) { mergeEouClassifier(other.getEouClassifier()); } if (other.hasRecognitionClassifier()) { mergeRecognitionClassifier(other.getRecognitionClassifier()); } if (other.hasSpeechAnalysis()) { mergeSpeechAnalysis(other.getSpeechAnalysis()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions recognitionModel_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder> recognitionModelBuilder_; /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; * @return Whether the recognitionModel field is set. */ public boolean hasRecognitionModel() { return recognitionModelBuilder_ != null || recognitionModel_ != null; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; * @return The recognitionModel. */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getRecognitionModel() { if (recognitionModelBuilder_ == null) { return recognitionModel_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance() : recognitionModel_; } else { return recognitionModelBuilder_.getMessage(); } } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ public Builder setRecognitionModel(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions value) { if (recognitionModelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recognitionModel_ = value; onChanged(); } else { recognitionModelBuilder_.setMessage(value); } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ public Builder setRecognitionModel( yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder builderForValue) { if (recognitionModelBuilder_ == null) { recognitionModel_ = builderForValue.build(); onChanged(); } else { recognitionModelBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ public Builder mergeRecognitionModel(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions value) { if (recognitionModelBuilder_ == null) { if (recognitionModel_ != null) { recognitionModel_ = yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.newBuilder(recognitionModel_).mergeFrom(value).buildPartial(); } else { recognitionModel_ = value; } onChanged(); } else { recognitionModelBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ public Builder clearRecognitionModel() { if (recognitionModelBuilder_ == null) { recognitionModel_ = null; onChanged(); } else { recognitionModel_ = null; recognitionModelBuilder_ = null; } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder getRecognitionModelBuilder() { onChanged(); return getRecognitionModelFieldBuilder().getBuilder(); } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder getRecognitionModelOrBuilder() { if (recognitionModelBuilder_ != null) { return recognitionModelBuilder_.getMessageOrBuilder(); } else { return recognitionModel_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance() : recognitionModel_; } } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder> getRecognitionModelFieldBuilder() { if (recognitionModelBuilder_ == null) { recognitionModelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder>( getRecognitionModel(), getParentForChildren(), isClean()); recognitionModel_ = null; } return recognitionModelBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions eouClassifier_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptionsOrBuilder> eouClassifierBuilder_; /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; * @return Whether the eouClassifier field is set. */ public boolean hasEouClassifier() { return eouClassifierBuilder_ != null || eouClassifier_ != null; } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; * @return The eouClassifier. */ public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions getEouClassifier() { if (eouClassifierBuilder_ == null) { return eouClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.getDefaultInstance() : eouClassifier_; } else { return eouClassifierBuilder_.getMessage(); } } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ public Builder setEouClassifier(yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions value) { if (eouClassifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eouClassifier_ = value; onChanged(); } else { eouClassifierBuilder_.setMessage(value); } return this; } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ public Builder setEouClassifier( yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder builderForValue) { if (eouClassifierBuilder_ == null) { eouClassifier_ = builderForValue.build(); onChanged(); } else { eouClassifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ public Builder mergeEouClassifier(yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions value) { if (eouClassifierBuilder_ == null) { if (eouClassifier_ != null) { eouClassifier_ = yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.newBuilder(eouClassifier_).mergeFrom(value).buildPartial(); } else { eouClassifier_ = value; } onChanged(); } else { eouClassifierBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ public Builder clearEouClassifier() { if (eouClassifierBuilder_ == null) { eouClassifier_ = null; onChanged(); } else { eouClassifier_ = null; eouClassifierBuilder_ = null; } return this; } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder getEouClassifierBuilder() { onChanged(); return getEouClassifierFieldBuilder().getBuilder(); } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptionsOrBuilder getEouClassifierOrBuilder() { if (eouClassifierBuilder_ != null) { return eouClassifierBuilder_.getMessageOrBuilder(); } else { return eouClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.getDefaultInstance() : eouClassifier_; } } /** *
       * Configuration for end of utterance detection model.
       * 
* * .speechkit.stt.v3.EouClassifierOptions eou_classifier = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptionsOrBuilder> getEouClassifierFieldBuilder() { if (eouClassifierBuilder_ == null) { eouClassifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouClassifierOptionsOrBuilder>( getEouClassifier(), getParentForChildren(), isClean()); eouClassifier_ = null; } return eouClassifierBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions recognitionClassifier_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder> recognitionClassifierBuilder_; /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; * @return Whether the recognitionClassifier field is set. */ public boolean hasRecognitionClassifier() { return recognitionClassifierBuilder_ != null || recognitionClassifier_ != null; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; * @return The recognitionClassifier. */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getRecognitionClassifier() { if (recognitionClassifierBuilder_ == null) { return recognitionClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance() : recognitionClassifier_; } else { return recognitionClassifierBuilder_.getMessage(); } } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ public Builder setRecognitionClassifier(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions value) { if (recognitionClassifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recognitionClassifier_ = value; onChanged(); } else { recognitionClassifierBuilder_.setMessage(value); } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ public Builder setRecognitionClassifier( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder builderForValue) { if (recognitionClassifierBuilder_ == null) { recognitionClassifier_ = builderForValue.build(); onChanged(); } else { recognitionClassifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ public Builder mergeRecognitionClassifier(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions value) { if (recognitionClassifierBuilder_ == null) { if (recognitionClassifier_ != null) { recognitionClassifier_ = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.newBuilder(recognitionClassifier_).mergeFrom(value).buildPartial(); } else { recognitionClassifier_ = value; } onChanged(); } else { recognitionClassifierBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ public Builder clearRecognitionClassifier() { if (recognitionClassifierBuilder_ == null) { recognitionClassifier_ = null; onChanged(); } else { recognitionClassifier_ = null; recognitionClassifierBuilder_ = null; } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder getRecognitionClassifierBuilder() { onChanged(); return getRecognitionClassifierFieldBuilder().getBuilder(); } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder getRecognitionClassifierOrBuilder() { if (recognitionClassifierBuilder_ != null) { return recognitionClassifierBuilder_.getMessageOrBuilder(); } else { return recognitionClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance() : recognitionClassifier_; } } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder> getRecognitionClassifierFieldBuilder() { if (recognitionClassifierBuilder_ == null) { recognitionClassifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder>( getRecognitionClassifier(), getParentForChildren(), isClean()); recognitionClassifier_ = null; } return recognitionClassifierBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions speechAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder> speechAnalysisBuilder_; /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; * @return Whether the speechAnalysis field is set. */ public boolean hasSpeechAnalysis() { return speechAnalysisBuilder_ != null || speechAnalysis_ != null; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; * @return The speechAnalysis. */ public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getSpeechAnalysis() { if (speechAnalysisBuilder_ == null) { return speechAnalysis_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance() : speechAnalysis_; } else { return speechAnalysisBuilder_.getMessage(); } } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ public Builder setSpeechAnalysis(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions value) { if (speechAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } speechAnalysis_ = value; onChanged(); } else { speechAnalysisBuilder_.setMessage(value); } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ public Builder setSpeechAnalysis( yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder builderForValue) { if (speechAnalysisBuilder_ == null) { speechAnalysis_ = builderForValue.build(); onChanged(); } else { speechAnalysisBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ public Builder mergeSpeechAnalysis(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions value) { if (speechAnalysisBuilder_ == null) { if (speechAnalysis_ != null) { speechAnalysis_ = yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.newBuilder(speechAnalysis_).mergeFrom(value).buildPartial(); } else { speechAnalysis_ = value; } onChanged(); } else { speechAnalysisBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ public Builder clearSpeechAnalysis() { if (speechAnalysisBuilder_ == null) { speechAnalysis_ = null; onChanged(); } else { speechAnalysis_ = null; speechAnalysisBuilder_ = null; } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder getSpeechAnalysisBuilder() { onChanged(); return getSpeechAnalysisFieldBuilder().getBuilder(); } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder getSpeechAnalysisOrBuilder() { if (speechAnalysisBuilder_ != null) { return speechAnalysisBuilder_.getMessageOrBuilder(); } else { return speechAnalysis_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance() : speechAnalysis_; } } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder> getSpeechAnalysisFieldBuilder() { if (speechAnalysisBuilder_ == null) { speechAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder>( getSpeechAnalysis(), getParentForChildren(), isClean()); speechAnalysis_ = null; } return speechAnalysisBuilder_; } @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:speechkit.stt.v3.StreamingOptions) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.StreamingOptions) private static final yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions(); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamingOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamingOptions(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 yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AudioChunkOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.AudioChunk) com.google.protobuf.MessageOrBuilder { /** *
     * Bytes with audio data.
     * 
* * bytes data = 1; * @return The data. */ com.google.protobuf.ByteString getData(); } /** *
   * Data chunk with audio.
   * 
* * Protobuf type {@code speechkit.stt.v3.AudioChunk} */ public static final class AudioChunk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.AudioChunk) AudioChunkOrBuilder { private static final long serialVersionUID = 0L; // Use AudioChunk.newBuilder() to construct. private AudioChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudioChunk() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudioChunk(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AudioChunk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { data_ = input.readBytes(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioChunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.class, yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** *
     * Bytes with audio data.
     * 
* * bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } 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 (!data_.isEmpty()) { output.writeBytes(1, data_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } 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 yandex.cloud.api.ai.stt.v3.Stt.AudioChunk)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.AudioChunk other = (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) obj; if (!getData() .equals(other.getData())) 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) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk 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 yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk 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 yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk 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(yandex.cloud.api.ai.stt.v3.Stt.AudioChunk 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; } /** *
     * Data chunk with audio.
     * 
* * Protobuf type {@code speechkit.stt.v3.AudioChunk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.AudioChunk) yandex.cloud.api.ai.stt.v3.Stt.AudioChunkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioChunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.class, yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioChunk_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioChunk getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioChunk build() { yandex.cloud.api.ai.stt.v3.Stt.AudioChunk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioChunk buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.AudioChunk result = new yandex.cloud.api.ai.stt.v3.Stt.AudioChunk(this); result.data_ = data_; 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 yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AudioChunk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.AudioChunk other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance()) return this; if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.AudioChunk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Bytes with audio data.
       * 
* * bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Bytes with audio data.
       * 
* * bytes data = 1; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
       * Bytes with audio data.
       * 
* * bytes data = 1; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); 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:speechkit.stt.v3.AudioChunk) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.AudioChunk) private static final yandex.cloud.api.ai.stt.v3.Stt.AudioChunk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.AudioChunk(); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioChunk getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudioChunk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AudioChunk(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 yandex.cloud.api.ai.stt.v3.Stt.AudioChunk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SilenceChunkOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.SilenceChunk) com.google.protobuf.MessageOrBuilder { /** *
     * Duration of silence chunk in ms.
     * 
* * int64 duration_ms = 1; * @return The durationMs. */ long getDurationMs(); } /** *
   * Data chunk with silence.
   * 
* * Protobuf type {@code speechkit.stt.v3.SilenceChunk} */ public static final class SilenceChunk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.SilenceChunk) SilenceChunkOrBuilder { private static final long serialVersionUID = 0L; // Use SilenceChunk.newBuilder() to construct. private SilenceChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SilenceChunk() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SilenceChunk(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SilenceChunk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { durationMs_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SilenceChunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SilenceChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.class, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder.class); } public static final int DURATION_MS_FIELD_NUMBER = 1; private long durationMs_; /** *
     * Duration of silence chunk in ms.
     * 
* * int64 duration_ms = 1; * @return The durationMs. */ @java.lang.Override public long getDurationMs() { return durationMs_; } 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 (durationMs_ != 0L) { output.writeInt64(1, durationMs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (durationMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, durationMs_); } 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 yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk other = (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) obj; if (getDurationMs() != other.getDurationMs()) 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) + DURATION_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk 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 yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk 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 yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk 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(yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk 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; } /** *
     * Data chunk with silence.
     * 
* * Protobuf type {@code speechkit.stt.v3.SilenceChunk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.SilenceChunk) yandex.cloud.api.ai.stt.v3.Stt.SilenceChunkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SilenceChunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SilenceChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.class, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); durationMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SilenceChunk_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk build() { yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk result = new yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk(this); result.durationMs_ = durationMs_; 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 yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance()) return this; if (other.getDurationMs() != 0L) { setDurationMs(other.getDurationMs()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long durationMs_ ; /** *
       * Duration of silence chunk in ms.
       * 
* * int64 duration_ms = 1; * @return The durationMs. */ @java.lang.Override public long getDurationMs() { return durationMs_; } /** *
       * Duration of silence chunk in ms.
       * 
* * int64 duration_ms = 1; * @param value The durationMs to set. * @return This builder for chaining. */ public Builder setDurationMs(long value) { durationMs_ = value; onChanged(); return this; } /** *
       * Duration of silence chunk in ms.
       * 
* * int64 duration_ms = 1; * @return This builder for chaining. */ public Builder clearDurationMs() { durationMs_ = 0L; 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:speechkit.stt.v3.SilenceChunk) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.SilenceChunk) private static final yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk(); } public static yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SilenceChunk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SilenceChunk(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 yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EouOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.Eou) com.google.protobuf.MessageOrBuilder { } /** *
   * Force EOU
   * 
* * Protobuf type {@code speechkit.stt.v3.Eou} */ public static final class Eou extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.Eou) EouOrBuilder { private static final long serialVersionUID = 0L; // Use Eou.newBuilder() to construct. private Eou(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Eou() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Eou(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Eou( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Eou_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Eou_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.Eou.class, yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 yandex.cloud.api.ai.stt.v3.Stt.Eou)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.Eou other = (yandex.cloud.api.ai.stt.v3.Stt.Eou) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou 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 yandex.cloud.api.ai.stt.v3.Stt.Eou parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou 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 yandex.cloud.api.ai.stt.v3.Stt.Eou parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou 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(yandex.cloud.api.ai.stt.v3.Stt.Eou 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; } /** *
     * Force EOU
     * 
* * Protobuf type {@code speechkit.stt.v3.Eou} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.Eou) yandex.cloud.api.ai.stt.v3.Stt.EouOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Eou_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Eou_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.Eou.class, yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.Eou.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Eou_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Eou getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Eou build() { yandex.cloud.api.ai.stt.v3.Stt.Eou result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Eou buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.Eou result = new yandex.cloud.api.ai.stt.v3.Stt.Eou(this); 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 yandex.cloud.api.ai.stt.v3.Stt.Eou) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.Eou)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.Eou other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance()) return this; 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 { yandex.cloud.api.ai.stt.v3.Stt.Eou parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.Eou) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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:speechkit.stt.v3.Eou) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.Eou) private static final yandex.cloud.api.ai.stt.v3.Stt.Eou DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.Eou(); } public static yandex.cloud.api.ai.stt.v3.Stt.Eou getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Eou parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Eou(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 yandex.cloud.api.ai.stt.v3.Stt.Eou getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.StreamingRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Session options. Should be the first message from user.
     * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; * @return Whether the sessionOptions field is set. */ boolean hasSessionOptions(); /** *
     * Session options. Should be the first message from user.
     * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; * @return The sessionOptions. */ yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions getSessionOptions(); /** *
     * Session options. Should be the first message from user.
     * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ yandex.cloud.api.ai.stt.v3.Stt.StreamingOptionsOrBuilder getSessionOptionsOrBuilder(); /** *
     * Chunk with audio data.
     * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; * @return Whether the chunk field is set. */ boolean hasChunk(); /** *
     * Chunk with audio data.
     * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; * @return The chunk. */ yandex.cloud.api.ai.stt.v3.Stt.AudioChunk getChunk(); /** *
     * Chunk with audio data.
     * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ yandex.cloud.api.ai.stt.v3.Stt.AudioChunkOrBuilder getChunkOrBuilder(); /** *
     * Chunk with silence.
     * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; * @return Whether the silenceChunk field is set. */ boolean hasSilenceChunk(); /** *
     * Chunk with silence.
     * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; * @return The silenceChunk. */ yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk getSilenceChunk(); /** *
     * Chunk with silence.
     * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ yandex.cloud.api.ai.stt.v3.Stt.SilenceChunkOrBuilder getSilenceChunkOrBuilder(); /** *
     * Request to end current utterance. Works only with external EOU detector.
     * 
* * .speechkit.stt.v3.Eou eou = 4; * @return Whether the eou field is set. */ boolean hasEou(); /** *
     * Request to end current utterance. Works only with external EOU detector.
     * 
* * .speechkit.stt.v3.Eou eou = 4; * @return The eou. */ yandex.cloud.api.ai.stt.v3.Stt.Eou getEou(); /** *
     * Request to end current utterance. Works only with external EOU detector.
     * 
* * .speechkit.stt.v3.Eou eou = 4; */ yandex.cloud.api.ai.stt.v3.Stt.EouOrBuilder getEouOrBuilder(); public yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.EventCase getEventCase(); } /** *
   * Streaming audio request
   * Events are control messages from user.
   * First message should be session options.
   * The next messages are audio data chunks or control messages.
   * 
* * Protobuf type {@code speechkit.stt.v3.StreamingRequest} */ public static final class StreamingRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.StreamingRequest) StreamingRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StreamingRequest.newBuilder() to construct. private StreamingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamingRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamingRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder subBuilder = null; if (eventCase_ == 1) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 1; break; } case 18: { yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder subBuilder = null; if (eventCase_ == 2) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 2; break; } case 26: { yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder subBuilder = null; if (eventCase_ == 3) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 3; break; } case 34: { yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder subBuilder = null; if (eventCase_ == 4) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.Eou) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.Eou.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.Eou) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 4; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.class, yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.Builder.class); } private int eventCase_ = 0; private java.lang.Object event_; public enum EventCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SESSION_OPTIONS(1), CHUNK(2), SILENCE_CHUNK(3), EOU(4), EVENT_NOT_SET(0); private final int value; private EventCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventCase valueOf(int value) { return forNumber(value); } public static EventCase forNumber(int value) { switch (value) { case 1: return SESSION_OPTIONS; case 2: return CHUNK; case 3: return SILENCE_CHUNK; case 4: return EOU; case 0: return EVENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public static final int SESSION_OPTIONS_FIELD_NUMBER = 1; /** *
     * Session options. Should be the first message from user.
     * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; * @return Whether the sessionOptions field is set. */ @java.lang.Override public boolean hasSessionOptions() { return eventCase_ == 1; } /** *
     * Session options. Should be the first message from user.
     * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; * @return The sessionOptions. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions getSessionOptions() { if (eventCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance(); } /** *
     * Session options. Should be the first message from user.
     * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptionsOrBuilder getSessionOptionsOrBuilder() { if (eventCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance(); } public static final int CHUNK_FIELD_NUMBER = 2; /** *
     * Chunk with audio data.
     * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; * @return Whether the chunk field is set. */ @java.lang.Override public boolean hasChunk() { return eventCase_ == 2; } /** *
     * Chunk with audio data.
     * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; * @return The chunk. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioChunk getChunk() { if (eventCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance(); } /** *
     * Chunk with audio data.
     * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioChunkOrBuilder getChunkOrBuilder() { if (eventCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance(); } public static final int SILENCE_CHUNK_FIELD_NUMBER = 3; /** *
     * Chunk with silence.
     * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; * @return Whether the silenceChunk field is set. */ @java.lang.Override public boolean hasSilenceChunk() { return eventCase_ == 3; } /** *
     * Chunk with silence.
     * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; * @return The silenceChunk. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk getSilenceChunk() { if (eventCase_ == 3) { return (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance(); } /** *
     * Chunk with silence.
     * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunkOrBuilder getSilenceChunkOrBuilder() { if (eventCase_ == 3) { return (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance(); } public static final int EOU_FIELD_NUMBER = 4; /** *
     * Request to end current utterance. Works only with external EOU detector.
     * 
* * .speechkit.stt.v3.Eou eou = 4; * @return Whether the eou field is set. */ @java.lang.Override public boolean hasEou() { return eventCase_ == 4; } /** *
     * Request to end current utterance. Works only with external EOU detector.
     * 
* * .speechkit.stt.v3.Eou eou = 4; * @return The eou. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Eou getEou() { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.Eou) event_; } return yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance(); } /** *
     * Request to end current utterance. Works only with external EOU detector.
     * 
* * .speechkit.stt.v3.Eou eou = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouOrBuilder getEouOrBuilder() { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.Eou) event_; } return yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance(); } 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 (eventCase_ == 1) { output.writeMessage(1, (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_); } if (eventCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_); } if (eventCase_ == 3) { output.writeMessage(3, (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_); } if (eventCase_ == 4) { output.writeMessage(4, (yandex.cloud.api.ai.stt.v3.Stt.Eou) event_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_); } if (eventCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_); } if (eventCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_); } if (eventCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (yandex.cloud.api.ai.stt.v3.Stt.Eou) event_); } 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest other = (yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest) obj; if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 1: if (!getSessionOptions() .equals(other.getSessionOptions())) return false; break; case 2: if (!getChunk() .equals(other.getChunk())) return false; break; case 3: if (!getSilenceChunk() .equals(other.getSilenceChunk())) return false; break; case 4: if (!getEou() .equals(other.getEou())) return false; break; case 0: default: } 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(); switch (eventCase_) { case 1: hash = (37 * hash) + SESSION_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getSessionOptions().hashCode(); break; case 2: hash = (37 * hash) + CHUNK_FIELD_NUMBER; hash = (53 * hash) + getChunk().hashCode(); break; case 3: hash = (37 * hash) + SILENCE_CHUNK_FIELD_NUMBER; hash = (53 * hash) + getSilenceChunk().hashCode(); break; case 4: hash = (37 * hash) + EOU_FIELD_NUMBER; hash = (53 * hash) + getEou().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest 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(yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest 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; } /** *
     * Streaming audio request
     * Events are control messages from user.
     * First message should be session options.
     * The next messages are audio data chunks or control messages.
     * 
* * Protobuf type {@code speechkit.stt.v3.StreamingRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.StreamingRequest) yandex.cloud.api.ai.stt.v3.Stt.StreamingRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.class, yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); eventCase_ = 0; event_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingRequest_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest build() { yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest result = new yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest(this); if (eventCase_ == 1) { if (sessionOptionsBuilder_ == null) { result.event_ = event_; } else { result.event_ = sessionOptionsBuilder_.build(); } } if (eventCase_ == 2) { if (chunkBuilder_ == null) { result.event_ = event_; } else { result.event_ = chunkBuilder_.build(); } } if (eventCase_ == 3) { if (silenceChunkBuilder_ == null) { result.event_ = event_; } else { result.event_ = silenceChunkBuilder_.build(); } } if (eventCase_ == 4) { if (eouBuilder_ == null) { result.event_ = event_; } else { result.event_ = eouBuilder_.build(); } } result.eventCase_ = eventCase_; 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest.getDefaultInstance()) return this; switch (other.getEventCase()) { case SESSION_OPTIONS: { mergeSessionOptions(other.getSessionOptions()); break; } case CHUNK: { mergeChunk(other.getChunk()); break; } case SILENCE_CHUNK: { mergeSilenceChunk(other.getSilenceChunk()); break; } case EOU: { mergeEou(other.getEou()); break; } case EVENT_NOT_SET: { break; } } 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 { yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int eventCase_ = 0; private java.lang.Object event_; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public Builder clearEvent() { eventCase_ = 0; event_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptionsOrBuilder> sessionOptionsBuilder_; /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; * @return Whether the sessionOptions field is set. */ @java.lang.Override public boolean hasSessionOptions() { return eventCase_ == 1; } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; * @return The sessionOptions. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions getSessionOptions() { if (sessionOptionsBuilder_ == null) { if (eventCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance(); } else { if (eventCase_ == 1) { return sessionOptionsBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance(); } } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ public Builder setSessionOptions(yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions value) { if (sessionOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { sessionOptionsBuilder_.setMessage(value); } eventCase_ = 1; return this; } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ public Builder setSessionOptions( yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder builderForValue) { if (sessionOptionsBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { sessionOptionsBuilder_.setMessage(builderForValue.build()); } eventCase_ = 1; return this; } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ public Builder mergeSessionOptions(yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions value) { if (sessionOptionsBuilder_ == null) { if (eventCase_ == 1 && event_ != yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 1) { sessionOptionsBuilder_.mergeFrom(value); } sessionOptionsBuilder_.setMessage(value); } eventCase_ = 1; return this; } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ public Builder clearSessionOptions() { if (sessionOptionsBuilder_ == null) { if (eventCase_ == 1) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 1) { eventCase_ = 0; event_ = null; } sessionOptionsBuilder_.clear(); } return this; } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder getSessionOptionsBuilder() { return getSessionOptionsFieldBuilder().getBuilder(); } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingOptionsOrBuilder getSessionOptionsOrBuilder() { if ((eventCase_ == 1) && (sessionOptionsBuilder_ != null)) { return sessionOptionsBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 1) { return (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance(); } } /** *
       * Session options. Should be the first message from user.
       * 
* * .speechkit.stt.v3.StreamingOptions session_options = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptionsOrBuilder> getSessionOptionsFieldBuilder() { if (sessionOptionsBuilder_ == null) { if (!(eventCase_ == 1)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.getDefaultInstance(); } sessionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.StreamingOptionsOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.StreamingOptions) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 1; onChanged();; return sessionOptionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioChunk, yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioChunkOrBuilder> chunkBuilder_; /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; * @return Whether the chunk field is set. */ @java.lang.Override public boolean hasChunk() { return eventCase_ == 2; } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; * @return The chunk. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioChunk getChunk() { if (chunkBuilder_ == null) { if (eventCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance(); } else { if (eventCase_ == 2) { return chunkBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance(); } } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ public Builder setChunk(yandex.cloud.api.ai.stt.v3.Stt.AudioChunk value) { if (chunkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { chunkBuilder_.setMessage(value); } eventCase_ = 2; return this; } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ public Builder setChunk( yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder builderForValue) { if (chunkBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { chunkBuilder_.setMessage(builderForValue.build()); } eventCase_ = 2; return this; } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ public Builder mergeChunk(yandex.cloud.api.ai.stt.v3.Stt.AudioChunk value) { if (chunkBuilder_ == null) { if (eventCase_ == 2 && event_ != yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 2) { chunkBuilder_.mergeFrom(value); } chunkBuilder_.setMessage(value); } eventCase_ = 2; return this; } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ public Builder clearChunk() { if (chunkBuilder_ == null) { if (eventCase_ == 2) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 2) { eventCase_ = 0; event_ = null; } chunkBuilder_.clear(); } return this; } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder getChunkBuilder() { return getChunkFieldBuilder().getBuilder(); } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioChunkOrBuilder getChunkOrBuilder() { if ((eventCase_ == 2) && (chunkBuilder_ != null)) { return chunkBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance(); } } /** *
       * Chunk with audio data.
       * 
* * .speechkit.stt.v3.AudioChunk chunk = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioChunk, yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioChunkOrBuilder> getChunkFieldBuilder() { if (chunkBuilder_ == null) { if (!(eventCase_ == 2)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.getDefaultInstance(); } chunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioChunk, yandex.cloud.api.ai.stt.v3.Stt.AudioChunk.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioChunkOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.AudioChunk) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 2; onChanged();; return chunkBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunkOrBuilder> silenceChunkBuilder_; /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; * @return Whether the silenceChunk field is set. */ @java.lang.Override public boolean hasSilenceChunk() { return eventCase_ == 3; } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; * @return The silenceChunk. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk getSilenceChunk() { if (silenceChunkBuilder_ == null) { if (eventCase_ == 3) { return (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance(); } else { if (eventCase_ == 3) { return silenceChunkBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance(); } } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ public Builder setSilenceChunk(yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk value) { if (silenceChunkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { silenceChunkBuilder_.setMessage(value); } eventCase_ = 3; return this; } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ public Builder setSilenceChunk( yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder builderForValue) { if (silenceChunkBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { silenceChunkBuilder_.setMessage(builderForValue.build()); } eventCase_ = 3; return this; } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ public Builder mergeSilenceChunk(yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk value) { if (silenceChunkBuilder_ == null) { if (eventCase_ == 3 && event_ != yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 3) { silenceChunkBuilder_.mergeFrom(value); } silenceChunkBuilder_.setMessage(value); } eventCase_ = 3; return this; } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ public Builder clearSilenceChunk() { if (silenceChunkBuilder_ == null) { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; } silenceChunkBuilder_.clear(); } return this; } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder getSilenceChunkBuilder() { return getSilenceChunkFieldBuilder().getBuilder(); } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SilenceChunkOrBuilder getSilenceChunkOrBuilder() { if ((eventCase_ == 3) && (silenceChunkBuilder_ != null)) { return silenceChunkBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 3) { return (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance(); } } /** *
       * Chunk with silence.
       * 
* * .speechkit.stt.v3.SilenceChunk silence_chunk = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunkOrBuilder> getSilenceChunkFieldBuilder() { if (silenceChunkBuilder_ == null) { if (!(eventCase_ == 3)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.getDefaultInstance(); } silenceChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk.Builder, yandex.cloud.api.ai.stt.v3.Stt.SilenceChunkOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.SilenceChunk) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 3; onChanged();; return silenceChunkBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Eou, yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouOrBuilder> eouBuilder_; /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; * @return Whether the eou field is set. */ @java.lang.Override public boolean hasEou() { return eventCase_ == 4; } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; * @return The eou. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Eou getEou() { if (eouBuilder_ == null) { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.Eou) event_; } return yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance(); } else { if (eventCase_ == 4) { return eouBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance(); } } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; */ public Builder setEou(yandex.cloud.api.ai.stt.v3.Stt.Eou value) { if (eouBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { eouBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; */ public Builder setEou( yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder builderForValue) { if (eouBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { eouBuilder_.setMessage(builderForValue.build()); } eventCase_ = 4; return this; } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; */ public Builder mergeEou(yandex.cloud.api.ai.stt.v3.Stt.Eou value) { if (eouBuilder_ == null) { if (eventCase_ == 4 && event_ != yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.Eou.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.Eou) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 4) { eouBuilder_.mergeFrom(value); } eouBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; */ public Builder clearEou() { if (eouBuilder_ == null) { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; } eouBuilder_.clear(); } return this; } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder getEouBuilder() { return getEouFieldBuilder().getBuilder(); } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouOrBuilder getEouOrBuilder() { if ((eventCase_ == 4) && (eouBuilder_ != null)) { return eouBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.Eou) event_; } return yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance(); } } /** *
       * Request to end current utterance. Works only with external EOU detector.
       * 
* * .speechkit.stt.v3.Eou eou = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Eou, yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouOrBuilder> getEouFieldBuilder() { if (eouBuilder_ == null) { if (!(eventCase_ == 4)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.Eou.getDefaultInstance(); } eouBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Eou, yandex.cloud.api.ai.stt.v3.Stt.Eou.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.Eou) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 4; onChanged();; return eouBuilder_; } @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:speechkit.stt.v3.StreamingRequest) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.StreamingRequest) private static final yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest(); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamingRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamingRequest(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 yandex.cloud.api.ai.stt.v3.Stt.StreamingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecognizeFileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RecognizeFileRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Bytes with data
     * 
* * bytes content = 1; * @return Whether the content field is set. */ boolean hasContent(); /** *
     * Bytes with data
     * 
* * bytes content = 1; * @return The content. */ com.google.protobuf.ByteString getContent(); /** *
     * S3 data url
     * 
* * string uri = 2; * @return Whether the uri field is set. */ boolean hasUri(); /** *
     * S3 data url
     * 
* * string uri = 2; * @return The uri. */ java.lang.String getUri(); /** *
     * S3 data url
     * 
* * string uri = 2; * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; * @return Whether the recognitionModel field is set. */ boolean hasRecognitionModel(); /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; * @return The recognitionModel. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getRecognitionModel(); /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder getRecognitionModelOrBuilder(); /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; * @return Whether the recognitionClassifier field is set. */ boolean hasRecognitionClassifier(); /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; * @return The recognitionClassifier. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getRecognitionClassifier(); /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder getRecognitionClassifierOrBuilder(); /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; * @return Whether the speechAnalysis field is set. */ boolean hasSpeechAnalysis(); /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; * @return The speechAnalysis. */ yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getSpeechAnalysis(); /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder getSpeechAnalysisOrBuilder(); public yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.AudioSourceCase getAudioSourceCase(); } /** * Protobuf type {@code speechkit.stt.v3.RecognizeFileRequest} */ public static final class RecognizeFileRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RecognizeFileRequest) RecognizeFileRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RecognizeFileRequest.newBuilder() to construct. private RecognizeFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecognizeFileRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecognizeFileRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecognizeFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { audioSource_ = input.readBytes(); audioSourceCase_ = 1; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); audioSourceCase_ = 2; audioSource_ = s; break; } case 26: { yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder subBuilder = null; if (recognitionModel_ != null) { subBuilder = recognitionModel_.toBuilder(); } recognitionModel_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(recognitionModel_); recognitionModel_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder subBuilder = null; if (recognitionClassifier_ != null) { subBuilder = recognitionClassifier_.toBuilder(); } recognitionClassifier_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(recognitionClassifier_); recognitionClassifier_ = subBuilder.buildPartial(); } break; } case 42: { yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder subBuilder = null; if (speechAnalysis_ != null) { subBuilder = speechAnalysis_.toBuilder(); } speechAnalysis_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(speechAnalysis_); speechAnalysis_ = subBuilder.buildPartial(); } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognizeFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognizeFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.class, yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.Builder.class); } private int audioSourceCase_ = 0; private java.lang.Object audioSource_; public enum AudioSourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), URI(2), AUDIOSOURCE_NOT_SET(0); private final int value; private AudioSourceCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AudioSourceCase valueOf(int value) { return forNumber(value); } public static AudioSourceCase forNumber(int value) { switch (value) { case 1: return CONTENT; case 2: return URI; case 0: return AUDIOSOURCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AudioSourceCase getAudioSourceCase() { return AudioSourceCase.forNumber( audioSourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** *
     * Bytes with data
     * 
* * bytes content = 1; * @return Whether the content field is set. */ @java.lang.Override public boolean hasContent() { return audioSourceCase_ == 1; } /** *
     * Bytes with data
     * 
* * bytes content = 1; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { if (audioSourceCase_ == 1) { return (com.google.protobuf.ByteString) audioSource_; } return com.google.protobuf.ByteString.EMPTY; } public static final int URI_FIELD_NUMBER = 2; /** *
     * S3 data url
     * 
* * string uri = 2; * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 2; } /** *
     * S3 data url
     * 
* * string uri = 2; * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } 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(); if (audioSourceCase_ == 2) { audioSource_ = s; } return s; } } /** *
     * S3 data url
     * 
* * string uri = 2; * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RECOGNITION_MODEL_FIELD_NUMBER = 3; private yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions recognitionModel_; /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; * @return Whether the recognitionModel field is set. */ @java.lang.Override public boolean hasRecognitionModel() { return recognitionModel_ != null; } /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; * @return The recognitionModel. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getRecognitionModel() { return recognitionModel_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance() : recognitionModel_; } /** *
     * Configuration for speech recognition model.
     * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder getRecognitionModelOrBuilder() { return getRecognitionModel(); } public static final int RECOGNITION_CLASSIFIER_FIELD_NUMBER = 4; private yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions recognitionClassifier_; /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; * @return Whether the recognitionClassifier field is set. */ @java.lang.Override public boolean hasRecognitionClassifier() { return recognitionClassifier_ != null; } /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; * @return The recognitionClassifier. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getRecognitionClassifier() { return recognitionClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance() : recognitionClassifier_; } /** *
     * Configuration for classifiers over speech recognition.
     * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder getRecognitionClassifierOrBuilder() { return getRecognitionClassifier(); } public static final int SPEECH_ANALYSIS_FIELD_NUMBER = 5; private yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions speechAnalysis_; /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; * @return Whether the speechAnalysis field is set. */ @java.lang.Override public boolean hasSpeechAnalysis() { return speechAnalysis_ != null; } /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; * @return The speechAnalysis. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getSpeechAnalysis() { return speechAnalysis_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance() : speechAnalysis_; } /** *
     * Configuration for speech analysis over speech recognition.
     * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder getSpeechAnalysisOrBuilder() { return getSpeechAnalysis(); } 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 (audioSourceCase_ == 1) { output.writeBytes( 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audioSource_); } if (recognitionModel_ != null) { output.writeMessage(3, getRecognitionModel()); } if (recognitionClassifier_ != null) { output.writeMessage(4, getRecognitionClassifier()); } if (speechAnalysis_ != null) { output.writeMessage(5, getSpeechAnalysis()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (audioSourceCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audioSource_); } if (recognitionModel_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecognitionModel()); } if (recognitionClassifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRecognitionClassifier()); } if (speechAnalysis_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSpeechAnalysis()); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest other = (yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest) obj; if (hasRecognitionModel() != other.hasRecognitionModel()) return false; if (hasRecognitionModel()) { if (!getRecognitionModel() .equals(other.getRecognitionModel())) return false; } if (hasRecognitionClassifier() != other.hasRecognitionClassifier()) return false; if (hasRecognitionClassifier()) { if (!getRecognitionClassifier() .equals(other.getRecognitionClassifier())) return false; } if (hasSpeechAnalysis() != other.hasSpeechAnalysis()) return false; if (hasSpeechAnalysis()) { if (!getSpeechAnalysis() .equals(other.getSpeechAnalysis())) return false; } if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 1: if (!getContent() .equals(other.getContent())) return false; break; case 2: if (!getUri() .equals(other.getUri())) return false; break; case 0: default: } 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(); if (hasRecognitionModel()) { hash = (37 * hash) + RECOGNITION_MODEL_FIELD_NUMBER; hash = (53 * hash) + getRecognitionModel().hashCode(); } if (hasRecognitionClassifier()) { hash = (37 * hash) + RECOGNITION_CLASSIFIER_FIELD_NUMBER; hash = (53 * hash) + getRecognitionClassifier().hashCode(); } if (hasSpeechAnalysis()) { hash = (37 * hash) + SPEECH_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + getSpeechAnalysis().hashCode(); } switch (audioSourceCase_) { case 1: hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); break; case 2: hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest 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 yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest 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 yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest 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(yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest 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 speechkit.stt.v3.RecognizeFileRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RecognizeFileRequest) yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognizeFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognizeFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.class, yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (recognitionModelBuilder_ == null) { recognitionModel_ = null; } else { recognitionModel_ = null; recognitionModelBuilder_ = null; } if (recognitionClassifierBuilder_ == null) { recognitionClassifier_ = null; } else { recognitionClassifier_ = null; recognitionClassifierBuilder_ = null; } if (speechAnalysisBuilder_ == null) { speechAnalysis_ = null; } else { speechAnalysis_ = null; speechAnalysisBuilder_ = null; } audioSourceCase_ = 0; audioSource_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognizeFileRequest_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest build() { yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest result = new yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest(this); if (audioSourceCase_ == 1) { result.audioSource_ = audioSource_; } if (audioSourceCase_ == 2) { result.audioSource_ = audioSource_; } if (recognitionModelBuilder_ == null) { result.recognitionModel_ = recognitionModel_; } else { result.recognitionModel_ = recognitionModelBuilder_.build(); } if (recognitionClassifierBuilder_ == null) { result.recognitionClassifier_ = recognitionClassifier_; } else { result.recognitionClassifier_ = recognitionClassifierBuilder_.build(); } if (speechAnalysisBuilder_ == null) { result.speechAnalysis_ = speechAnalysis_; } else { result.speechAnalysis_ = speechAnalysisBuilder_.build(); } result.audioSourceCase_ = audioSourceCase_; 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 yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest.getDefaultInstance()) return this; if (other.hasRecognitionModel()) { mergeRecognitionModel(other.getRecognitionModel()); } if (other.hasRecognitionClassifier()) { mergeRecognitionClassifier(other.getRecognitionClassifier()); } if (other.hasSpeechAnalysis()) { mergeSpeechAnalysis(other.getSpeechAnalysis()); } switch (other.getAudioSourceCase()) { case CONTENT: { setContent(other.getContent()); break; } case URI: { audioSourceCase_ = 2; audioSource_ = other.audioSource_; onChanged(); break; } case AUDIOSOURCE_NOT_SET: { break; } } 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 { yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int audioSourceCase_ = 0; private java.lang.Object audioSource_; public AudioSourceCase getAudioSourceCase() { return AudioSourceCase.forNumber( audioSourceCase_); } public Builder clearAudioSource() { audioSourceCase_ = 0; audioSource_ = null; onChanged(); return this; } /** *
       * Bytes with data
       * 
* * bytes content = 1; * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** *
       * Bytes with data
       * 
* * bytes content = 1; * @return The content. */ public com.google.protobuf.ByteString getContent() { if (audioSourceCase_ == 1) { return (com.google.protobuf.ByteString) audioSource_; } return com.google.protobuf.ByteString.EMPTY; } /** *
       * Bytes with data
       * 
* * bytes content = 1; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** *
       * Bytes with data
       * 
* * bytes content = 1; * @return This builder for chaining. */ public Builder clearContent() { if (audioSourceCase_ == 1) { audioSourceCase_ = 0; audioSource_ = null; onChanged(); } return this; } /** *
       * S3 data url
       * 
* * string uri = 2; * @return Whether the uri field is set. */ @java.lang.Override public boolean hasUri() { return audioSourceCase_ == 2; } /** *
       * S3 data url
       * 
* * string uri = 2; * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * S3 data url
       * 
* * string uri = 2; * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * S3 data url
       * 
* * string uri = 2; * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** *
       * S3 data url
       * 
* * string uri = 2; * @return This builder for chaining. */ public Builder clearUri() { if (audioSourceCase_ == 2) { audioSourceCase_ = 0; audioSource_ = null; onChanged(); } return this; } /** *
       * S3 data url
       * 
* * string uri = 2; * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions recognitionModel_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder> recognitionModelBuilder_; /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; * @return Whether the recognitionModel field is set. */ public boolean hasRecognitionModel() { return recognitionModelBuilder_ != null || recognitionModel_ != null; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; * @return The recognitionModel. */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions getRecognitionModel() { if (recognitionModelBuilder_ == null) { return recognitionModel_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance() : recognitionModel_; } else { return recognitionModelBuilder_.getMessage(); } } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ public Builder setRecognitionModel(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions value) { if (recognitionModelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recognitionModel_ = value; onChanged(); } else { recognitionModelBuilder_.setMessage(value); } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ public Builder setRecognitionModel( yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder builderForValue) { if (recognitionModelBuilder_ == null) { recognitionModel_ = builderForValue.build(); onChanged(); } else { recognitionModelBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ public Builder mergeRecognitionModel(yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions value) { if (recognitionModelBuilder_ == null) { if (recognitionModel_ != null) { recognitionModel_ = yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.newBuilder(recognitionModel_).mergeFrom(value).buildPartial(); } else { recognitionModel_ = value; } onChanged(); } else { recognitionModelBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ public Builder clearRecognitionModel() { if (recognitionModelBuilder_ == null) { recognitionModel_ = null; onChanged(); } else { recognitionModel_ = null; recognitionModelBuilder_ = null; } return this; } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder getRecognitionModelBuilder() { onChanged(); return getRecognitionModelFieldBuilder().getBuilder(); } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder getRecognitionModelOrBuilder() { if (recognitionModelBuilder_ != null) { return recognitionModelBuilder_.getMessageOrBuilder(); } else { return recognitionModel_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.getDefaultInstance() : recognitionModel_; } } /** *
       * Configuration for speech recognition model.
       * 
* * .speechkit.stt.v3.RecognitionModelOptions recognition_model = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder> getRecognitionModelFieldBuilder() { if (recognitionModelBuilder_ == null) { recognitionModelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionModelOptionsOrBuilder>( getRecognitionModel(), getParentForChildren(), isClean()); recognitionModel_ = null; } return recognitionModelBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions recognitionClassifier_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder> recognitionClassifierBuilder_; /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; * @return Whether the recognitionClassifier field is set. */ public boolean hasRecognitionClassifier() { return recognitionClassifierBuilder_ != null || recognitionClassifier_ != null; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; * @return The recognitionClassifier. */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions getRecognitionClassifier() { if (recognitionClassifierBuilder_ == null) { return recognitionClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance() : recognitionClassifier_; } else { return recognitionClassifierBuilder_.getMessage(); } } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ public Builder setRecognitionClassifier(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions value) { if (recognitionClassifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recognitionClassifier_ = value; onChanged(); } else { recognitionClassifierBuilder_.setMessage(value); } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ public Builder setRecognitionClassifier( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder builderForValue) { if (recognitionClassifierBuilder_ == null) { recognitionClassifier_ = builderForValue.build(); onChanged(); } else { recognitionClassifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ public Builder mergeRecognitionClassifier(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions value) { if (recognitionClassifierBuilder_ == null) { if (recognitionClassifier_ != null) { recognitionClassifier_ = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.newBuilder(recognitionClassifier_).mergeFrom(value).buildPartial(); } else { recognitionClassifier_ = value; } onChanged(); } else { recognitionClassifierBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ public Builder clearRecognitionClassifier() { if (recognitionClassifierBuilder_ == null) { recognitionClassifier_ = null; onChanged(); } else { recognitionClassifier_ = null; recognitionClassifierBuilder_ = null; } return this; } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder getRecognitionClassifierBuilder() { onChanged(); return getRecognitionClassifierFieldBuilder().getBuilder(); } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder getRecognitionClassifierOrBuilder() { if (recognitionClassifierBuilder_ != null) { return recognitionClassifierBuilder_.getMessageOrBuilder(); } else { return recognitionClassifier_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.getDefaultInstance() : recognitionClassifier_; } } /** *
       * Configuration for classifiers over speech recognition.
       * 
* * .speechkit.stt.v3.RecognitionClassifierOptions recognition_classifier = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder> getRecognitionClassifierFieldBuilder() { if (recognitionClassifierBuilder_ == null) { recognitionClassifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierOptionsOrBuilder>( getRecognitionClassifier(), getParentForChildren(), isClean()); recognitionClassifier_ = null; } return recognitionClassifierBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions speechAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder> speechAnalysisBuilder_; /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; * @return Whether the speechAnalysis field is set. */ public boolean hasSpeechAnalysis() { return speechAnalysisBuilder_ != null || speechAnalysis_ != null; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; * @return The speechAnalysis. */ public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions getSpeechAnalysis() { if (speechAnalysisBuilder_ == null) { return speechAnalysis_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance() : speechAnalysis_; } else { return speechAnalysisBuilder_.getMessage(); } } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ public Builder setSpeechAnalysis(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions value) { if (speechAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } speechAnalysis_ = value; onChanged(); } else { speechAnalysisBuilder_.setMessage(value); } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ public Builder setSpeechAnalysis( yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder builderForValue) { if (speechAnalysisBuilder_ == null) { speechAnalysis_ = builderForValue.build(); onChanged(); } else { speechAnalysisBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ public Builder mergeSpeechAnalysis(yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions value) { if (speechAnalysisBuilder_ == null) { if (speechAnalysis_ != null) { speechAnalysis_ = yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.newBuilder(speechAnalysis_).mergeFrom(value).buildPartial(); } else { speechAnalysis_ = value; } onChanged(); } else { speechAnalysisBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ public Builder clearSpeechAnalysis() { if (speechAnalysisBuilder_ == null) { speechAnalysis_ = null; onChanged(); } else { speechAnalysis_ = null; speechAnalysisBuilder_ = null; } return this; } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder getSpeechAnalysisBuilder() { onChanged(); return getSpeechAnalysisFieldBuilder().getBuilder(); } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder getSpeechAnalysisOrBuilder() { if (speechAnalysisBuilder_ != null) { return speechAnalysisBuilder_.getMessageOrBuilder(); } else { return speechAnalysis_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.getDefaultInstance() : speechAnalysis_; } } /** *
       * Configuration for speech analysis over speech recognition.
       * 
* * .speechkit.stt.v3.SpeechAnalysisOptions speech_analysis = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder> getSpeechAnalysisFieldBuilder() { if (speechAnalysisBuilder_ == null) { speechAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptions.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeechAnalysisOptionsOrBuilder>( getSpeechAnalysis(), getParentForChildren(), isClean()); speechAnalysis_ = null; } return speechAnalysisBuilder_; } @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:speechkit.stt.v3.RecognizeFileRequest) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RecognizeFileRequest) private static final yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest(); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecognizeFileRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecognizeFileRequest(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 yandex.cloud.api.ai.stt.v3.Stt.RecognizeFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WordOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.Word) com.google.protobuf.MessageOrBuilder { /** *
     * Word text.
     * 
* * string text = 1; * @return The text. */ java.lang.String getText(); /** *
     * Word text.
     * 
* * string text = 1; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** *
     * Estimation of word start time in ms.
     * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ long getStartTimeMs(); /** *
     * Estimation of word end time in ms.
     * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ long getEndTimeMs(); } /** *
   * Recognized word.
   * 
* * Protobuf type {@code speechkit.stt.v3.Word} */ public static final class Word extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.Word) WordOrBuilder { private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Word() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 16: { startTimeMs_ = input.readInt64(); break; } case 24: { endTimeMs_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.Word.class, yandex.cloud.api.ai.stt.v3.Stt.Word.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object text_; /** *
     * Word 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; } } /** *
     * Word text.
     * 
* * 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 START_TIME_MS_FIELD_NUMBER = 2; private long startTimeMs_; /** *
     * Estimation of word start time in ms.
     * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } public static final int END_TIME_MS_FIELD_NUMBER = 3; private long endTimeMs_; /** *
     * Estimation of word end time in ms.
     * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } 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_); } if (startTimeMs_ != 0L) { output.writeInt64(2, startTimeMs_); } if (endTimeMs_ != 0L) { output.writeInt64(3, endTimeMs_); } 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_); } if (startTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startTimeMs_); } if (endTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, endTimeMs_); } 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 yandex.cloud.api.ai.stt.v3.Stt.Word)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.Word other = (yandex.cloud.api.ai.stt.v3.Stt.Word) obj; if (!getText() .equals(other.getText())) return false; if (getStartTimeMs() != other.getStartTimeMs()) return false; if (getEndTimeMs() != other.getEndTimeMs()) 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(); hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimeMs()); hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTimeMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Word 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 yandex.cloud.api.ai.stt.v3.Stt.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Word 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 yandex.cloud.api.ai.stt.v3.Stt.Word parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Word 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(yandex.cloud.api.ai.stt.v3.Stt.Word 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; } /** *
     * Recognized word.
     * 
* * Protobuf type {@code speechkit.stt.v3.Word} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.Word) yandex.cloud.api.ai.stt.v3.Stt.WordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.Word.class, yandex.cloud.api.ai.stt.v3.Stt.Word.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.Word.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); text_ = ""; startTimeMs_ = 0L; endTimeMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Word_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Word getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.Word.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Word build() { yandex.cloud.api.ai.stt.v3.Stt.Word result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Word buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.Word result = new yandex.cloud.api.ai.stt.v3.Stt.Word(this); result.text_ = text_; result.startTimeMs_ = startTimeMs_; result.endTimeMs_ = endTimeMs_; 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 yandex.cloud.api.ai.stt.v3.Stt.Word) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.Word)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.Word other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.Word.getDefaultInstance()) return this; if (!other.getText().isEmpty()) { text_ = other.text_; onChanged(); } if (other.getStartTimeMs() != 0L) { setStartTimeMs(other.getStartTimeMs()); } if (other.getEndTimeMs() != 0L) { setEndTimeMs(other.getEndTimeMs()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.Word parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.Word) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object text_ = ""; /** *
       * Word 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; } } /** *
       * Word text.
       * 
* * 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; } } /** *
       * Word text.
       * 
* * 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; } /** *
       * Word text.
       * 
* * string text = 1; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); onChanged(); return this; } /** *
       * Word text.
       * 
* * 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 long startTimeMs_ ; /** *
       * Estimation of word start time in ms.
       * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } /** *
       * Estimation of word start time in ms.
       * 
* * int64 start_time_ms = 2; * @param value The startTimeMs to set. * @return This builder for chaining. */ public Builder setStartTimeMs(long value) { startTimeMs_ = value; onChanged(); return this; } /** *
       * Estimation of word start time in ms.
       * 
* * int64 start_time_ms = 2; * @return This builder for chaining. */ public Builder clearStartTimeMs() { startTimeMs_ = 0L; onChanged(); return this; } private long endTimeMs_ ; /** *
       * Estimation of word end time in ms.
       * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } /** *
       * Estimation of word end time in ms.
       * 
* * int64 end_time_ms = 3; * @param value The endTimeMs to set. * @return This builder for chaining. */ public Builder setEndTimeMs(long value) { endTimeMs_ = value; onChanged(); return this; } /** *
       * Estimation of word end time in ms.
       * 
* * int64 end_time_ms = 3; * @return This builder for chaining. */ public Builder clearEndTimeMs() { endTimeMs_ = 0L; 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:speechkit.stt.v3.Word) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.Word) private static final yandex.cloud.api.ai.stt.v3.Stt.Word DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.Word(); } public static yandex.cloud.api.ai.stt.v3.Stt.Word getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Word parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Word(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 yandex.cloud.api.ai.stt.v3.Stt.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LanguageEstimationOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.LanguageEstimation) com.google.protobuf.MessageOrBuilder { /** *
     * Language code in ISO 639-1 format.
     * 
* * string language_code = 1; * @return The languageCode. */ java.lang.String getLanguageCode(); /** *
     * Language code in ISO 639-1 format.
     * 
* * string language_code = 1; * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); /** *
     * Estimation of language probability.
     * 
* * double probability = 2; * @return The probability. */ double getProbability(); } /** *
   * Estimation of language and its probability.
   * 
* * Protobuf type {@code speechkit.stt.v3.LanguageEstimation} */ public static final class LanguageEstimation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.LanguageEstimation) LanguageEstimationOrBuilder { private static final long serialVersionUID = 0L; // Use LanguageEstimation.newBuilder() to construct. private LanguageEstimation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LanguageEstimation() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LanguageEstimation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LanguageEstimation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); languageCode_ = s; break; } case 17: { probability_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageEstimation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageEstimation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.class, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** *
     * Language code in ISO 639-1 format.
     * 
* * string language_code = 1; * @return The languageCode. */ @java.lang.Override public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; } } /** *
     * Language code in ISO 639-1 format.
     * 
* * string language_code = 1; * @return The bytes for languageCode. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROBABILITY_FIELD_NUMBER = 2; private double probability_; /** *
     * Estimation of language probability.
     * 
* * double probability = 2; * @return The probability. */ @java.lang.Override public double getProbability() { return probability_; } 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(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } if (java.lang.Double.doubleToRawLongBits(probability_) != 0) { output.writeDouble(2, probability_); } 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(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Double.doubleToRawLongBits(probability_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, probability_); } 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation other = (yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation) obj; if (!getLanguageCode() .equals(other.getLanguageCode())) return false; if (java.lang.Double.doubleToLongBits(getProbability()) != java.lang.Double.doubleToLongBits( other.getProbability())) 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) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + PROBABILITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getProbability())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation 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(yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation 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; } /** *
     * Estimation of language and its probability.
     * 
* * Protobuf type {@code speechkit.stt.v3.LanguageEstimation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.LanguageEstimation) yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageEstimation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageEstimation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.class, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); languageCode_ = ""; probability_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_LanguageEstimation_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation build() { yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation result = new yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation(this); result.languageCode_ = languageCode_; result.probability_ = probability_; 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 yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); } if (other.getProbability() != 0D) { setProbability(other.getProbability()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object languageCode_ = ""; /** *
       * Language code in ISO 639-1 format.
       * 
* * string language_code = 1; * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Language code in ISO 639-1 format.
       * 
* * string language_code = 1; * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Language code in ISO 639-1 format.
       * 
* * string language_code = 1; * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageCode_ = value; onChanged(); return this; } /** *
       * Language code in ISO 639-1 format.
       * 
* * string language_code = 1; * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** *
       * Language code in ISO 639-1 format.
       * 
* * string language_code = 1; * @param value The bytes for languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; onChanged(); return this; } private double probability_ ; /** *
       * Estimation of language probability.
       * 
* * double probability = 2; * @return The probability. */ @java.lang.Override public double getProbability() { return probability_; } /** *
       * Estimation of language probability.
       * 
* * double probability = 2; * @param value The probability to set. * @return This builder for chaining. */ public Builder setProbability(double value) { probability_ = value; onChanged(); return this; } /** *
       * Estimation of language probability.
       * 
* * double probability = 2; * @return This builder for chaining. */ public Builder clearProbability() { probability_ = 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:speechkit.stt.v3.LanguageEstimation) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.LanguageEstimation) private static final yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation(); } public static yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LanguageEstimation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LanguageEstimation(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 yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlternativeOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.Alternative) com.google.protobuf.MessageOrBuilder { /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ java.util.List getWordsList(); /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ yandex.cloud.api.ai.stt.v3.Stt.Word getWords(int index); /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ int getWordsCount(); /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ java.util.List getWordsOrBuilderList(); /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ yandex.cloud.api.ai.stt.v3.Stt.WordOrBuilder getWordsOrBuilder( int index); /** *
     * Text in time frame.
     * 
* * string text = 2; * @return The text. */ java.lang.String getText(); /** *
     * Text in time frame.
     * 
* * string text = 2; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** *
     * Start of time frame.
     * 
* * int64 start_time_ms = 3; * @return The startTimeMs. */ long getStartTimeMs(); /** *
     * End of time frame.
     * 
* * int64 end_time_ms = 4; * @return The endTimeMs. */ long getEndTimeMs(); /** *
     * The hypothesis confidence. Currently is not used.
     * 
* * double confidence = 5; * @return The confidence. */ double getConfidence(); /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ java.util.List getLanguagesList(); /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getLanguages(int index); /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ int getLanguagesCount(); /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ java.util.List getLanguagesOrBuilderList(); /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder getLanguagesOrBuilder( int index); } /** *
   * Recognition of specific time frame.
   * 
* * Protobuf type {@code speechkit.stt.v3.Alternative} */ public static final class Alternative extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.Alternative) AlternativeOrBuilder { private static final long serialVersionUID = 0L; // Use Alternative.newBuilder() to construct. private Alternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Alternative() { words_ = java.util.Collections.emptyList(); text_ = ""; languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Alternative(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Alternative( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } words_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.Word.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); text_ = s; break; } case 24: { startTimeMs_ = input.readInt64(); break; } case 32: { endTimeMs_ = input.readInt64(); break; } case 41: { confidence_ = input.readDouble(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { languages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } languages_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.parser(), extensionRegistry)); 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)) { words_ = java.util.Collections.unmodifiableList(words_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Alternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Alternative_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.Alternative.class, yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder.class); } public static final int WORDS_FIELD_NUMBER = 1; private java.util.List words_; /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ @java.lang.Override public java.util.List getWordsList() { return words_; } /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ @java.lang.Override public java.util.List getWordsOrBuilderList() { return words_; } /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ @java.lang.Override public int getWordsCount() { return words_.size(); } /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Word getWords(int index) { return words_.get(index); } /** *
     * Words in time frame.
     * 
* * repeated .speechkit.stt.v3.Word words = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.WordOrBuilder getWordsOrBuilder( int index) { return words_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** *
     * Text in time frame.
     * 
* * string text = 2; * @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; } } /** *
     * Text in time frame.
     * 
* * string text = 2; * @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 START_TIME_MS_FIELD_NUMBER = 3; private long startTimeMs_; /** *
     * Start of time frame.
     * 
* * int64 start_time_ms = 3; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } public static final int END_TIME_MS_FIELD_NUMBER = 4; private long endTimeMs_; /** *
     * End of time frame.
     * 
* * int64 end_time_ms = 4; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private double confidence_; /** *
     * The hypothesis confidence. Currently is not used.
     * 
* * double confidence = 5; * @return The confidence. */ @java.lang.Override public double getConfidence() { return confidence_; } public static final int LANGUAGES_FIELD_NUMBER = 6; private java.util.List languages_; /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ @java.lang.Override public java.util.List getLanguagesList() { return languages_; } /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ @java.lang.Override public java.util.List getLanguagesOrBuilderList() { return languages_; } /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ @java.lang.Override public int getLanguagesCount() { return languages_.size(); } /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getLanguages(int index) { return languages_.get(index); } /** *
     * Distribution over possible languages.
     * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder getLanguagesOrBuilder( int index) { return languages_.get(index); } 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 { for (int i = 0; i < words_.size(); i++) { output.writeMessage(1, words_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, text_); } if (startTimeMs_ != 0L) { output.writeInt64(3, startTimeMs_); } if (endTimeMs_ != 0L) { output.writeInt64(4, endTimeMs_); } if (java.lang.Double.doubleToRawLongBits(confidence_) != 0) { output.writeDouble(5, confidence_); } for (int i = 0; i < languages_.size(); i++) { output.writeMessage(6, languages_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < words_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, words_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); } if (startTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, startTimeMs_); } if (endTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, endTimeMs_); } if (java.lang.Double.doubleToRawLongBits(confidence_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, confidence_); } for (int i = 0; i < languages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, languages_.get(i)); } 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 yandex.cloud.api.ai.stt.v3.Stt.Alternative)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.Alternative other = (yandex.cloud.api.ai.stt.v3.Stt.Alternative) obj; if (!getWordsList() .equals(other.getWordsList())) return false; if (!getText() .equals(other.getText())) return false; if (getStartTimeMs() != other.getStartTimeMs()) return false; if (getEndTimeMs() != other.getEndTimeMs()) return false; if (java.lang.Double.doubleToLongBits(getConfidence()) != java.lang.Double.doubleToLongBits( other.getConfidence())) return false; if (!getLanguagesList() .equals(other.getLanguagesList())) 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(); if (getWordsCount() > 0) { hash = (37 * hash) + WORDS_FIELD_NUMBER; hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimeMs()); hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTimeMs()); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getConfidence())); if (getLanguagesCount() > 0) { hash = (37 * hash) + LANGUAGES_FIELD_NUMBER; hash = (53 * hash) + getLanguagesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative 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 yandex.cloud.api.ai.stt.v3.Stt.Alternative parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative 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 yandex.cloud.api.ai.stt.v3.Stt.Alternative parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative 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(yandex.cloud.api.ai.stt.v3.Stt.Alternative 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; } /** *
     * Recognition of specific time frame.
     * 
* * Protobuf type {@code speechkit.stt.v3.Alternative} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.Alternative) yandex.cloud.api.ai.stt.v3.Stt.AlternativeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Alternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Alternative_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.Alternative.class, yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.Alternative.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWordsFieldBuilder(); getLanguagesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { wordsBuilder_.clear(); } text_ = ""; startTimeMs_ = 0L; endTimeMs_ = 0L; confidence_ = 0D; if (languagesBuilder_ == null) { languages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { languagesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_Alternative_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Alternative getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.Alternative.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Alternative build() { yandex.cloud.api.ai.stt.v3.Stt.Alternative result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Alternative buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.Alternative result = new yandex.cloud.api.ai.stt.v3.Stt.Alternative(this); int from_bitField0_ = bitField0_; if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); bitField0_ = (bitField0_ & ~0x00000001); } result.words_ = words_; } else { result.words_ = wordsBuilder_.build(); } result.text_ = text_; result.startTimeMs_ = startTimeMs_; result.endTimeMs_ = endTimeMs_; result.confidence_ = confidence_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); bitField0_ = (bitField0_ & ~0x00000002); } result.languages_ = languages_; } else { result.languages_ = languagesBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.Alternative) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.Alternative)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.Alternative other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.Alternative.getDefaultInstance()) return this; if (wordsBuilder_ == null) { if (!other.words_.isEmpty()) { if (words_.isEmpty()) { words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWordsIsMutable(); words_.addAll(other.words_); } onChanged(); } } else { if (!other.words_.isEmpty()) { if (wordsBuilder_.isEmpty()) { wordsBuilder_.dispose(); wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); wordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } } } if (!other.getText().isEmpty()) { text_ = other.text_; onChanged(); } if (other.getStartTimeMs() != 0L) { setStartTimeMs(other.getStartTimeMs()); } if (other.getEndTimeMs() != 0L) { setEndTimeMs(other.getEndTimeMs()); } if (other.getConfidence() != 0D) { setConfidence(other.getConfidence()); } if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLanguagesIsMutable(); languages_.addAll(other.languages_); } onChanged(); } } else { if (!other.languages_.isEmpty()) { if (languagesBuilder_.isEmpty()) { languagesBuilder_.dispose(); languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000002); languagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } } } 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 { yandex.cloud.api.ai.stt.v3.Stt.Alternative parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.Alternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List words_ = java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Word, yandex.cloud.api.ai.stt.v3.Stt.Word.Builder, yandex.cloud.api.ai.stt.v3.Stt.WordOrBuilder> wordsBuilder_; /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public java.util.List getWordsList() { if (wordsBuilder_ == null) { return java.util.Collections.unmodifiableList(words_); } else { return wordsBuilder_.getMessageList(); } } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public int getWordsCount() { if (wordsBuilder_ == null) { return words_.size(); } else { return wordsBuilder_.getCount(); } } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Word getWords(int index) { if (wordsBuilder_ == null) { return words_.get(index); } else { return wordsBuilder_.getMessage(index); } } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder setWords( int index, yandex.cloud.api.ai.stt.v3.Stt.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.set(index, value); onChanged(); } else { wordsBuilder_.setMessage(index, value); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder setWords( int index, yandex.cloud.api.ai.stt.v3.Stt.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.set(index, builderForValue.build()); onChanged(); } else { wordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder addWords(yandex.cloud.api.ai.stt.v3.Stt.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.add(value); onChanged(); } else { wordsBuilder_.addMessage(value); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder addWords( int index, yandex.cloud.api.ai.stt.v3.Stt.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.add(index, value); onChanged(); } else { wordsBuilder_.addMessage(index, value); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder addWords( yandex.cloud.api.ai.stt.v3.Stt.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); onChanged(); } else { wordsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder addWords( int index, yandex.cloud.api.ai.stt.v3.Stt.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(index, builderForValue.build()); onChanged(); } else { wordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder clearWords() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { wordsBuilder_.clear(); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public Builder removeWords(int index) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.remove(index); onChanged(); } else { wordsBuilder_.remove(index); } return this; } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Word.Builder getWordsBuilder( int index) { return getWordsFieldBuilder().getBuilder(index); } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.WordOrBuilder getWordsOrBuilder( int index) { if (wordsBuilder_ == null) { return words_.get(index); } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public java.util.List getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(words_); } } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Word.Builder addWordsBuilder() { return getWordsFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.Word.getDefaultInstance()); } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Word.Builder addWordsBuilder( int index) { return getWordsFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.Word.getDefaultInstance()); } /** *
       * Words in time frame.
       * 
* * repeated .speechkit.stt.v3.Word words = 1; */ public java.util.List getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Word, yandex.cloud.api.ai.stt.v3.Stt.Word.Builder, yandex.cloud.api.ai.stt.v3.Stt.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Word, yandex.cloud.api.ai.stt.v3.Stt.Word.Builder, yandex.cloud.api.ai.stt.v3.Stt.WordOrBuilder>( words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; } private java.lang.Object text_ = ""; /** *
       * Text in time frame.
       * 
* * string text = 2; * @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; } } /** *
       * Text in time frame.
       * 
* * string text = 2; * @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; } } /** *
       * Text in time frame.
       * 
* * string text = 2; * @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; } /** *
       * Text in time frame.
       * 
* * string text = 2; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); onChanged(); return this; } /** *
       * Text in time frame.
       * 
* * string text = 2; * @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 long startTimeMs_ ; /** *
       * Start of time frame.
       * 
* * int64 start_time_ms = 3; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } /** *
       * Start of time frame.
       * 
* * int64 start_time_ms = 3; * @param value The startTimeMs to set. * @return This builder for chaining. */ public Builder setStartTimeMs(long value) { startTimeMs_ = value; onChanged(); return this; } /** *
       * Start of time frame.
       * 
* * int64 start_time_ms = 3; * @return This builder for chaining. */ public Builder clearStartTimeMs() { startTimeMs_ = 0L; onChanged(); return this; } private long endTimeMs_ ; /** *
       * End of time frame.
       * 
* * int64 end_time_ms = 4; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } /** *
       * End of time frame.
       * 
* * int64 end_time_ms = 4; * @param value The endTimeMs to set. * @return This builder for chaining. */ public Builder setEndTimeMs(long value) { endTimeMs_ = value; onChanged(); return this; } /** *
       * End of time frame.
       * 
* * int64 end_time_ms = 4; * @return This builder for chaining. */ public Builder clearEndTimeMs() { endTimeMs_ = 0L; onChanged(); return this; } private double confidence_ ; /** *
       * The hypothesis confidence. Currently is not used.
       * 
* * double confidence = 5; * @return The confidence. */ @java.lang.Override public double getConfidence() { return confidence_; } /** *
       * The hypothesis confidence. Currently is not used.
       * 
* * double confidence = 5; * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(double value) { confidence_ = value; onChanged(); return this; } /** *
       * The hypothesis confidence. Currently is not used.
       * 
* * double confidence = 5; * @return This builder for chaining. */ public Builder clearConfidence() { confidence_ = 0D; onChanged(); return this; } private java.util.List languages_ = java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder> languagesBuilder_; /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public java.util.List getLanguagesList() { if (languagesBuilder_ == null) { return java.util.Collections.unmodifiableList(languages_); } else { return languagesBuilder_.getMessageList(); } } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public int getLanguagesCount() { if (languagesBuilder_ == null) { return languages_.size(); } else { return languagesBuilder_.getCount(); } } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation getLanguages(int index) { if (languagesBuilder_ == null) { return languages_.get(index); } else { return languagesBuilder_.getMessage(index); } } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder setLanguages( int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation value) { if (languagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLanguagesIsMutable(); languages_.set(index, value); onChanged(); } else { languagesBuilder_.setMessage(index, value); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder setLanguages( int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder builderForValue) { if (languagesBuilder_ == null) { ensureLanguagesIsMutable(); languages_.set(index, builderForValue.build()); onChanged(); } else { languagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder addLanguages(yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation value) { if (languagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLanguagesIsMutable(); languages_.add(value); onChanged(); } else { languagesBuilder_.addMessage(value); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder addLanguages( int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation value) { if (languagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLanguagesIsMutable(); languages_.add(index, value); onChanged(); } else { languagesBuilder_.addMessage(index, value); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder addLanguages( yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder builderForValue) { if (languagesBuilder_ == null) { ensureLanguagesIsMutable(); languages_.add(builderForValue.build()); onChanged(); } else { languagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder addLanguages( int index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder builderForValue) { if (languagesBuilder_ == null) { ensureLanguagesIsMutable(); languages_.add(index, builderForValue.build()); onChanged(); } else { languagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder addAllLanguages( java.lang.Iterable values) { if (languagesBuilder_ == null) { ensureLanguagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, languages_); onChanged(); } else { languagesBuilder_.addAllMessages(values); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder clearLanguages() { if (languagesBuilder_ == null) { languages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { languagesBuilder_.clear(); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public Builder removeLanguages(int index) { if (languagesBuilder_ == null) { ensureLanguagesIsMutable(); languages_.remove(index); onChanged(); } else { languagesBuilder_.remove(index); } return this; } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder getLanguagesBuilder( int index) { return getLanguagesFieldBuilder().getBuilder(index); } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder getLanguagesOrBuilder( int index) { if (languagesBuilder_ == null) { return languages_.get(index); } else { return languagesBuilder_.getMessageOrBuilder(index); } } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public java.util.List getLanguagesOrBuilderList() { if (languagesBuilder_ != null) { return languagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(languages_); } } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder addLanguagesBuilder() { return getLanguagesFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.getDefaultInstance()); } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder addLanguagesBuilder( int index) { return getLanguagesFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.getDefaultInstance()); } /** *
       * Distribution over possible languages.
       * 
* * repeated .speechkit.stt.v3.LanguageEstimation languages = 6; */ public java.util.List getLanguagesBuilderList() { return getLanguagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder> getLanguagesFieldBuilder() { if (languagesBuilder_ == null) { languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimation.Builder, yandex.cloud.api.ai.stt.v3.Stt.LanguageEstimationOrBuilder>( languages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); languages_ = null; } return languagesBuilder_; } @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:speechkit.stt.v3.Alternative) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.Alternative) private static final yandex.cloud.api.ai.stt.v3.Stt.Alternative DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.Alternative(); } public static yandex.cloud.api.ai.stt.v3.Stt.Alternative getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Alternative parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Alternative(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 yandex.cloud.api.ai.stt.v3.Stt.Alternative getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EouUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.EouUpdate) com.google.protobuf.MessageOrBuilder { /** *
     * EOU estimated time.
     * 
* * int64 time_ms = 2; * @return The timeMs. */ long getTimeMs(); } /** *
   * Update information for external End of Utterance.
   * 
* * Protobuf type {@code speechkit.stt.v3.EouUpdate} */ public static final class EouUpdate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.EouUpdate) EouUpdateOrBuilder { private static final long serialVersionUID = 0L; // Use EouUpdate.newBuilder() to construct. private EouUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EouUpdate() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EouUpdate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EouUpdate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 16: { timeMs_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.class, yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder.class); } public static final int TIME_MS_FIELD_NUMBER = 2; private long timeMs_; /** *
     * EOU estimated time.
     * 
* * int64 time_ms = 2; * @return The timeMs. */ @java.lang.Override public long getTimeMs() { return timeMs_; } 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 (timeMs_ != 0L) { output.writeInt64(2, timeMs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, timeMs_); } 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 yandex.cloud.api.ai.stt.v3.Stt.EouUpdate)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.EouUpdate other = (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) obj; if (getTimeMs() != other.getTimeMs()) 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) + TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate 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 yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate 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 yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate 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(yandex.cloud.api.ai.stt.v3.Stt.EouUpdate 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; } /** *
     * Update information for external End of Utterance.
     * 
* * Protobuf type {@code speechkit.stt.v3.EouUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.EouUpdate) yandex.cloud.api.ai.stt.v3.Stt.EouUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.class, yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); timeMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_EouUpdate_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouUpdate getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouUpdate build() { yandex.cloud.api.ai.stt.v3.Stt.EouUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouUpdate buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.EouUpdate result = new yandex.cloud.api.ai.stt.v3.Stt.EouUpdate(this); result.timeMs_ = timeMs_; 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 yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.EouUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.EouUpdate other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance()) return this; if (other.getTimeMs() != 0L) { setTimeMs(other.getTimeMs()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.EouUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long timeMs_ ; /** *
       * EOU estimated time.
       * 
* * int64 time_ms = 2; * @return The timeMs. */ @java.lang.Override public long getTimeMs() { return timeMs_; } /** *
       * EOU estimated time.
       * 
* * int64 time_ms = 2; * @param value The timeMs to set. * @return This builder for chaining. */ public Builder setTimeMs(long value) { timeMs_ = value; onChanged(); return this; } /** *
       * EOU estimated time.
       * 
* * int64 time_ms = 2; * @return This builder for chaining. */ public Builder clearTimeMs() { timeMs_ = 0L; 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:speechkit.stt.v3.EouUpdate) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.EouUpdate) private static final yandex.cloud.api.ai.stt.v3.Stt.EouUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.EouUpdate(); } public static yandex.cloud.api.ai.stt.v3.Stt.EouUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EouUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EouUpdate(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 yandex.cloud.api.ai.stt.v3.Stt.EouUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlternativeUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.AlternativeUpdate) com.google.protobuf.MessageOrBuilder { /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ java.util.List getAlternativesList(); /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ yandex.cloud.api.ai.stt.v3.Stt.Alternative getAlternatives(int index); /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ int getAlternativesCount(); /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ java.util.List getAlternativesOrBuilderList(); /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ yandex.cloud.api.ai.stt.v3.Stt.AlternativeOrBuilder getAlternativesOrBuilder( int index); /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @return The channelTag. */ @java.lang.Deprecated java.lang.String getChannelTag(); /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @return The bytes for channelTag. */ @java.lang.Deprecated com.google.protobuf.ByteString getChannelTagBytes(); } /** *
   * Update of hypothesis.
   * 
* * Protobuf type {@code speechkit.stt.v3.AlternativeUpdate} */ public static final class AlternativeUpdate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.AlternativeUpdate) AlternativeUpdateOrBuilder { private static final long serialVersionUID = 0L; // Use AlternativeUpdate.newBuilder() to construct. private AlternativeUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlternativeUpdate() { alternatives_ = java.util.Collections.emptyList(); channelTag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AlternativeUpdate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AlternativeUpdate( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } alternatives_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.Alternative.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); channelTag_ = s; 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)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AlternativeUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AlternativeUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.class, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ @java.lang.Override public java.util.List getAlternativesList() { return alternatives_; } /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ @java.lang.Override public java.util.List getAlternativesOrBuilderList() { return alternatives_; } /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ @java.lang.Override public int getAlternativesCount() { return alternatives_.size(); } /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.Alternative getAlternatives(int index) { return alternatives_.get(index); } /** *
     * List of hypothesis for timeframes.
     * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeOrBuilder getAlternativesOrBuilder( int index) { return alternatives_.get(index); } public static final int CHANNEL_TAG_FIELD_NUMBER = 2; private volatile java.lang.Object channelTag_; /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @return The channelTag. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getChannelTag() { java.lang.Object ref = channelTag_; 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(); channelTag_ = s; return s; } } /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @return The bytes for channelTag. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getChannelTagBytes() { java.lang.Object ref = channelTag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelTag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelTag_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < alternatives_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, alternatives_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelTag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelTag_); } 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 yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate other = (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) obj; if (!getAlternativesList() .equals(other.getAlternativesList())) return false; if (!getChannelTag() .equals(other.getChannelTag())) 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(); if (getAlternativesCount() > 0) { hash = (37 * hash) + ALTERNATIVES_FIELD_NUMBER; hash = (53 * hash) + getAlternativesList().hashCode(); } hash = (37 * hash) + CHANNEL_TAG_FIELD_NUMBER; hash = (53 * hash) + getChannelTag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate 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 yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate 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 yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate 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(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate 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; } /** *
     * Update of hypothesis.
     * 
* * Protobuf type {@code speechkit.stt.v3.AlternativeUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.AlternativeUpdate) yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AlternativeUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AlternativeUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.class, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (alternativesBuilder_ == null) { alternatives_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { alternativesBuilder_.clear(); } channelTag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AlternativeUpdate_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate build() { yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate result = new yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); bitField0_ = (bitField0_ & ~0x00000001); } result.alternatives_ = alternatives_; } else { result.alternatives_ = alternativesBuilder_.build(); } result.channelTag_ = channelTag_; 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 yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance()) return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { alternatives_ = other.alternatives_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAlternativesIsMutable(); alternatives_.addAll(other.alternatives_); } onChanged(); } } else { if (!other.alternatives_.isEmpty()) { if (alternativesBuilder_.isEmpty()) { alternativesBuilder_.dispose(); alternativesBuilder_ = null; alternatives_ = other.alternatives_; bitField0_ = (bitField0_ & ~0x00000001); alternativesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAlternativesFieldBuilder() : null; } else { alternativesBuilder_.addAllMessages(other.alternatives_); } } } if (!other.getChannelTag().isEmpty()) { channelTag_ = other.channelTag_; onChanged(); } 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 { yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List alternatives_ = java.util.Collections.emptyList(); private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { alternatives_ = new java.util.ArrayList(alternatives_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Alternative, yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeOrBuilder> alternativesBuilder_; /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public java.util.List getAlternativesList() { if (alternativesBuilder_ == null) { return java.util.Collections.unmodifiableList(alternatives_); } else { return alternativesBuilder_.getMessageList(); } } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public int getAlternativesCount() { if (alternativesBuilder_ == null) { return alternatives_.size(); } else { return alternativesBuilder_.getCount(); } } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Alternative getAlternatives(int index) { if (alternativesBuilder_ == null) { return alternatives_.get(index); } else { return alternativesBuilder_.getMessage(index); } } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder setAlternatives( int index, yandex.cloud.api.ai.stt.v3.Stt.Alternative value) { if (alternativesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlternativesIsMutable(); alternatives_.set(index, value); onChanged(); } else { alternativesBuilder_.setMessage(index, value); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder setAlternatives( int index, yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.set(index, builderForValue.build()); onChanged(); } else { alternativesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder addAlternatives(yandex.cloud.api.ai.stt.v3.Stt.Alternative value) { if (alternativesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlternativesIsMutable(); alternatives_.add(value); onChanged(); } else { alternativesBuilder_.addMessage(value); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder addAlternatives( int index, yandex.cloud.api.ai.stt.v3.Stt.Alternative value) { if (alternativesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlternativesIsMutable(); alternatives_.add(index, value); onChanged(); } else { alternativesBuilder_.addMessage(index, value); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder addAlternatives( yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.add(builderForValue.build()); onChanged(); } else { alternativesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder addAlternatives( int index, yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.add(index, builderForValue.build()); onChanged(); } else { alternativesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder addAllAlternatives( java.lang.Iterable values) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alternatives_); onChanged(); } else { alternativesBuilder_.addAllMessages(values); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder clearAlternatives() { if (alternativesBuilder_ == null) { alternatives_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { alternativesBuilder_.clear(); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public Builder removeAlternatives(int index) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.remove(index); onChanged(); } else { alternativesBuilder_.remove(index); } return this; } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder getAlternativesBuilder( int index) { return getAlternativesFieldBuilder().getBuilder(index); } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.AlternativeOrBuilder getAlternativesOrBuilder( int index) { if (alternativesBuilder_ == null) { return alternatives_.get(index); } else { return alternativesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public java.util.List getAlternativesOrBuilderList() { if (alternativesBuilder_ != null) { return alternativesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alternatives_); } } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder addAlternativesBuilder() { return getAlternativesFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.Alternative.getDefaultInstance()); } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder addAlternativesBuilder( int index) { return getAlternativesFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.Alternative.getDefaultInstance()); } /** *
       * List of hypothesis for timeframes.
       * 
* * repeated .speechkit.stt.v3.Alternative alternatives = 1; */ public java.util.List getAlternativesBuilderList() { return getAlternativesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Alternative, yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeOrBuilder> getAlternativesFieldBuilder() { if (alternativesBuilder_ == null) { alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.Alternative, yandex.cloud.api.ai.stt.v3.Stt.Alternative.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeOrBuilder>( alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); alternatives_ = null; } return alternativesBuilder_; } private java.lang.Object channelTag_ = ""; /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @return The channelTag. */ @java.lang.Deprecated public java.lang.String getChannelTag() { java.lang.Object ref = channelTag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channelTag_ = s; return s; } else { return (java.lang.String) ref; } } /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @return The bytes for channelTag. */ @java.lang.Deprecated public com.google.protobuf.ByteString getChannelTagBytes() { java.lang.Object ref = channelTag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @param value The channelTag to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setChannelTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelTag_ = value; onChanged(); return this; } /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearChannelTag() { channelTag_ = getDefaultInstance().getChannelTag(); onChanged(); return this; } /** * string channel_tag = 2 [deprecated = true]; * @deprecated * @param value The bytes for channelTag to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setChannelTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelTag_ = value; 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:speechkit.stt.v3.AlternativeUpdate) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.AlternativeUpdate) private static final yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate(); } public static yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AlternativeUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AlternativeUpdate(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 yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AudioCursorsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.AudioCursors) com.google.protobuf.MessageOrBuilder { /** *
     * Amount of audio chunks server received. This cursor is moved after each audio chunk was received by server.
     * 
* * int64 received_data_ms = 1; * @return The receivedDataMs. */ long getReceivedDataMs(); /** *
     * Input stream reset data.
     * 
* * int64 reset_time_ms = 2; * @return The resetTimeMs. */ long getResetTimeMs(); /** *
     * How much audio was processed. This time includes trimming silences as well. This cursor is moved after server received enough data
     * to update recognition results (includes silence as well).
     * 
* * int64 partial_time_ms = 3; * @return The partialTimeMs. */ long getPartialTimeMs(); /** *
     * Time of last final. This cursor is moved when server decides that recognition from start of audio until final_time_ms will not change anymore
     * usually this even is followed by EOU detection (but this could change in future).
     * 
* * int64 final_time_ms = 4; * @return The finalTimeMs. */ long getFinalTimeMs(); /** *
     * This is index of last final server send. Incremented after each new final.
     * 
* * int64 final_index = 5; * @return The finalIndex. */ long getFinalIndex(); /** *
     * Estimated time of EOU. Cursor is updated after each new EOU is sent.
     * For external classifier this equals to received_data_ms at the moment EOU event arrives.
     * For internal classifier this is estimation of time. The time is not exact and has the same guarantees as word timings.
     * 
* * int64 eou_time_ms = 6; * @return The eouTimeMs. */ long getEouTimeMs(); } /** *
   * AudioCursors are state of ASR recognition stream.
   * 
* * Protobuf type {@code speechkit.stt.v3.AudioCursors} */ public static final class AudioCursors extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.AudioCursors) AudioCursorsOrBuilder { private static final long serialVersionUID = 0L; // Use AudioCursors.newBuilder() to construct. private AudioCursors(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudioCursors() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudioCursors(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AudioCursors( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { receivedDataMs_ = input.readInt64(); break; } case 16: { resetTimeMs_ = input.readInt64(); break; } case 24: { partialTimeMs_ = input.readInt64(); break; } case 32: { finalTimeMs_ = input.readInt64(); break; } case 40: { finalIndex_ = input.readInt64(); break; } case 48: { eouTimeMs_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioCursors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioCursors_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.class, yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder.class); } public static final int RECEIVED_DATA_MS_FIELD_NUMBER = 1; private long receivedDataMs_; /** *
     * Amount of audio chunks server received. This cursor is moved after each audio chunk was received by server.
     * 
* * int64 received_data_ms = 1; * @return The receivedDataMs. */ @java.lang.Override public long getReceivedDataMs() { return receivedDataMs_; } public static final int RESET_TIME_MS_FIELD_NUMBER = 2; private long resetTimeMs_; /** *
     * Input stream reset data.
     * 
* * int64 reset_time_ms = 2; * @return The resetTimeMs. */ @java.lang.Override public long getResetTimeMs() { return resetTimeMs_; } public static final int PARTIAL_TIME_MS_FIELD_NUMBER = 3; private long partialTimeMs_; /** *
     * How much audio was processed. This time includes trimming silences as well. This cursor is moved after server received enough data
     * to update recognition results (includes silence as well).
     * 
* * int64 partial_time_ms = 3; * @return The partialTimeMs. */ @java.lang.Override public long getPartialTimeMs() { return partialTimeMs_; } public static final int FINAL_TIME_MS_FIELD_NUMBER = 4; private long finalTimeMs_; /** *
     * Time of last final. This cursor is moved when server decides that recognition from start of audio until final_time_ms will not change anymore
     * usually this even is followed by EOU detection (but this could change in future).
     * 
* * int64 final_time_ms = 4; * @return The finalTimeMs. */ @java.lang.Override public long getFinalTimeMs() { return finalTimeMs_; } public static final int FINAL_INDEX_FIELD_NUMBER = 5; private long finalIndex_; /** *
     * This is index of last final server send. Incremented after each new final.
     * 
* * int64 final_index = 5; * @return The finalIndex. */ @java.lang.Override public long getFinalIndex() { return finalIndex_; } public static final int EOU_TIME_MS_FIELD_NUMBER = 6; private long eouTimeMs_; /** *
     * Estimated time of EOU. Cursor is updated after each new EOU is sent.
     * For external classifier this equals to received_data_ms at the moment EOU event arrives.
     * For internal classifier this is estimation of time. The time is not exact and has the same guarantees as word timings.
     * 
* * int64 eou_time_ms = 6; * @return The eouTimeMs. */ @java.lang.Override public long getEouTimeMs() { return eouTimeMs_; } 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 (receivedDataMs_ != 0L) { output.writeInt64(1, receivedDataMs_); } if (resetTimeMs_ != 0L) { output.writeInt64(2, resetTimeMs_); } if (partialTimeMs_ != 0L) { output.writeInt64(3, partialTimeMs_); } if (finalTimeMs_ != 0L) { output.writeInt64(4, finalTimeMs_); } if (finalIndex_ != 0L) { output.writeInt64(5, finalIndex_); } if (eouTimeMs_ != 0L) { output.writeInt64(6, eouTimeMs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (receivedDataMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, receivedDataMs_); } if (resetTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, resetTimeMs_); } if (partialTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, partialTimeMs_); } if (finalTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, finalTimeMs_); } if (finalIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, finalIndex_); } if (eouTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, eouTimeMs_); } 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 yandex.cloud.api.ai.stt.v3.Stt.AudioCursors)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.AudioCursors other = (yandex.cloud.api.ai.stt.v3.Stt.AudioCursors) obj; if (getReceivedDataMs() != other.getReceivedDataMs()) return false; if (getResetTimeMs() != other.getResetTimeMs()) return false; if (getPartialTimeMs() != other.getPartialTimeMs()) return false; if (getFinalTimeMs() != other.getFinalTimeMs()) return false; if (getFinalIndex() != other.getFinalIndex()) return false; if (getEouTimeMs() != other.getEouTimeMs()) 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) + RECEIVED_DATA_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReceivedDataMs()); hash = (37 * hash) + RESET_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getResetTimeMs()); hash = (37 * hash) + PARTIAL_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartialTimeMs()); hash = (37 * hash) + FINAL_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFinalTimeMs()); hash = (37 * hash) + FINAL_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFinalIndex()); hash = (37 * hash) + EOU_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEouTimeMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors 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 yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors 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 yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors 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(yandex.cloud.api.ai.stt.v3.Stt.AudioCursors 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; } /** *
     * AudioCursors are state of ASR recognition stream.
     * 
* * Protobuf type {@code speechkit.stt.v3.AudioCursors} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.AudioCursors) yandex.cloud.api.ai.stt.v3.Stt.AudioCursorsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioCursors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioCursors_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.class, yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); receivedDataMs_ = 0L; resetTimeMs_ = 0L; partialTimeMs_ = 0L; finalTimeMs_ = 0L; finalIndex_ = 0L; eouTimeMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioCursors_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioCursors getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioCursors build() { yandex.cloud.api.ai.stt.v3.Stt.AudioCursors result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioCursors buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.AudioCursors result = new yandex.cloud.api.ai.stt.v3.Stt.AudioCursors(this); result.receivedDataMs_ = receivedDataMs_; result.resetTimeMs_ = resetTimeMs_; result.partialTimeMs_ = partialTimeMs_; result.finalTimeMs_ = finalTimeMs_; result.finalIndex_ = finalIndex_; result.eouTimeMs_ = eouTimeMs_; 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 yandex.cloud.api.ai.stt.v3.Stt.AudioCursors) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AudioCursors)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.AudioCursors other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.getDefaultInstance()) return this; if (other.getReceivedDataMs() != 0L) { setReceivedDataMs(other.getReceivedDataMs()); } if (other.getResetTimeMs() != 0L) { setResetTimeMs(other.getResetTimeMs()); } if (other.getPartialTimeMs() != 0L) { setPartialTimeMs(other.getPartialTimeMs()); } if (other.getFinalTimeMs() != 0L) { setFinalTimeMs(other.getFinalTimeMs()); } if (other.getFinalIndex() != 0L) { setFinalIndex(other.getFinalIndex()); } if (other.getEouTimeMs() != 0L) { setEouTimeMs(other.getEouTimeMs()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.AudioCursors parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.AudioCursors) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long receivedDataMs_ ; /** *
       * Amount of audio chunks server received. This cursor is moved after each audio chunk was received by server.
       * 
* * int64 received_data_ms = 1; * @return The receivedDataMs. */ @java.lang.Override public long getReceivedDataMs() { return receivedDataMs_; } /** *
       * Amount of audio chunks server received. This cursor is moved after each audio chunk was received by server.
       * 
* * int64 received_data_ms = 1; * @param value The receivedDataMs to set. * @return This builder for chaining. */ public Builder setReceivedDataMs(long value) { receivedDataMs_ = value; onChanged(); return this; } /** *
       * Amount of audio chunks server received. This cursor is moved after each audio chunk was received by server.
       * 
* * int64 received_data_ms = 1; * @return This builder for chaining. */ public Builder clearReceivedDataMs() { receivedDataMs_ = 0L; onChanged(); return this; } private long resetTimeMs_ ; /** *
       * Input stream reset data.
       * 
* * int64 reset_time_ms = 2; * @return The resetTimeMs. */ @java.lang.Override public long getResetTimeMs() { return resetTimeMs_; } /** *
       * Input stream reset data.
       * 
* * int64 reset_time_ms = 2; * @param value The resetTimeMs to set. * @return This builder for chaining. */ public Builder setResetTimeMs(long value) { resetTimeMs_ = value; onChanged(); return this; } /** *
       * Input stream reset data.
       * 
* * int64 reset_time_ms = 2; * @return This builder for chaining. */ public Builder clearResetTimeMs() { resetTimeMs_ = 0L; onChanged(); return this; } private long partialTimeMs_ ; /** *
       * How much audio was processed. This time includes trimming silences as well. This cursor is moved after server received enough data
       * to update recognition results (includes silence as well).
       * 
* * int64 partial_time_ms = 3; * @return The partialTimeMs. */ @java.lang.Override public long getPartialTimeMs() { return partialTimeMs_; } /** *
       * How much audio was processed. This time includes trimming silences as well. This cursor is moved after server received enough data
       * to update recognition results (includes silence as well).
       * 
* * int64 partial_time_ms = 3; * @param value The partialTimeMs to set. * @return This builder for chaining. */ public Builder setPartialTimeMs(long value) { partialTimeMs_ = value; onChanged(); return this; } /** *
       * How much audio was processed. This time includes trimming silences as well. This cursor is moved after server received enough data
       * to update recognition results (includes silence as well).
       * 
* * int64 partial_time_ms = 3; * @return This builder for chaining. */ public Builder clearPartialTimeMs() { partialTimeMs_ = 0L; onChanged(); return this; } private long finalTimeMs_ ; /** *
       * Time of last final. This cursor is moved when server decides that recognition from start of audio until final_time_ms will not change anymore
       * usually this even is followed by EOU detection (but this could change in future).
       * 
* * int64 final_time_ms = 4; * @return The finalTimeMs. */ @java.lang.Override public long getFinalTimeMs() { return finalTimeMs_; } /** *
       * Time of last final. This cursor is moved when server decides that recognition from start of audio until final_time_ms will not change anymore
       * usually this even is followed by EOU detection (but this could change in future).
       * 
* * int64 final_time_ms = 4; * @param value The finalTimeMs to set. * @return This builder for chaining. */ public Builder setFinalTimeMs(long value) { finalTimeMs_ = value; onChanged(); return this; } /** *
       * Time of last final. This cursor is moved when server decides that recognition from start of audio until final_time_ms will not change anymore
       * usually this even is followed by EOU detection (but this could change in future).
       * 
* * int64 final_time_ms = 4; * @return This builder for chaining. */ public Builder clearFinalTimeMs() { finalTimeMs_ = 0L; onChanged(); return this; } private long finalIndex_ ; /** *
       * This is index of last final server send. Incremented after each new final.
       * 
* * int64 final_index = 5; * @return The finalIndex. */ @java.lang.Override public long getFinalIndex() { return finalIndex_; } /** *
       * This is index of last final server send. Incremented after each new final.
       * 
* * int64 final_index = 5; * @param value The finalIndex to set. * @return This builder for chaining. */ public Builder setFinalIndex(long value) { finalIndex_ = value; onChanged(); return this; } /** *
       * This is index of last final server send. Incremented after each new final.
       * 
* * int64 final_index = 5; * @return This builder for chaining. */ public Builder clearFinalIndex() { finalIndex_ = 0L; onChanged(); return this; } private long eouTimeMs_ ; /** *
       * Estimated time of EOU. Cursor is updated after each new EOU is sent.
       * For external classifier this equals to received_data_ms at the moment EOU event arrives.
       * For internal classifier this is estimation of time. The time is not exact and has the same guarantees as word timings.
       * 
* * int64 eou_time_ms = 6; * @return The eouTimeMs. */ @java.lang.Override public long getEouTimeMs() { return eouTimeMs_; } /** *
       * Estimated time of EOU. Cursor is updated after each new EOU is sent.
       * For external classifier this equals to received_data_ms at the moment EOU event arrives.
       * For internal classifier this is estimation of time. The time is not exact and has the same guarantees as word timings.
       * 
* * int64 eou_time_ms = 6; * @param value The eouTimeMs to set. * @return This builder for chaining. */ public Builder setEouTimeMs(long value) { eouTimeMs_ = value; onChanged(); return this; } /** *
       * Estimated time of EOU. Cursor is updated after each new EOU is sent.
       * For external classifier this equals to received_data_ms at the moment EOU event arrives.
       * For internal classifier this is estimation of time. The time is not exact and has the same guarantees as word timings.
       * 
* * int64 eou_time_ms = 6; * @return This builder for chaining. */ public Builder clearEouTimeMs() { eouTimeMs_ = 0L; 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:speechkit.stt.v3.AudioCursors) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.AudioCursors) private static final yandex.cloud.api.ai.stt.v3.Stt.AudioCursors DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.AudioCursors(); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioCursors getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudioCursors parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AudioCursors(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 yandex.cloud.api.ai.stt.v3.Stt.AudioCursors getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FinalRefinementOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.FinalRefinement) com.google.protobuf.MessageOrBuilder { /** *
     * Index of final for which server sends additional information.
     * 
* * int64 final_index = 1; * @return The finalIndex. */ long getFinalIndex(); /** *
     * Normalized text instead of raw one.
     * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; * @return Whether the normalizedText field is set. */ boolean hasNormalizedText(); /** *
     * Normalized text instead of raw one.
     * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; * @return The normalizedText. */ yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getNormalizedText(); /** *
     * Normalized text instead of raw one.
     * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getNormalizedTextOrBuilder(); public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.TypeCase getTypeCase(); } /** *
   * Refinement for final hypo. For example, text normalization is refinement.
   * 
* * Protobuf type {@code speechkit.stt.v3.FinalRefinement} */ public static final class FinalRefinement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.FinalRefinement) FinalRefinementOrBuilder { private static final long serialVersionUID = 0L; // Use FinalRefinement.newBuilder() to construct. private FinalRefinement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FinalRefinement() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FinalRefinement(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FinalRefinement( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { finalIndex_ = input.readInt64(); break; } case 18: { yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder subBuilder = null; if (typeCase_ == 2) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_).toBuilder(); } type_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 2; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_FinalRefinement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_FinalRefinement_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.class, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NORMALIZED_TEXT(2), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 2: return NORMALIZED_TEXT; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int FINAL_INDEX_FIELD_NUMBER = 1; private long finalIndex_; /** *
     * Index of final for which server sends additional information.
     * 
* * int64 final_index = 1; * @return The finalIndex. */ @java.lang.Override public long getFinalIndex() { return finalIndex_; } public static final int NORMALIZED_TEXT_FIELD_NUMBER = 2; /** *
     * Normalized text instead of raw one.
     * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; * @return Whether the normalizedText field is set. */ @java.lang.Override public boolean hasNormalizedText() { return typeCase_ == 2; } /** *
     * Normalized text instead of raw one.
     * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; * @return The normalizedText. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getNormalizedText() { if (typeCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } /** *
     * Normalized text instead of raw one.
     * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getNormalizedTextOrBuilder() { if (typeCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } 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 (finalIndex_ != 0L) { output.writeInt64(1, finalIndex_); } if (typeCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (finalIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, finalIndex_); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_); } 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 yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement other = (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) obj; if (getFinalIndex() != other.getFinalIndex()) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: if (!getNormalizedText() .equals(other.getNormalizedText())) return false; break; case 0: default: } 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) + FINAL_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFinalIndex()); switch (typeCase_) { case 2: hash = (37 * hash) + NORMALIZED_TEXT_FIELD_NUMBER; hash = (53 * hash) + getNormalizedText().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement 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 yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement 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 yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement 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(yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement 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; } /** *
     * Refinement for final hypo. For example, text normalization is refinement.
     * 
* * Protobuf type {@code speechkit.stt.v3.FinalRefinement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.FinalRefinement) yandex.cloud.api.ai.stt.v3.Stt.FinalRefinementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_FinalRefinement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_FinalRefinement_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.class, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); finalIndex_ = 0L; typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_FinalRefinement_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement build() { yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement result = new yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement(this); result.finalIndex_ = finalIndex_; if (typeCase_ == 2) { if (normalizedTextBuilder_ == null) { result.type_ = type_; } else { result.type_ = normalizedTextBuilder_.build(); } } result.typeCase_ = typeCase_; 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 yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance()) return this; if (other.getFinalIndex() != 0L) { setFinalIndex(other.getFinalIndex()); } switch (other.getTypeCase()) { case NORMALIZED_TEXT: { mergeNormalizedText(other.getNormalizedText()); break; } case TYPE_NOT_SET: { break; } } 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 { yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private long finalIndex_ ; /** *
       * Index of final for which server sends additional information.
       * 
* * int64 final_index = 1; * @return The finalIndex. */ @java.lang.Override public long getFinalIndex() { return finalIndex_; } /** *
       * Index of final for which server sends additional information.
       * 
* * int64 final_index = 1; * @param value The finalIndex to set. * @return This builder for chaining. */ public Builder setFinalIndex(long value) { finalIndex_ = value; onChanged(); return this; } /** *
       * Index of final for which server sends additional information.
       * 
* * int64 final_index = 1; * @return This builder for chaining. */ public Builder clearFinalIndex() { finalIndex_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder> normalizedTextBuilder_; /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; * @return Whether the normalizedText field is set. */ @java.lang.Override public boolean hasNormalizedText() { return typeCase_ == 2; } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; * @return The normalizedText. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getNormalizedText() { if (normalizedTextBuilder_ == null) { if (typeCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } else { if (typeCase_ == 2) { return normalizedTextBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ public Builder setNormalizedText(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate value) { if (normalizedTextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { normalizedTextBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ public Builder setNormalizedText( yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder builderForValue) { if (normalizedTextBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { normalizedTextBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ public Builder mergeNormalizedText(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate value) { if (normalizedTextBuilder_ == null) { if (typeCase_ == 2 && type_ != yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance()) { type_ = yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { normalizedTextBuilder_.mergeFrom(value); } normalizedTextBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ public Builder clearNormalizedText() { if (normalizedTextBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } normalizedTextBuilder_.clear(); } return this; } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder getNormalizedTextBuilder() { return getNormalizedTextFieldBuilder().getBuilder(); } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getNormalizedTextOrBuilder() { if ((typeCase_ == 2) && (normalizedTextBuilder_ != null)) { return normalizedTextBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } } /** *
       * Normalized text instead of raw one.
       * 
* * .speechkit.stt.v3.AlternativeUpdate normalized_text = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder> getNormalizedTextFieldBuilder() { if (normalizedTextBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } normalizedTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged();; return normalizedTextBuilder_; } @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:speechkit.stt.v3.FinalRefinement) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.FinalRefinement) private static final yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement(); } public static yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FinalRefinement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FinalRefinement(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 yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatusCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.StatusCode) com.google.protobuf.MessageOrBuilder { /** *
     * Code type.
     * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @return The enum numeric value on the wire for codeType. */ int getCodeTypeValue(); /** *
     * Code type.
     * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @return The codeType. */ yandex.cloud.api.ai.stt.v3.Stt.CodeType getCodeType(); /** *
     * Human readable message.
     * 
* * string message = 2; * @return The message. */ java.lang.String getMessage(); /** *
     * Human readable message.
     * 
* * string message = 2; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** *
   * Status message
   * 
* * Protobuf type {@code speechkit.stt.v3.StatusCode} */ public static final class StatusCode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.StatusCode) StatusCodeOrBuilder { private static final long serialVersionUID = 0L; // Use StatusCode.newBuilder() to construct. private StatusCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StatusCode() { codeType_ = 0; message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StatusCode(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StatusCode( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { int rawValue = input.readEnum(); codeType_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StatusCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StatusCode_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StatusCode.class, yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder.class); } public static final int CODE_TYPE_FIELD_NUMBER = 1; private int codeType_; /** *
     * Code type.
     * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @return The enum numeric value on the wire for codeType. */ @java.lang.Override public int getCodeTypeValue() { return codeType_; } /** *
     * Code type.
     * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @return The codeType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.CodeType getCodeType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.CodeType result = yandex.cloud.api.ai.stt.v3.Stt.CodeType.valueOf(codeType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.CodeType.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** *
     * Human readable message.
     * 
* * string message = 2; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** *
     * Human readable message.
     * 
* * string message = 2; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (codeType_ != yandex.cloud.api.ai.stt.v3.Stt.CodeType.CODE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, codeType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (codeType_ != yandex.cloud.api.ai.stt.v3.Stt.CodeType.CODE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, codeType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } 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 yandex.cloud.api.ai.stt.v3.Stt.StatusCode)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.StatusCode other = (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) obj; if (codeType_ != other.codeType_) return false; if (!getMessage() .equals(other.getMessage())) 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) + CODE_TYPE_FIELD_NUMBER; hash = (53 * hash) + codeType_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode 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 yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode 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 yandex.cloud.api.ai.stt.v3.Stt.StatusCode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode 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(yandex.cloud.api.ai.stt.v3.Stt.StatusCode 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; } /** *
     * Status message
     * 
* * Protobuf type {@code speechkit.stt.v3.StatusCode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.StatusCode) yandex.cloud.api.ai.stt.v3.Stt.StatusCodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StatusCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StatusCode_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StatusCode.class, yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.StatusCode.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); codeType_ = 0; message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StatusCode_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StatusCode getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StatusCode build() { yandex.cloud.api.ai.stt.v3.Stt.StatusCode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StatusCode buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.StatusCode result = new yandex.cloud.api.ai.stt.v3.Stt.StatusCode(this); result.codeType_ = codeType_; result.message_ = message_; 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 yandex.cloud.api.ai.stt.v3.Stt.StatusCode) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.StatusCode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.StatusCode other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance()) return this; if (other.codeType_ != 0) { setCodeTypeValue(other.getCodeTypeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } 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 { yandex.cloud.api.ai.stt.v3.Stt.StatusCode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int codeType_ = 0; /** *
       * Code type.
       * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @return The enum numeric value on the wire for codeType. */ @java.lang.Override public int getCodeTypeValue() { return codeType_; } /** *
       * Code type.
       * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @param value The enum numeric value on the wire for codeType to set. * @return This builder for chaining. */ public Builder setCodeTypeValue(int value) { codeType_ = value; onChanged(); return this; } /** *
       * Code type.
       * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @return The codeType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.CodeType getCodeType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.CodeType result = yandex.cloud.api.ai.stt.v3.Stt.CodeType.valueOf(codeType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.CodeType.UNRECOGNIZED : result; } /** *
       * Code type.
       * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @param value The codeType to set. * @return This builder for chaining. */ public Builder setCodeType(yandex.cloud.api.ai.stt.v3.Stt.CodeType value) { if (value == null) { throw new NullPointerException(); } codeType_ = value.getNumber(); onChanged(); return this; } /** *
       * Code type.
       * 
* * .speechkit.stt.v3.CodeType code_type = 1; * @return This builder for chaining. */ public Builder clearCodeType() { codeType_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** *
       * Human readable message.
       * 
* * string message = 2; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Human readable message.
       * 
* * string message = 2; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Human readable message.
       * 
* * string message = 2; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** *
       * Human readable message.
       * 
* * string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** *
       * Human readable message.
       * 
* * string message = 2; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; 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:speechkit.stt.v3.StatusCode) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.StatusCode) private static final yandex.cloud.api.ai.stt.v3.Stt.StatusCode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.StatusCode(); } public static yandex.cloud.api.ai.stt.v3.Stt.StatusCode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StatusCode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatusCode(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 yandex.cloud.api.ai.stt.v3.Stt.StatusCode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SessionUuidOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.SessionUuid) com.google.protobuf.MessageOrBuilder { /** *
     * Internal session identifier.
     * 
* * string uuid = 1; * @return The uuid. */ java.lang.String getUuid(); /** *
     * Internal session identifier.
     * 
* * string uuid = 1; * @return The bytes for uuid. */ com.google.protobuf.ByteString getUuidBytes(); /** *
     * User session identifier.
     * 
* * string user_request_id = 2; * @return The userRequestId. */ java.lang.String getUserRequestId(); /** *
     * User session identifier.
     * 
* * string user_request_id = 2; * @return The bytes for userRequestId. */ com.google.protobuf.ByteString getUserRequestIdBytes(); } /** *
   * Session identifier.
   * 
* * Protobuf type {@code speechkit.stt.v3.SessionUuid} */ public static final class SessionUuid extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.SessionUuid) SessionUuidOrBuilder { private static final long serialVersionUID = 0L; // Use SessionUuid.newBuilder() to construct. private SessionUuid(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionUuid() { uuid_ = ""; userRequestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SessionUuid(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SessionUuid( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); uuid_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); userRequestId_ = s; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SessionUuid_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SessionUuid_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.class, yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder.class); } public static final int UUID_FIELD_NUMBER = 1; private volatile java.lang.Object uuid_; /** *
     * Internal session identifier.
     * 
* * string uuid = 1; * @return The uuid. */ @java.lang.Override public java.lang.String getUuid() { java.lang.Object ref = uuid_; 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(); uuid_ = s; return s; } } /** *
     * Internal session identifier.
     * 
* * string uuid = 1; * @return The bytes for uuid. */ @java.lang.Override public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object userRequestId_; /** *
     * User session identifier.
     * 
* * string user_request_id = 2; * @return The userRequestId. */ @java.lang.Override public java.lang.String getUserRequestId() { java.lang.Object ref = userRequestId_; 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(); userRequestId_ = s; return s; } } /** *
     * User session identifier.
     * 
* * string user_request_id = 2; * @return The bytes for userRequestId. */ @java.lang.Override public com.google.protobuf.ByteString getUserRequestIdBytes() { java.lang.Object ref = userRequestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userRequestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(uuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userRequestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userRequestId_); } 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(uuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userRequestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userRequestId_); } 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 yandex.cloud.api.ai.stt.v3.Stt.SessionUuid)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.SessionUuid other = (yandex.cloud.api.ai.stt.v3.Stt.SessionUuid) obj; if (!getUuid() .equals(other.getUuid())) return false; if (!getUserRequestId() .equals(other.getUserRequestId())) 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) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); hash = (37 * hash) + USER_REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getUserRequestId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid 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 yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid 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 yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid 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(yandex.cloud.api.ai.stt.v3.Stt.SessionUuid 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; } /** *
     * Session identifier.
     * 
* * Protobuf type {@code speechkit.stt.v3.SessionUuid} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.SessionUuid) yandex.cloud.api.ai.stt.v3.Stt.SessionUuidOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SessionUuid_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SessionUuid_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.class, yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); uuid_ = ""; userRequestId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SessionUuid_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SessionUuid getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SessionUuid build() { yandex.cloud.api.ai.stt.v3.Stt.SessionUuid result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SessionUuid buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.SessionUuid result = new yandex.cloud.api.ai.stt.v3.Stt.SessionUuid(this); result.uuid_ = uuid_; result.userRequestId_ = userRequestId_; 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 yandex.cloud.api.ai.stt.v3.Stt.SessionUuid) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.SessionUuid)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.SessionUuid other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.getDefaultInstance()) return this; if (!other.getUuid().isEmpty()) { uuid_ = other.uuid_; onChanged(); } if (!other.getUserRequestId().isEmpty()) { userRequestId_ = other.userRequestId_; onChanged(); } 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 { yandex.cloud.api.ai.stt.v3.Stt.SessionUuid parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.SessionUuid) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object uuid_ = ""; /** *
       * Internal session identifier.
       * 
* * string uuid = 1; * @return The uuid. */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uuid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Internal session identifier.
       * 
* * string uuid = 1; * @return The bytes for uuid. */ public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Internal session identifier.
       * 
* * string uuid = 1; * @param value The uuid to set. * @return This builder for chaining. */ public Builder setUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); return this; } /** *
       * Internal session identifier.
       * 
* * string uuid = 1; * @return This builder for chaining. */ public Builder clearUuid() { uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** *
       * Internal session identifier.
       * 
* * string uuid = 1; * @param value The bytes for uuid to set. * @return This builder for chaining. */ public Builder setUuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uuid_ = value; onChanged(); return this; } private java.lang.Object userRequestId_ = ""; /** *
       * User session identifier.
       * 
* * string user_request_id = 2; * @return The userRequestId. */ public java.lang.String getUserRequestId() { java.lang.Object ref = userRequestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userRequestId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * User session identifier.
       * 
* * string user_request_id = 2; * @return The bytes for userRequestId. */ public com.google.protobuf.ByteString getUserRequestIdBytes() { java.lang.Object ref = userRequestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userRequestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * User session identifier.
       * 
* * string user_request_id = 2; * @param value The userRequestId to set. * @return This builder for chaining. */ public Builder setUserRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userRequestId_ = value; onChanged(); return this; } /** *
       * User session identifier.
       * 
* * string user_request_id = 2; * @return This builder for chaining. */ public Builder clearUserRequestId() { userRequestId_ = getDefaultInstance().getUserRequestId(); onChanged(); return this; } /** *
       * User session identifier.
       * 
* * string user_request_id = 2; * @param value The bytes for userRequestId to set. * @return This builder for chaining. */ public Builder setUserRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userRequestId_ = value; 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:speechkit.stt.v3.SessionUuid) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.SessionUuid) private static final yandex.cloud.api.ai.stt.v3.Stt.SessionUuid DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.SessionUuid(); } public static yandex.cloud.api.ai.stt.v3.Stt.SessionUuid getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionUuid parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionUuid(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 yandex.cloud.api.ai.stt.v3.Stt.SessionUuid getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PhraseHighlightOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.PhraseHighlight) com.google.protobuf.MessageOrBuilder { /** *
     * Text transcription of the highlighted audio segment
     * 
* * string text = 1; * @return The text. */ java.lang.String getText(); /** *
     * Text transcription of the highlighted audio segment
     * 
* * string text = 1; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** *
     * Start time of the highlighted audio segment
     * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ long getStartTimeMs(); /** *
     * End time of the highlighted audio segment
     * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ long getEndTimeMs(); } /** * Protobuf type {@code speechkit.stt.v3.PhraseHighlight} */ public static final class PhraseHighlight extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.PhraseHighlight) PhraseHighlightOrBuilder { private static final long serialVersionUID = 0L; // Use PhraseHighlight.newBuilder() to construct. private PhraseHighlight(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PhraseHighlight() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PhraseHighlight(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PhraseHighlight( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 16: { startTimeMs_ = input.readInt64(); break; } case 24: { endTimeMs_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_PhraseHighlight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_PhraseHighlight_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.class, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object text_; /** *
     * Text transcription of the highlighted audio segment
     * 
* * 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; } } /** *
     * Text transcription of the highlighted audio segment
     * 
* * 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 START_TIME_MS_FIELD_NUMBER = 2; private long startTimeMs_; /** *
     * Start time of the highlighted audio segment
     * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } public static final int END_TIME_MS_FIELD_NUMBER = 3; private long endTimeMs_; /** *
     * End time of the highlighted audio segment
     * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } 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_); } if (startTimeMs_ != 0L) { output.writeInt64(2, startTimeMs_); } if (endTimeMs_ != 0L) { output.writeInt64(3, endTimeMs_); } 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_); } if (startTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startTimeMs_); } if (endTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, endTimeMs_); } 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 yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight other = (yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight) obj; if (!getText() .equals(other.getText())) return false; if (getStartTimeMs() != other.getStartTimeMs()) return false; if (getEndTimeMs() != other.getEndTimeMs()) 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(); hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimeMs()); hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTimeMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight 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 yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight 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 yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight 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(yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight 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 speechkit.stt.v3.PhraseHighlight} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.PhraseHighlight) yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlightOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_PhraseHighlight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_PhraseHighlight_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.class, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); text_ = ""; startTimeMs_ = 0L; endTimeMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_PhraseHighlight_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight build() { yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight result = new yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight(this); result.text_ = text_; result.startTimeMs_ = startTimeMs_; result.endTimeMs_ = endTimeMs_; 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 yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.getDefaultInstance()) return this; if (!other.getText().isEmpty()) { text_ = other.text_; onChanged(); } if (other.getStartTimeMs() != 0L) { setStartTimeMs(other.getStartTimeMs()); } if (other.getEndTimeMs() != 0L) { setEndTimeMs(other.getEndTimeMs()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object text_ = ""; /** *
       * Text transcription of the highlighted audio segment
       * 
* * 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; } } /** *
       * Text transcription of the highlighted audio segment
       * 
* * 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; } } /** *
       * Text transcription of the highlighted audio segment
       * 
* * 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; } /** *
       * Text transcription of the highlighted audio segment
       * 
* * string text = 1; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); onChanged(); return this; } /** *
       * Text transcription of the highlighted audio segment
       * 
* * 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 long startTimeMs_ ; /** *
       * Start time of the highlighted audio segment
       * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } /** *
       * Start time of the highlighted audio segment
       * 
* * int64 start_time_ms = 2; * @param value The startTimeMs to set. * @return This builder for chaining. */ public Builder setStartTimeMs(long value) { startTimeMs_ = value; onChanged(); return this; } /** *
       * Start time of the highlighted audio segment
       * 
* * int64 start_time_ms = 2; * @return This builder for chaining. */ public Builder clearStartTimeMs() { startTimeMs_ = 0L; onChanged(); return this; } private long endTimeMs_ ; /** *
       * End time of the highlighted audio segment
       * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } /** *
       * End time of the highlighted audio segment
       * 
* * int64 end_time_ms = 3; * @param value The endTimeMs to set. * @return This builder for chaining. */ public Builder setEndTimeMs(long value) { endTimeMs_ = value; onChanged(); return this; } /** *
       * End time of the highlighted audio segment
       * 
* * int64 end_time_ms = 3; * @return This builder for chaining. */ public Builder clearEndTimeMs() { endTimeMs_ = 0L; 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:speechkit.stt.v3.PhraseHighlight) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.PhraseHighlight) private static final yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight(); } public static yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PhraseHighlight parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PhraseHighlight(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 yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecognitionClassifierLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RecognitionClassifierLabel) com.google.protobuf.MessageOrBuilder { /** *
     * The label of the class predicted by the classifier
     * 
* * string label = 1; * @return The label. */ java.lang.String getLabel(); /** *
     * The label of the class predicted by the classifier
     * 
* * string label = 1; * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** *
     * The prediction confidence
     * 
* * double confidence = 2; * @return The confidence. */ double getConfidence(); } /** * Protobuf type {@code speechkit.stt.v3.RecognitionClassifierLabel} */ public static final class RecognitionClassifierLabel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RecognitionClassifierLabel) RecognitionClassifierLabelOrBuilder { private static final long serialVersionUID = 0L; // Use RecognitionClassifierLabel.newBuilder() to construct. private RecognitionClassifierLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecognitionClassifierLabel() { label_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecognitionClassifierLabel(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecognitionClassifierLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); label_ = s; break; } case 17: { confidence_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** *
     * The label of the class predicted by the classifier
     * 
* * string label = 1; * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; 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(); label_ = s; return s; } } /** *
     * The label of the class predicted by the classifier
     * 
* * string label = 1; * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIDENCE_FIELD_NUMBER = 2; private double confidence_; /** *
     * The prediction confidence
     * 
* * double confidence = 2; * @return The confidence. */ @java.lang.Override public double getConfidence() { return confidence_; } 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(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } if (java.lang.Double.doubleToRawLongBits(confidence_) != 0) { output.writeDouble(2, confidence_); } 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(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } if (java.lang.Double.doubleToRawLongBits(confidence_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, confidence_); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel other = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel) obj; if (!getLabel() .equals(other.getLabel())) return false; if (java.lang.Double.doubleToLongBits(getConfidence()) != java.lang.Double.doubleToLongBits( other.getConfidence())) 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) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getConfidence())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel 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(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel 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 speechkit.stt.v3.RecognitionClassifierLabel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RecognitionClassifierLabel) yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); label_ = ""; confidence_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierLabel_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel build() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel result = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel(this); result.label_ = label_; result.confidence_ = confidence_; 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); } if (other.getConfidence() != 0D) { setConfidence(other.getConfidence()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object label_ = ""; /** *
       * The label of the class predicted by the classifier
       * 
* * string label = 1; * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The label of the class predicted by the classifier
       * 
* * string label = 1; * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The label of the class predicted by the classifier
       * 
* * string label = 1; * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** *
       * The label of the class predicted by the classifier
       * 
* * string label = 1; * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** *
       * The label of the class predicted by the classifier
       * 
* * string label = 1; * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; onChanged(); return this; } private double confidence_ ; /** *
       * The prediction confidence
       * 
* * double confidence = 2; * @return The confidence. */ @java.lang.Override public double getConfidence() { return confidence_; } /** *
       * The prediction confidence
       * 
* * double confidence = 2; * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(double value) { confidence_ = value; onChanged(); return this; } /** *
       * The prediction confidence
       * 
* * double confidence = 2; * @return This builder for chaining. */ public Builder clearConfidence() { confidence_ = 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:speechkit.stt.v3.RecognitionClassifierLabel) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RecognitionClassifierLabel) private static final yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel(); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecognitionClassifierLabel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecognitionClassifierLabel(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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecognitionClassifierResultOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RecognitionClassifierResult) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the triggered classifier
     * 
* * string classifier = 1; * @return The classifier. */ java.lang.String getClassifier(); /** *
     * Name of the triggered classifier
     * 
* * string classifier = 1; * @return The bytes for classifier. */ com.google.protobuf.ByteString getClassifierBytes(); /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ java.util.List getHighlightsList(); /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight getHighlights(int index); /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ int getHighlightsCount(); /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ java.util.List getHighlightsOrBuilderList(); /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlightOrBuilder getHighlightsOrBuilder( int index); /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ java.util.List getLabelsList(); /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel getLabels(int index); /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ int getLabelsCount(); /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ java.util.List getLabelsOrBuilderList(); /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabelOrBuilder getLabelsOrBuilder( int index); } /** * Protobuf type {@code speechkit.stt.v3.RecognitionClassifierResult} */ public static final class RecognitionClassifierResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RecognitionClassifierResult) RecognitionClassifierResultOrBuilder { private static final long serialVersionUID = 0L; // Use RecognitionClassifierResult.newBuilder() to construct. private RecognitionClassifierResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecognitionClassifierResult() { classifier_ = ""; highlights_ = java.util.Collections.emptyList(); labels_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecognitionClassifierResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecognitionClassifierResult( 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(); classifier_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { highlights_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } highlights_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { labels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } labels_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.parser(), extensionRegistry)); 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)) { highlights_ = java.util.Collections.unmodifiableList(highlights_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierResult_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder.class); } public static final int CLASSIFIER_FIELD_NUMBER = 1; private volatile java.lang.Object classifier_; /** *
     * Name of the triggered classifier
     * 
* * string classifier = 1; * @return The classifier. */ @java.lang.Override public java.lang.String getClassifier() { java.lang.Object ref = classifier_; 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(); classifier_ = s; return s; } } /** *
     * Name of the triggered classifier
     * 
* * string classifier = 1; * @return The bytes for classifier. */ @java.lang.Override public com.google.protobuf.ByteString getClassifierBytes() { java.lang.Object ref = classifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HIGHLIGHTS_FIELD_NUMBER = 2; private java.util.List highlights_; /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ @java.lang.Override public java.util.List getHighlightsList() { return highlights_; } /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ @java.lang.Override public java.util.List getHighlightsOrBuilderList() { return highlights_; } /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ @java.lang.Override public int getHighlightsCount() { return highlights_.size(); } /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight getHighlights(int index) { return highlights_.get(index); } /** *
     * List of highlights, i.e. parts of phrase that determine the result of the classification
     * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlightOrBuilder getHighlightsOrBuilder( int index) { return highlights_.get(index); } public static final int LABELS_FIELD_NUMBER = 3; private java.util.List labels_; /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ @java.lang.Override public java.util.List getLabelsList() { return labels_; } /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ @java.lang.Override public java.util.List getLabelsOrBuilderList() { return labels_; } /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ @java.lang.Override public int getLabelsCount() { return labels_.size(); } /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel getLabels(int index) { return labels_.get(index); } /** *
     * Classifier predictions
     * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabelOrBuilder getLabelsOrBuilder( int index) { return labels_.get(index); } 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(classifier_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, classifier_); } for (int i = 0; i < highlights_.size(); i++) { output.writeMessage(2, highlights_.get(i)); } for (int i = 0; i < labels_.size(); i++) { output.writeMessage(3, labels_.get(i)); } 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(classifier_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, classifier_); } for (int i = 0; i < highlights_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, highlights_.get(i)); } for (int i = 0; i < labels_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, labels_.get(i)); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult other = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult) obj; if (!getClassifier() .equals(other.getClassifier())) return false; if (!getHighlightsList() .equals(other.getHighlightsList())) return false; if (!getLabelsList() .equals(other.getLabelsList())) 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) + CLASSIFIER_FIELD_NUMBER; hash = (53 * hash) + getClassifier().hashCode(); if (getHighlightsCount() > 0) { hash = (37 * hash) + HIGHLIGHTS_FIELD_NUMBER; hash = (53 * hash) + getHighlightsList().hashCode(); } if (getLabelsCount() > 0) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabelsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult 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(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult 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 speechkit.stt.v3.RecognitionClassifierResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RecognitionClassifierResult) yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierResult_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHighlightsFieldBuilder(); getLabelsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); classifier_ = ""; if (highlightsBuilder_ == null) { highlights_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { highlightsBuilder_.clear(); } if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { labelsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierResult_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult build() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult result = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult(this); int from_bitField0_ = bitField0_; result.classifier_ = classifier_; if (highlightsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { highlights_ = java.util.Collections.unmodifiableList(highlights_); bitField0_ = (bitField0_ & ~0x00000001); } result.highlights_ = highlights_; } else { result.highlights_ = highlightsBuilder_.build(); } if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000002); } result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.getDefaultInstance()) return this; if (!other.getClassifier().isEmpty()) { classifier_ = other.classifier_; onChanged(); } if (highlightsBuilder_ == null) { if (!other.highlights_.isEmpty()) { if (highlights_.isEmpty()) { highlights_ = other.highlights_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHighlightsIsMutable(); highlights_.addAll(other.highlights_); } onChanged(); } } else { if (!other.highlights_.isEmpty()) { if (highlightsBuilder_.isEmpty()) { highlightsBuilder_.dispose(); highlightsBuilder_ = null; highlights_ = other.highlights_; bitField0_ = (bitField0_ & ~0x00000001); highlightsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHighlightsFieldBuilder() : null; } else { highlightsBuilder_.addAllMessages(other.highlights_); } } } if (labelsBuilder_ == null) { if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } } else { if (!other.labels_.isEmpty()) { if (labelsBuilder_.isEmpty()) { labelsBuilder_.dispose(); labelsBuilder_ = null; labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000002); labelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelsFieldBuilder() : null; } else { labelsBuilder_.addAllMessages(other.labels_); } } } 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 { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object classifier_ = ""; /** *
       * Name of the triggered classifier
       * 
* * string classifier = 1; * @return The classifier. */ public java.lang.String getClassifier() { java.lang.Object ref = classifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); classifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the triggered classifier
       * 
* * string classifier = 1; * @return The bytes for classifier. */ public com.google.protobuf.ByteString getClassifierBytes() { java.lang.Object ref = classifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the triggered classifier
       * 
* * string classifier = 1; * @param value The classifier to set. * @return This builder for chaining. */ public Builder setClassifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } classifier_ = value; onChanged(); return this; } /** *
       * Name of the triggered classifier
       * 
* * string classifier = 1; * @return This builder for chaining. */ public Builder clearClassifier() { classifier_ = getDefaultInstance().getClassifier(); onChanged(); return this; } /** *
       * Name of the triggered classifier
       * 
* * string classifier = 1; * @param value The bytes for classifier to set. * @return This builder for chaining. */ public Builder setClassifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); classifier_ = value; onChanged(); return this; } private java.util.List highlights_ = java.util.Collections.emptyList(); private void ensureHighlightsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { highlights_ = new java.util.ArrayList(highlights_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlightOrBuilder> highlightsBuilder_; /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public java.util.List getHighlightsList() { if (highlightsBuilder_ == null) { return java.util.Collections.unmodifiableList(highlights_); } else { return highlightsBuilder_.getMessageList(); } } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public int getHighlightsCount() { if (highlightsBuilder_ == null) { return highlights_.size(); } else { return highlightsBuilder_.getCount(); } } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight getHighlights(int index) { if (highlightsBuilder_ == null) { return highlights_.get(index); } else { return highlightsBuilder_.getMessage(index); } } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder setHighlights( int index, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight value) { if (highlightsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHighlightsIsMutable(); highlights_.set(index, value); onChanged(); } else { highlightsBuilder_.setMessage(index, value); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder setHighlights( int index, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder builderForValue) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.set(index, builderForValue.build()); onChanged(); } else { highlightsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder addHighlights(yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight value) { if (highlightsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHighlightsIsMutable(); highlights_.add(value); onChanged(); } else { highlightsBuilder_.addMessage(value); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder addHighlights( int index, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight value) { if (highlightsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHighlightsIsMutable(); highlights_.add(index, value); onChanged(); } else { highlightsBuilder_.addMessage(index, value); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder addHighlights( yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder builderForValue) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.add(builderForValue.build()); onChanged(); } else { highlightsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder addHighlights( int index, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder builderForValue) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.add(index, builderForValue.build()); onChanged(); } else { highlightsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder addAllHighlights( java.lang.Iterable values) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, highlights_); onChanged(); } else { highlightsBuilder_.addAllMessages(values); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder clearHighlights() { if (highlightsBuilder_ == null) { highlights_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { highlightsBuilder_.clear(); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public Builder removeHighlights(int index) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.remove(index); onChanged(); } else { highlightsBuilder_.remove(index); } return this; } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder getHighlightsBuilder( int index) { return getHighlightsFieldBuilder().getBuilder(index); } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlightOrBuilder getHighlightsOrBuilder( int index) { if (highlightsBuilder_ == null) { return highlights_.get(index); } else { return highlightsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public java.util.List getHighlightsOrBuilderList() { if (highlightsBuilder_ != null) { return highlightsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(highlights_); } } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder addHighlightsBuilder() { return getHighlightsFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.getDefaultInstance()); } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder addHighlightsBuilder( int index) { return getHighlightsFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.getDefaultInstance()); } /** *
       * List of highlights, i.e. parts of phrase that determine the result of the classification
       * 
* * repeated .speechkit.stt.v3.PhraseHighlight highlights = 2; */ public java.util.List getHighlightsBuilderList() { return getHighlightsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlightOrBuilder> getHighlightsFieldBuilder() { if (highlightsBuilder_ == null) { highlightsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlight.Builder, yandex.cloud.api.ai.stt.v3.Stt.PhraseHighlightOrBuilder>( highlights_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); highlights_ = null; } return highlightsBuilder_; } private java.util.List labels_ = java.util.Collections.emptyList(); private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { labels_ = new java.util.ArrayList(labels_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabelOrBuilder> labelsBuilder_; /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public java.util.List getLabelsList() { if (labelsBuilder_ == null) { return java.util.Collections.unmodifiableList(labels_); } else { return labelsBuilder_.getMessageList(); } } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public int getLabelsCount() { if (labelsBuilder_ == null) { return labels_.size(); } else { return labelsBuilder_.getCount(); } } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel getLabels(int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessage(index); } } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder setLabels( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); } else { labelsBuilder_.setMessage(index, value); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder setLabels( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.set(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder addLabels(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(value); onChanged(); } else { labelsBuilder_.addMessage(value); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder addLabels( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(index, value); onChanged(); } else { labelsBuilder_.addMessage(index, value); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder addLabels( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder addLabels( int index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder addAllLabels( java.lang.Iterable values) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, labels_); onChanged(); } else { labelsBuilder_.addAllMessages(values); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { labelsBuilder_.clear(); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public Builder removeLabels(int index) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.remove(index); onChanged(); } else { labelsBuilder_.remove(index); } return this; } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder getLabelsBuilder( int index) { return getLabelsFieldBuilder().getBuilder(index); } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabelOrBuilder getLabelsOrBuilder( int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessageOrBuilder(index); } } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public java.util.List getLabelsOrBuilderList() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(labels_); } } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder addLabelsBuilder() { return getLabelsFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.getDefaultInstance()); } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder addLabelsBuilder( int index) { return getLabelsFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.getDefaultInstance()); } /** *
       * Classifier predictions
       * 
* * repeated .speechkit.stt.v3.RecognitionClassifierLabel labels = 3; */ public java.util.List getLabelsBuilderList() { return getLabelsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabelOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabel.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierLabelOrBuilder>( labels_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } @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:speechkit.stt.v3.RecognitionClassifierResult) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RecognitionClassifierResult) private static final yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult(); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecognitionClassifierResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecognitionClassifierResult(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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecognitionClassifierUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.RecognitionClassifierUpdate) com.google.protobuf.MessageOrBuilder { /** *
     * Response window type
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @return The enum numeric value on the wire for windowType. */ int getWindowTypeValue(); /** *
     * Response window type
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @return The windowType. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType getWindowType(); /** *
     * Start time of the audio segment used for classification
     * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ long getStartTimeMs(); /** *
     * End time of the audio segment used for classification
     * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ long getEndTimeMs(); /** *
     * Result for dictionary-based classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; * @return Whether the classifierResult field is set. */ boolean hasClassifierResult(); /** *
     * Result for dictionary-based classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; * @return The classifierResult. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult getClassifierResult(); /** *
     * Result for dictionary-based classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResultOrBuilder getClassifierResultOrBuilder(); } /** * Protobuf type {@code speechkit.stt.v3.RecognitionClassifierUpdate} */ public static final class RecognitionClassifierUpdate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.RecognitionClassifierUpdate) RecognitionClassifierUpdateOrBuilder { private static final long serialVersionUID = 0L; // Use RecognitionClassifierUpdate.newBuilder() to construct. private RecognitionClassifierUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecognitionClassifierUpdate() { windowType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecognitionClassifierUpdate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecognitionClassifierUpdate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { int rawValue = input.readEnum(); windowType_ = rawValue; break; } case 16: { startTimeMs_ = input.readInt64(); break; } case 24: { endTimeMs_ = input.readInt64(); break; } case 34: { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder subBuilder = null; if (classifierResult_ != null) { subBuilder = classifierResult_.toBuilder(); } classifierResult_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(classifierResult_); classifierResult_ = subBuilder.buildPartial(); } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.RecognitionClassifierUpdate.WindowType} */ public enum WindowType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Never used
       * 
* * WINDOW_TYPE_UNSPECIFIED = 0; */ WINDOW_TYPE_UNSPECIFIED(0), /** *
       * The result of applying the classifier to the last utterance response
       * 
* * LAST_UTTERANCE = 1; */ LAST_UTTERANCE(1), /** *
       * The result of applying the classifier to the last final response
       * 
* * LAST_FINAL = 2; */ LAST_FINAL(2), UNRECOGNIZED(-1), ; /** *
       * Never used
       * 
* * WINDOW_TYPE_UNSPECIFIED = 0; */ public static final int WINDOW_TYPE_UNSPECIFIED_VALUE = 0; /** *
       * The result of applying the classifier to the last utterance response
       * 
* * LAST_UTTERANCE = 1; */ public static final int LAST_UTTERANCE_VALUE = 1; /** *
       * The result of applying the classifier to the last final response
       * 
* * LAST_FINAL = 2; */ public static final int LAST_FINAL_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static WindowType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static WindowType forNumber(int value) { switch (value) { case 0: return WINDOW_TYPE_UNSPECIFIED; case 1: return LAST_UTTERANCE; case 2: return LAST_FINAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< WindowType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public WindowType findValueByNumber(int number) { return WindowType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDescriptor().getEnumTypes().get(0); } private static final WindowType[] VALUES = values(); public static WindowType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private WindowType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.RecognitionClassifierUpdate.WindowType) } public static final int WINDOW_TYPE_FIELD_NUMBER = 1; private int windowType_; /** *
     * Response window type
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @return The enum numeric value on the wire for windowType. */ @java.lang.Override public int getWindowTypeValue() { return windowType_; } /** *
     * Response window type
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @return The windowType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType getWindowType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType result = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType.valueOf(windowType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType.UNRECOGNIZED : result; } public static final int START_TIME_MS_FIELD_NUMBER = 2; private long startTimeMs_; /** *
     * Start time of the audio segment used for classification
     * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } public static final int END_TIME_MS_FIELD_NUMBER = 3; private long endTimeMs_; /** *
     * End time of the audio segment used for classification
     * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } public static final int CLASSIFIER_RESULT_FIELD_NUMBER = 4; private yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult classifierResult_; /** *
     * Result for dictionary-based classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; * @return Whether the classifierResult field is set. */ @java.lang.Override public boolean hasClassifierResult() { return classifierResult_ != null; } /** *
     * Result for dictionary-based classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; * @return The classifierResult. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult getClassifierResult() { return classifierResult_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.getDefaultInstance() : classifierResult_; } /** *
     * Result for dictionary-based classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResultOrBuilder getClassifierResultOrBuilder() { return getClassifierResult(); } 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 (windowType_ != yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType.WINDOW_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, windowType_); } if (startTimeMs_ != 0L) { output.writeInt64(2, startTimeMs_); } if (endTimeMs_ != 0L) { output.writeInt64(3, endTimeMs_); } if (classifierResult_ != null) { output.writeMessage(4, getClassifierResult()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (windowType_ != yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType.WINDOW_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, windowType_); } if (startTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startTimeMs_); } if (endTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, endTimeMs_); } if (classifierResult_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getClassifierResult()); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate other = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) obj; if (windowType_ != other.windowType_) return false; if (getStartTimeMs() != other.getStartTimeMs()) return false; if (getEndTimeMs() != other.getEndTimeMs()) return false; if (hasClassifierResult() != other.hasClassifierResult()) return false; if (hasClassifierResult()) { if (!getClassifierResult() .equals(other.getClassifierResult())) 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) + WINDOW_TYPE_FIELD_NUMBER; hash = (53 * hash) + windowType_; hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimeMs()); hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTimeMs()); if (hasClassifierResult()) { hash = (37 * hash) + CLASSIFIER_RESULT_FIELD_NUMBER; hash = (53 * hash) + getClassifierResult().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate 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(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate 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 speechkit.stt.v3.RecognitionClassifierUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.RecognitionClassifierUpdate) yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.class, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); windowType_ = 0; startTimeMs_ = 0L; endTimeMs_ = 0L; if (classifierResultBuilder_ == null) { classifierResult_ = null; } else { classifierResult_ = null; classifierResultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate build() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate result = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate(this); result.windowType_ = windowType_; result.startTimeMs_ = startTimeMs_; result.endTimeMs_ = endTimeMs_; if (classifierResultBuilder_ == null) { result.classifierResult_ = classifierResult_; } else { result.classifierResult_ = classifierResultBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance()) return this; if (other.windowType_ != 0) { setWindowTypeValue(other.getWindowTypeValue()); } if (other.getStartTimeMs() != 0L) { setStartTimeMs(other.getStartTimeMs()); } if (other.getEndTimeMs() != 0L) { setEndTimeMs(other.getEndTimeMs()); } if (other.hasClassifierResult()) { mergeClassifierResult(other.getClassifierResult()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int windowType_ = 0; /** *
       * Response window type
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @return The enum numeric value on the wire for windowType. */ @java.lang.Override public int getWindowTypeValue() { return windowType_; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @param value The enum numeric value on the wire for windowType to set. * @return This builder for chaining. */ public Builder setWindowTypeValue(int value) { windowType_ = value; onChanged(); return this; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @return The windowType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType getWindowType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType result = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType.valueOf(windowType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType.UNRECOGNIZED : result; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @param value The windowType to set. * @return This builder for chaining. */ public Builder setWindowType(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.WindowType value) { if (value == null) { throw new NullPointerException(); } windowType_ = value.getNumber(); onChanged(); return this; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate.WindowType window_type = 1; * @return This builder for chaining. */ public Builder clearWindowType() { windowType_ = 0; onChanged(); return this; } private long startTimeMs_ ; /** *
       * Start time of the audio segment used for classification
       * 
* * int64 start_time_ms = 2; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } /** *
       * Start time of the audio segment used for classification
       * 
* * int64 start_time_ms = 2; * @param value The startTimeMs to set. * @return This builder for chaining. */ public Builder setStartTimeMs(long value) { startTimeMs_ = value; onChanged(); return this; } /** *
       * Start time of the audio segment used for classification
       * 
* * int64 start_time_ms = 2; * @return This builder for chaining. */ public Builder clearStartTimeMs() { startTimeMs_ = 0L; onChanged(); return this; } private long endTimeMs_ ; /** *
       * End time of the audio segment used for classification
       * 
* * int64 end_time_ms = 3; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } /** *
       * End time of the audio segment used for classification
       * 
* * int64 end_time_ms = 3; * @param value The endTimeMs to set. * @return This builder for chaining. */ public Builder setEndTimeMs(long value) { endTimeMs_ = value; onChanged(); return this; } /** *
       * End time of the audio segment used for classification
       * 
* * int64 end_time_ms = 3; * @return This builder for chaining. */ public Builder clearEndTimeMs() { endTimeMs_ = 0L; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult classifierResult_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResultOrBuilder> classifierResultBuilder_; /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; * @return Whether the classifierResult field is set. */ public boolean hasClassifierResult() { return classifierResultBuilder_ != null || classifierResult_ != null; } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; * @return The classifierResult. */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult getClassifierResult() { if (classifierResultBuilder_ == null) { return classifierResult_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.getDefaultInstance() : classifierResult_; } else { return classifierResultBuilder_.getMessage(); } } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ public Builder setClassifierResult(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult value) { if (classifierResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } classifierResult_ = value; onChanged(); } else { classifierResultBuilder_.setMessage(value); } return this; } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ public Builder setClassifierResult( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder builderForValue) { if (classifierResultBuilder_ == null) { classifierResult_ = builderForValue.build(); onChanged(); } else { classifierResultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ public Builder mergeClassifierResult(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult value) { if (classifierResultBuilder_ == null) { if (classifierResult_ != null) { classifierResult_ = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.newBuilder(classifierResult_).mergeFrom(value).buildPartial(); } else { classifierResult_ = value; } onChanged(); } else { classifierResultBuilder_.mergeFrom(value); } return this; } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ public Builder clearClassifierResult() { if (classifierResultBuilder_ == null) { classifierResult_ = null; onChanged(); } else { classifierResult_ = null; classifierResultBuilder_ = null; } return this; } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder getClassifierResultBuilder() { onChanged(); return getClassifierResultFieldBuilder().getBuilder(); } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResultOrBuilder getClassifierResultOrBuilder() { if (classifierResultBuilder_ != null) { return classifierResultBuilder_.getMessageOrBuilder(); } else { return classifierResult_ == null ? yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.getDefaultInstance() : classifierResult_; } } /** *
       * Result for dictionary-based classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierResult classifier_result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResultOrBuilder> getClassifierResultFieldBuilder() { if (classifierResultBuilder_ == null) { classifierResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResult.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierResultOrBuilder>( getClassifierResult(), getParentForChildren(), isClean()); classifierResult_ = null; } return classifierResultBuilder_; } @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:speechkit.stt.v3.RecognitionClassifierUpdate) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.RecognitionClassifierUpdate) private static final yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate(); } public static yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecognitionClassifierUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecognitionClassifierUpdate(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 yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescriptiveStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.DescriptiveStatistics) com.google.protobuf.MessageOrBuilder { /** *
     * Minimum observed value
     * 
* * double min = 1; * @return The min. */ double getMin(); /** *
     * Maximum observed value
     * 
* * double max = 2; * @return The max. */ double getMax(); /** *
     * Estimated mean of distribution
     * 
* * double mean = 3; * @return The mean. */ double getMean(); /** *
     * Estimated standard deviation of distribution
     * 
* * double std = 4; * @return The std. */ double getStd(); /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ java.util.List getQuantilesList(); /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile getQuantiles(int index); /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ int getQuantilesCount(); /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ java.util.List getQuantilesOrBuilderList(); /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.QuantileOrBuilder getQuantilesOrBuilder( int index); } /** * Protobuf type {@code speechkit.stt.v3.DescriptiveStatistics} */ public static final class DescriptiveStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.DescriptiveStatistics) DescriptiveStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use DescriptiveStatistics.newBuilder() to construct. private DescriptiveStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescriptiveStatistics() { quantiles_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescriptiveStatistics(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DescriptiveStatistics( 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 9: { min_ = input.readDouble(); break; } case 17: { max_ = input.readDouble(); break; } case 25: { mean_ = input.readDouble(); break; } case 33: { std_ = input.readDouble(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { quantiles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } quantiles_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.parser(), extensionRegistry)); 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)) { quantiles_ = java.util.Collections.unmodifiableList(quantiles_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.class, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder.class); } public interface QuantileOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.DescriptiveStatistics.Quantile) com.google.protobuf.MessageOrBuilder { /** *
       * Quantile level in range (0, 1)
       * 
* * double level = 1; * @return The level. */ double getLevel(); /** *
       * Quantile value
       * 
* * double value = 2; * @return The value. */ double getValue(); } /** * Protobuf type {@code speechkit.stt.v3.DescriptiveStatistics.Quantile} */ public static final class Quantile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.DescriptiveStatistics.Quantile) QuantileOrBuilder { private static final long serialVersionUID = 0L; // Use Quantile.newBuilder() to construct. private Quantile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Quantile() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Quantile(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Quantile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 9: { level_ = input.readDouble(); break; } case 17: { value_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.class, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder.class); } public static final int LEVEL_FIELD_NUMBER = 1; private double level_; /** *
       * Quantile level in range (0, 1)
       * 
* * double level = 1; * @return The level. */ @java.lang.Override public double getLevel() { return level_; } public static final int VALUE_FIELD_NUMBER = 2; private double value_; /** *
       * Quantile value
       * 
* * double value = 2; * @return The value. */ @java.lang.Override public double getValue() { return value_; } 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 (java.lang.Double.doubleToRawLongBits(level_) != 0) { output.writeDouble(1, level_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(2, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(level_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, level_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, value_); } 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile other = (yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile) obj; if (java.lang.Double.doubleToLongBits(getLevel()) != java.lang.Double.doubleToLongBits( other.getLevel())) return false; if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits( other.getValue())) 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) + LEVEL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLevel())); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile 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(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile 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 speechkit.stt.v3.DescriptiveStatistics.Quantile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.DescriptiveStatistics.Quantile) yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.QuantileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.class, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); level_ = 0D; value_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile build() { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile result = new yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile(this); result.level_ = level_; result.value_ = value_; 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.getDefaultInstance()) return this; if (other.getLevel() != 0D) { setLevel(other.getLevel()); } if (other.getValue() != 0D) { setValue(other.getValue()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private double level_ ; /** *
         * Quantile level in range (0, 1)
         * 
* * double level = 1; * @return The level. */ @java.lang.Override public double getLevel() { return level_; } /** *
         * Quantile level in range (0, 1)
         * 
* * double level = 1; * @param value The level to set. * @return This builder for chaining. */ public Builder setLevel(double value) { level_ = value; onChanged(); return this; } /** *
         * Quantile level in range (0, 1)
         * 
* * double level = 1; * @return This builder for chaining. */ public Builder clearLevel() { level_ = 0D; onChanged(); return this; } private double value_ ; /** *
         * Quantile value
         * 
* * double value = 2; * @return The value. */ @java.lang.Override public double getValue() { return value_; } /** *
         * Quantile value
         * 
* * double value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; onChanged(); return this; } /** *
         * Quantile value
         * 
* * double value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = 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:speechkit.stt.v3.DescriptiveStatistics.Quantile) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.DescriptiveStatistics.Quantile) private static final yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile(); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Quantile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Quantile(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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MIN_FIELD_NUMBER = 1; private double min_; /** *
     * Minimum observed value
     * 
* * double min = 1; * @return The min. */ @java.lang.Override public double getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 2; private double max_; /** *
     * Maximum observed value
     * 
* * double max = 2; * @return The max. */ @java.lang.Override public double getMax() { return max_; } public static final int MEAN_FIELD_NUMBER = 3; private double mean_; /** *
     * Estimated mean of distribution
     * 
* * double mean = 3; * @return The mean. */ @java.lang.Override public double getMean() { return mean_; } public static final int STD_FIELD_NUMBER = 4; private double std_; /** *
     * Estimated standard deviation of distribution
     * 
* * double std = 4; * @return The std. */ @java.lang.Override public double getStd() { return std_; } public static final int QUANTILES_FIELD_NUMBER = 5; private java.util.List quantiles_; /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ @java.lang.Override public java.util.List getQuantilesList() { return quantiles_; } /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ @java.lang.Override public java.util.List getQuantilesOrBuilderList() { return quantiles_; } /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ @java.lang.Override public int getQuantilesCount() { return quantiles_.size(); } /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile getQuantiles(int index) { return quantiles_.get(index); } /** *
     * List of evaluated quantiles
     * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.QuantileOrBuilder getQuantilesOrBuilder( int index) { return quantiles_.get(index); } 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 (java.lang.Double.doubleToRawLongBits(min_) != 0) { output.writeDouble(1, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { output.writeDouble(2, max_); } if (java.lang.Double.doubleToRawLongBits(mean_) != 0) { output.writeDouble(3, mean_); } if (java.lang.Double.doubleToRawLongBits(std_) != 0) { output.writeDouble(4, std_); } for (int i = 0; i < quantiles_.size(); i++) { output.writeMessage(5, quantiles_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(min_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, max_); } if (java.lang.Double.doubleToRawLongBits(mean_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, mean_); } if (java.lang.Double.doubleToRawLongBits(std_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, std_); } for (int i = 0; i < quantiles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, quantiles_.get(i)); } 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics other = (yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics) obj; if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits( other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) != java.lang.Double.doubleToLongBits( other.getMax())) return false; if (java.lang.Double.doubleToLongBits(getMean()) != java.lang.Double.doubleToLongBits( other.getMean())) return false; if (java.lang.Double.doubleToLongBits(getStd()) != java.lang.Double.doubleToLongBits( other.getStd())) return false; if (!getQuantilesList() .equals(other.getQuantilesList())) 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) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMin())); hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMax())); hash = (37 * hash) + MEAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMean())); hash = (37 * hash) + STD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getStd())); if (getQuantilesCount() > 0) { hash = (37 * hash) + QUANTILES_FIELD_NUMBER; hash = (53 * hash) + getQuantilesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics 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(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics 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 speechkit.stt.v3.DescriptiveStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.DescriptiveStatistics) yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.class, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getQuantilesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); min_ = 0D; max_ = 0D; mean_ = 0D; std_ = 0D; if (quantilesBuilder_ == null) { quantiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { quantilesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_DescriptiveStatistics_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics build() { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics result = new yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics(this); int from_bitField0_ = bitField0_; result.min_ = min_; result.max_ = max_; result.mean_ = mean_; result.std_ = std_; if (quantilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { quantiles_ = java.util.Collections.unmodifiableList(quantiles_); bitField0_ = (bitField0_ & ~0x00000001); } result.quantiles_ = quantiles_; } else { result.quantiles_ = quantilesBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance()) return this; if (other.getMin() != 0D) { setMin(other.getMin()); } if (other.getMax() != 0D) { setMax(other.getMax()); } if (other.getMean() != 0D) { setMean(other.getMean()); } if (other.getStd() != 0D) { setStd(other.getStd()); } if (quantilesBuilder_ == null) { if (!other.quantiles_.isEmpty()) { if (quantiles_.isEmpty()) { quantiles_ = other.quantiles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureQuantilesIsMutable(); quantiles_.addAll(other.quantiles_); } onChanged(); } } else { if (!other.quantiles_.isEmpty()) { if (quantilesBuilder_.isEmpty()) { quantilesBuilder_.dispose(); quantilesBuilder_ = null; quantiles_ = other.quantiles_; bitField0_ = (bitField0_ & ~0x00000001); quantilesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQuantilesFieldBuilder() : null; } else { quantilesBuilder_.addAllMessages(other.quantiles_); } } } 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 { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double min_ ; /** *
       * Minimum observed value
       * 
* * double min = 1; * @return The min. */ @java.lang.Override public double getMin() { return min_; } /** *
       * Minimum observed value
       * 
* * double min = 1; * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { min_ = value; onChanged(); return this; } /** *
       * Minimum observed value
       * 
* * double min = 1; * @return This builder for chaining. */ public Builder clearMin() { min_ = 0D; onChanged(); return this; } private double max_ ; /** *
       * Maximum observed value
       * 
* * double max = 2; * @return The max. */ @java.lang.Override public double getMax() { return max_; } /** *
       * Maximum observed value
       * 
* * double max = 2; * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(double value) { max_ = value; onChanged(); return this; } /** *
       * Maximum observed value
       * 
* * double max = 2; * @return This builder for chaining. */ public Builder clearMax() { max_ = 0D; onChanged(); return this; } private double mean_ ; /** *
       * Estimated mean of distribution
       * 
* * double mean = 3; * @return The mean. */ @java.lang.Override public double getMean() { return mean_; } /** *
       * Estimated mean of distribution
       * 
* * double mean = 3; * @param value The mean to set. * @return This builder for chaining. */ public Builder setMean(double value) { mean_ = value; onChanged(); return this; } /** *
       * Estimated mean of distribution
       * 
* * double mean = 3; * @return This builder for chaining. */ public Builder clearMean() { mean_ = 0D; onChanged(); return this; } private double std_ ; /** *
       * Estimated standard deviation of distribution
       * 
* * double std = 4; * @return The std. */ @java.lang.Override public double getStd() { return std_; } /** *
       * Estimated standard deviation of distribution
       * 
* * double std = 4; * @param value The std to set. * @return This builder for chaining. */ public Builder setStd(double value) { std_ = value; onChanged(); return this; } /** *
       * Estimated standard deviation of distribution
       * 
* * double std = 4; * @return This builder for chaining. */ public Builder clearStd() { std_ = 0D; onChanged(); return this; } private java.util.List quantiles_ = java.util.Collections.emptyList(); private void ensureQuantilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { quantiles_ = new java.util.ArrayList(quantiles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.QuantileOrBuilder> quantilesBuilder_; /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public java.util.List getQuantilesList() { if (quantilesBuilder_ == null) { return java.util.Collections.unmodifiableList(quantiles_); } else { return quantilesBuilder_.getMessageList(); } } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public int getQuantilesCount() { if (quantilesBuilder_ == null) { return quantiles_.size(); } else { return quantilesBuilder_.getCount(); } } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile getQuantiles(int index) { if (quantilesBuilder_ == null) { return quantiles_.get(index); } else { return quantilesBuilder_.getMessage(index); } } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder setQuantiles( int index, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile value) { if (quantilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQuantilesIsMutable(); quantiles_.set(index, value); onChanged(); } else { quantilesBuilder_.setMessage(index, value); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder setQuantiles( int index, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder builderForValue) { if (quantilesBuilder_ == null) { ensureQuantilesIsMutable(); quantiles_.set(index, builderForValue.build()); onChanged(); } else { quantilesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder addQuantiles(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile value) { if (quantilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQuantilesIsMutable(); quantiles_.add(value); onChanged(); } else { quantilesBuilder_.addMessage(value); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder addQuantiles( int index, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile value) { if (quantilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQuantilesIsMutable(); quantiles_.add(index, value); onChanged(); } else { quantilesBuilder_.addMessage(index, value); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder addQuantiles( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder builderForValue) { if (quantilesBuilder_ == null) { ensureQuantilesIsMutable(); quantiles_.add(builderForValue.build()); onChanged(); } else { quantilesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder addQuantiles( int index, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder builderForValue) { if (quantilesBuilder_ == null) { ensureQuantilesIsMutable(); quantiles_.add(index, builderForValue.build()); onChanged(); } else { quantilesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder addAllQuantiles( java.lang.Iterable values) { if (quantilesBuilder_ == null) { ensureQuantilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, quantiles_); onChanged(); } else { quantilesBuilder_.addAllMessages(values); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder clearQuantiles() { if (quantilesBuilder_ == null) { quantiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { quantilesBuilder_.clear(); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public Builder removeQuantiles(int index) { if (quantilesBuilder_ == null) { ensureQuantilesIsMutable(); quantiles_.remove(index); onChanged(); } else { quantilesBuilder_.remove(index); } return this; } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder getQuantilesBuilder( int index) { return getQuantilesFieldBuilder().getBuilder(index); } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.QuantileOrBuilder getQuantilesOrBuilder( int index) { if (quantilesBuilder_ == null) { return quantiles_.get(index); } else { return quantilesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public java.util.List getQuantilesOrBuilderList() { if (quantilesBuilder_ != null) { return quantilesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(quantiles_); } } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder addQuantilesBuilder() { return getQuantilesFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.getDefaultInstance()); } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder addQuantilesBuilder( int index) { return getQuantilesFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.getDefaultInstance()); } /** *
       * List of evaluated quantiles
       * 
* * repeated .speechkit.stt.v3.DescriptiveStatistics.Quantile quantiles = 5; */ public java.util.List getQuantilesBuilderList() { return getQuantilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.QuantileOrBuilder> getQuantilesFieldBuilder() { if (quantilesBuilder_ == null) { quantilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Quantile.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.QuantileOrBuilder>( quantiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); quantiles_ = null; } return quantilesBuilder_; } @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:speechkit.stt.v3.DescriptiveStatistics) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.DescriptiveStatistics) private static final yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics(); } public static yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescriptiveStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DescriptiveStatistics(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 yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AudioSegmentBoundariesOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.AudioSegmentBoundaries) com.google.protobuf.MessageOrBuilder { /** *
     * Audio segment start time
     * 
* * int64 start_time_ms = 1; * @return The startTimeMs. */ long getStartTimeMs(); /** *
     * Audio segment end time
     * 
* * int64 end_time_ms = 2; * @return The endTimeMs. */ long getEndTimeMs(); } /** * Protobuf type {@code speechkit.stt.v3.AudioSegmentBoundaries} */ public static final class AudioSegmentBoundaries extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.AudioSegmentBoundaries) AudioSegmentBoundariesOrBuilder { private static final long serialVersionUID = 0L; // Use AudioSegmentBoundaries.newBuilder() to construct. private AudioSegmentBoundaries(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudioSegmentBoundaries() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudioSegmentBoundaries(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AudioSegmentBoundaries( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { startTimeMs_ = input.readInt64(); break; } case 16: { endTimeMs_ = input.readInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioSegmentBoundaries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioSegmentBoundaries_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.class, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder.class); } public static final int START_TIME_MS_FIELD_NUMBER = 1; private long startTimeMs_; /** *
     * Audio segment start time
     * 
* * int64 start_time_ms = 1; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } public static final int END_TIME_MS_FIELD_NUMBER = 2; private long endTimeMs_; /** *
     * Audio segment end time
     * 
* * int64 end_time_ms = 2; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } 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 (startTimeMs_ != 0L) { output.writeInt64(1, startTimeMs_); } if (endTimeMs_ != 0L) { output.writeInt64(2, endTimeMs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, startTimeMs_); } if (endTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, endTimeMs_); } 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 yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries other = (yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries) obj; if (getStartTimeMs() != other.getStartTimeMs()) return false; if (getEndTimeMs() != other.getEndTimeMs()) 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) + START_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimeMs()); hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTimeMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries 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 yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries 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 yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries 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(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries 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 speechkit.stt.v3.AudioSegmentBoundaries} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.AudioSegmentBoundaries) yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioSegmentBoundaries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioSegmentBoundaries_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.class, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); startTimeMs_ = 0L; endTimeMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_AudioSegmentBoundaries_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries build() { yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries result = new yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries(this); result.startTimeMs_ = startTimeMs_; result.endTimeMs_ = endTimeMs_; 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 yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance()) return this; if (other.getStartTimeMs() != 0L) { setStartTimeMs(other.getStartTimeMs()); } if (other.getEndTimeMs() != 0L) { setEndTimeMs(other.getEndTimeMs()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTimeMs_ ; /** *
       * Audio segment start time
       * 
* * int64 start_time_ms = 1; * @return The startTimeMs. */ @java.lang.Override public long getStartTimeMs() { return startTimeMs_; } /** *
       * Audio segment start time
       * 
* * int64 start_time_ms = 1; * @param value The startTimeMs to set. * @return This builder for chaining. */ public Builder setStartTimeMs(long value) { startTimeMs_ = value; onChanged(); return this; } /** *
       * Audio segment start time
       * 
* * int64 start_time_ms = 1; * @return This builder for chaining. */ public Builder clearStartTimeMs() { startTimeMs_ = 0L; onChanged(); return this; } private long endTimeMs_ ; /** *
       * Audio segment end time
       * 
* * int64 end_time_ms = 2; * @return The endTimeMs. */ @java.lang.Override public long getEndTimeMs() { return endTimeMs_; } /** *
       * Audio segment end time
       * 
* * int64 end_time_ms = 2; * @param value The endTimeMs to set. * @return This builder for chaining. */ public Builder setEndTimeMs(long value) { endTimeMs_ = value; onChanged(); return this; } /** *
       * Audio segment end time
       * 
* * int64 end_time_ms = 2; * @return This builder for chaining. */ public Builder clearEndTimeMs() { endTimeMs_ = 0L; 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:speechkit.stt.v3.AudioSegmentBoundaries) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.AudioSegmentBoundaries) private static final yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries(); } public static yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudioSegmentBoundaries parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AudioSegmentBoundaries(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 yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SpeakerAnalysisOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.SpeakerAnalysis) com.google.protobuf.MessageOrBuilder { /** *
     * Speaker tag
     * 
* * string speaker_tag = 1; * @return The speakerTag. */ java.lang.String getSpeakerTag(); /** *
     * Speaker tag
     * 
* * string speaker_tag = 1; * @return The bytes for speakerTag. */ com.google.protobuf.ByteString getSpeakerTagBytes(); /** *
     * Response window type
     * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @return The enum numeric value on the wire for windowType. */ int getWindowTypeValue(); /** *
     * Response window type
     * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @return The windowType. */ yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType getWindowType(); /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; * @return Whether the speechBoundaries field is set. */ boolean hasSpeechBoundaries(); /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; * @return The speechBoundaries. */ yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getSpeechBoundaries(); /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getSpeechBoundariesOrBuilder(); /** *
     * Total speech duration
     * 
* * int64 total_speech_ms = 4; * @return The totalSpeechMs. */ long getTotalSpeechMs(); /** *
     * Speech ratio within audio segment
     * 
* * double speech_ratio = 5; * @return The speechRatio. */ double getSpeechRatio(); /** *
     * Total silence duration
     * 
* * int64 total_silence_ms = 6; * @return The totalSilenceMs. */ long getTotalSilenceMs(); /** *
     * Silence ratio within audio segment
     * 
* * double silence_ratio = 7; * @return The silenceRatio. */ double getSilenceRatio(); /** *
     * Number of words in recognized speech
     * 
* * int64 words_count = 8; * @return The wordsCount. */ long getWordsCount(); /** *
     * Number of letters in recognized speech
     * 
* * int64 letters_count = 9; * @return The lettersCount. */ long getLettersCount(); /** *
     * Descriptive statistics for words per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; * @return Whether the wordsPerSecond field is set. */ boolean hasWordsPerSecond(); /** *
     * Descriptive statistics for words per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; * @return The wordsPerSecond. */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getWordsPerSecond(); /** *
     * Descriptive statistics for words per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getWordsPerSecondOrBuilder(); /** *
     * Descriptive statistics for letters per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; * @return Whether the lettersPerSecond field is set. */ boolean hasLettersPerSecond(); /** *
     * Descriptive statistics for letters per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; * @return The lettersPerSecond. */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getLettersPerSecond(); /** *
     * Descriptive statistics for letters per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getLettersPerSecondOrBuilder(); /** *
     * Descriptive statistics for words per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; * @return Whether the wordsPerUtterance field is set. */ boolean hasWordsPerUtterance(); /** *
     * Descriptive statistics for words per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; * @return The wordsPerUtterance. */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getWordsPerUtterance(); /** *
     * Descriptive statistics for words per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getWordsPerUtteranceOrBuilder(); /** *
     * Descriptive statistics for letters per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; * @return Whether the lettersPerUtterance field is set. */ boolean hasLettersPerUtterance(); /** *
     * Descriptive statistics for letters per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; * @return The lettersPerUtterance. */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getLettersPerUtterance(); /** *
     * Descriptive statistics for letters per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getLettersPerUtteranceOrBuilder(); /** *
     * Number of utterances
     * 
* * int64 utterance_count = 14; * @return The utteranceCount. */ long getUtteranceCount(); /** *
     * Descriptive statistics for utterance duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; * @return Whether the utteranceDurationEstimation field is set. */ boolean hasUtteranceDurationEstimation(); /** *
     * Descriptive statistics for utterance duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; * @return The utteranceDurationEstimation. */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getUtteranceDurationEstimation(); /** *
     * Descriptive statistics for utterance duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getUtteranceDurationEstimationOrBuilder(); } /** * Protobuf type {@code speechkit.stt.v3.SpeakerAnalysis} */ public static final class SpeakerAnalysis extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.SpeakerAnalysis) SpeakerAnalysisOrBuilder { private static final long serialVersionUID = 0L; // Use SpeakerAnalysis.newBuilder() to construct. private SpeakerAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpeakerAnalysis() { speakerTag_ = ""; windowType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpeakerAnalysis(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SpeakerAnalysis( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); speakerTag_ = s; break; } case 16: { int rawValue = input.readEnum(); windowType_ = rawValue; break; } case 26: { yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder subBuilder = null; if (speechBoundaries_ != null) { subBuilder = speechBoundaries_.toBuilder(); } speechBoundaries_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(speechBoundaries_); speechBoundaries_ = subBuilder.buildPartial(); } break; } case 32: { totalSpeechMs_ = input.readInt64(); break; } case 41: { speechRatio_ = input.readDouble(); break; } case 48: { totalSilenceMs_ = input.readInt64(); break; } case 57: { silenceRatio_ = input.readDouble(); break; } case 64: { wordsCount_ = input.readInt64(); break; } case 72: { lettersCount_ = input.readInt64(); break; } case 82: { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder subBuilder = null; if (wordsPerSecond_ != null) { subBuilder = wordsPerSecond_.toBuilder(); } wordsPerSecond_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(wordsPerSecond_); wordsPerSecond_ = subBuilder.buildPartial(); } break; } case 90: { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder subBuilder = null; if (lettersPerSecond_ != null) { subBuilder = lettersPerSecond_.toBuilder(); } lettersPerSecond_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lettersPerSecond_); lettersPerSecond_ = subBuilder.buildPartial(); } break; } case 98: { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder subBuilder = null; if (wordsPerUtterance_ != null) { subBuilder = wordsPerUtterance_.toBuilder(); } wordsPerUtterance_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(wordsPerUtterance_); wordsPerUtterance_ = subBuilder.buildPartial(); } break; } case 106: { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder subBuilder = null; if (lettersPerUtterance_ != null) { subBuilder = lettersPerUtterance_.toBuilder(); } lettersPerUtterance_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lettersPerUtterance_); lettersPerUtterance_ = subBuilder.buildPartial(); } break; } case 112: { utteranceCount_ = input.readInt64(); break; } case 122: { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder subBuilder = null; if (utteranceDurationEstimation_ != null) { subBuilder = utteranceDurationEstimation_.toBuilder(); } utteranceDurationEstimation_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(utteranceDurationEstimation_); utteranceDurationEstimation_ = subBuilder.buildPartial(); } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeakerAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeakerAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.class, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder.class); } /** * Protobuf enum {@code speechkit.stt.v3.SpeakerAnalysis.WindowType} */ public enum WindowType implements com.google.protobuf.ProtocolMessageEnum { /** * WINDOW_TYPE_UNSPECIFIED = 0; */ WINDOW_TYPE_UNSPECIFIED(0), /** *
       * Stats for all received audio
       * 
* * TOTAL = 1; */ TOTAL(1), /** *
       * Stats for last utterance
       * 
* * LAST_UTTERANCE = 2; */ LAST_UTTERANCE(2), UNRECOGNIZED(-1), ; /** * WINDOW_TYPE_UNSPECIFIED = 0; */ public static final int WINDOW_TYPE_UNSPECIFIED_VALUE = 0; /** *
       * Stats for all received audio
       * 
* * TOTAL = 1; */ public static final int TOTAL_VALUE = 1; /** *
       * Stats for last utterance
       * 
* * LAST_UTTERANCE = 2; */ public static final int LAST_UTTERANCE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static WindowType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static WindowType forNumber(int value) { switch (value) { case 0: return WINDOW_TYPE_UNSPECIFIED; case 1: return TOTAL; case 2: return LAST_UTTERANCE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< WindowType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public WindowType findValueByNumber(int number) { return WindowType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDescriptor().getEnumTypes().get(0); } private static final WindowType[] VALUES = values(); public static WindowType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private WindowType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:speechkit.stt.v3.SpeakerAnalysis.WindowType) } public static final int SPEAKER_TAG_FIELD_NUMBER = 1; private volatile java.lang.Object speakerTag_; /** *
     * Speaker tag
     * 
* * string speaker_tag = 1; * @return The speakerTag. */ @java.lang.Override public java.lang.String getSpeakerTag() { java.lang.Object ref = speakerTag_; 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(); speakerTag_ = s; return s; } } /** *
     * Speaker tag
     * 
* * string speaker_tag = 1; * @return The bytes for speakerTag. */ @java.lang.Override public com.google.protobuf.ByteString getSpeakerTagBytes() { java.lang.Object ref = speakerTag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); speakerTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WINDOW_TYPE_FIELD_NUMBER = 2; private int windowType_; /** *
     * Response window type
     * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @return The enum numeric value on the wire for windowType. */ @java.lang.Override public int getWindowTypeValue() { return windowType_; } /** *
     * Response window type
     * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @return The windowType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType getWindowType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType result = yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType.valueOf(windowType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType.UNRECOGNIZED : result; } public static final int SPEECH_BOUNDARIES_FIELD_NUMBER = 3; private yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries speechBoundaries_; /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; * @return Whether the speechBoundaries field is set. */ @java.lang.Override public boolean hasSpeechBoundaries() { return speechBoundaries_ != null; } /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; * @return The speechBoundaries. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getSpeechBoundaries() { return speechBoundaries_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance() : speechBoundaries_; } /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getSpeechBoundariesOrBuilder() { return getSpeechBoundaries(); } public static final int TOTAL_SPEECH_MS_FIELD_NUMBER = 4; private long totalSpeechMs_; /** *
     * Total speech duration
     * 
* * int64 total_speech_ms = 4; * @return The totalSpeechMs. */ @java.lang.Override public long getTotalSpeechMs() { return totalSpeechMs_; } public static final int SPEECH_RATIO_FIELD_NUMBER = 5; private double speechRatio_; /** *
     * Speech ratio within audio segment
     * 
* * double speech_ratio = 5; * @return The speechRatio. */ @java.lang.Override public double getSpeechRatio() { return speechRatio_; } public static final int TOTAL_SILENCE_MS_FIELD_NUMBER = 6; private long totalSilenceMs_; /** *
     * Total silence duration
     * 
* * int64 total_silence_ms = 6; * @return The totalSilenceMs. */ @java.lang.Override public long getTotalSilenceMs() { return totalSilenceMs_; } public static final int SILENCE_RATIO_FIELD_NUMBER = 7; private double silenceRatio_; /** *
     * Silence ratio within audio segment
     * 
* * double silence_ratio = 7; * @return The silenceRatio. */ @java.lang.Override public double getSilenceRatio() { return silenceRatio_; } public static final int WORDS_COUNT_FIELD_NUMBER = 8; private long wordsCount_; /** *
     * Number of words in recognized speech
     * 
* * int64 words_count = 8; * @return The wordsCount. */ @java.lang.Override public long getWordsCount() { return wordsCount_; } public static final int LETTERS_COUNT_FIELD_NUMBER = 9; private long lettersCount_; /** *
     * Number of letters in recognized speech
     * 
* * int64 letters_count = 9; * @return The lettersCount. */ @java.lang.Override public long getLettersCount() { return lettersCount_; } public static final int WORDS_PER_SECOND_FIELD_NUMBER = 10; private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics wordsPerSecond_; /** *
     * Descriptive statistics for words per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; * @return Whether the wordsPerSecond field is set. */ @java.lang.Override public boolean hasWordsPerSecond() { return wordsPerSecond_ != null; } /** *
     * Descriptive statistics for words per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; * @return The wordsPerSecond. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getWordsPerSecond() { return wordsPerSecond_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : wordsPerSecond_; } /** *
     * Descriptive statistics for words per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getWordsPerSecondOrBuilder() { return getWordsPerSecond(); } public static final int LETTERS_PER_SECOND_FIELD_NUMBER = 11; private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics lettersPerSecond_; /** *
     * Descriptive statistics for letters per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; * @return Whether the lettersPerSecond field is set. */ @java.lang.Override public boolean hasLettersPerSecond() { return lettersPerSecond_ != null; } /** *
     * Descriptive statistics for letters per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; * @return The lettersPerSecond. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getLettersPerSecond() { return lettersPerSecond_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : lettersPerSecond_; } /** *
     * Descriptive statistics for letters per second distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getLettersPerSecondOrBuilder() { return getLettersPerSecond(); } public static final int WORDS_PER_UTTERANCE_FIELD_NUMBER = 12; private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics wordsPerUtterance_; /** *
     * Descriptive statistics for words per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; * @return Whether the wordsPerUtterance field is set. */ @java.lang.Override public boolean hasWordsPerUtterance() { return wordsPerUtterance_ != null; } /** *
     * Descriptive statistics for words per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; * @return The wordsPerUtterance. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getWordsPerUtterance() { return wordsPerUtterance_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : wordsPerUtterance_; } /** *
     * Descriptive statistics for words per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getWordsPerUtteranceOrBuilder() { return getWordsPerUtterance(); } public static final int LETTERS_PER_UTTERANCE_FIELD_NUMBER = 13; private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics lettersPerUtterance_; /** *
     * Descriptive statistics for letters per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; * @return Whether the lettersPerUtterance field is set. */ @java.lang.Override public boolean hasLettersPerUtterance() { return lettersPerUtterance_ != null; } /** *
     * Descriptive statistics for letters per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; * @return The lettersPerUtterance. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getLettersPerUtterance() { return lettersPerUtterance_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : lettersPerUtterance_; } /** *
     * Descriptive statistics for letters per utterance distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getLettersPerUtteranceOrBuilder() { return getLettersPerUtterance(); } public static final int UTTERANCE_COUNT_FIELD_NUMBER = 14; private long utteranceCount_; /** *
     * Number of utterances
     * 
* * int64 utterance_count = 14; * @return The utteranceCount. */ @java.lang.Override public long getUtteranceCount() { return utteranceCount_; } public static final int UTTERANCE_DURATION_ESTIMATION_FIELD_NUMBER = 15; private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics utteranceDurationEstimation_; /** *
     * Descriptive statistics for utterance duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; * @return Whether the utteranceDurationEstimation field is set. */ @java.lang.Override public boolean hasUtteranceDurationEstimation() { return utteranceDurationEstimation_ != null; } /** *
     * Descriptive statistics for utterance duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; * @return The utteranceDurationEstimation. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getUtteranceDurationEstimation() { return utteranceDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : utteranceDurationEstimation_; } /** *
     * Descriptive statistics for utterance duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getUtteranceDurationEstimationOrBuilder() { return getUtteranceDurationEstimation(); } 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(speakerTag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speakerTag_); } if (windowType_ != yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType.WINDOW_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, windowType_); } if (speechBoundaries_ != null) { output.writeMessage(3, getSpeechBoundaries()); } if (totalSpeechMs_ != 0L) { output.writeInt64(4, totalSpeechMs_); } if (java.lang.Double.doubleToRawLongBits(speechRatio_) != 0) { output.writeDouble(5, speechRatio_); } if (totalSilenceMs_ != 0L) { output.writeInt64(6, totalSilenceMs_); } if (java.lang.Double.doubleToRawLongBits(silenceRatio_) != 0) { output.writeDouble(7, silenceRatio_); } if (wordsCount_ != 0L) { output.writeInt64(8, wordsCount_); } if (lettersCount_ != 0L) { output.writeInt64(9, lettersCount_); } if (wordsPerSecond_ != null) { output.writeMessage(10, getWordsPerSecond()); } if (lettersPerSecond_ != null) { output.writeMessage(11, getLettersPerSecond()); } if (wordsPerUtterance_ != null) { output.writeMessage(12, getWordsPerUtterance()); } if (lettersPerUtterance_ != null) { output.writeMessage(13, getLettersPerUtterance()); } if (utteranceCount_ != 0L) { output.writeInt64(14, utteranceCount_); } if (utteranceDurationEstimation_ != null) { output.writeMessage(15, getUtteranceDurationEstimation()); } 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(speakerTag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speakerTag_); } if (windowType_ != yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType.WINDOW_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, windowType_); } if (speechBoundaries_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSpeechBoundaries()); } if (totalSpeechMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, totalSpeechMs_); } if (java.lang.Double.doubleToRawLongBits(speechRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, speechRatio_); } if (totalSilenceMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, totalSilenceMs_); } if (java.lang.Double.doubleToRawLongBits(silenceRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, silenceRatio_); } if (wordsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, wordsCount_); } if (lettersCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, lettersCount_); } if (wordsPerSecond_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getWordsPerSecond()); } if (lettersPerSecond_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getLettersPerSecond()); } if (wordsPerUtterance_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getWordsPerUtterance()); } if (lettersPerUtterance_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getLettersPerUtterance()); } if (utteranceCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, utteranceCount_); } if (utteranceDurationEstimation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getUtteranceDurationEstimation()); } 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 yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis other = (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) obj; if (!getSpeakerTag() .equals(other.getSpeakerTag())) return false; if (windowType_ != other.windowType_) return false; if (hasSpeechBoundaries() != other.hasSpeechBoundaries()) return false; if (hasSpeechBoundaries()) { if (!getSpeechBoundaries() .equals(other.getSpeechBoundaries())) return false; } if (getTotalSpeechMs() != other.getTotalSpeechMs()) return false; if (java.lang.Double.doubleToLongBits(getSpeechRatio()) != java.lang.Double.doubleToLongBits( other.getSpeechRatio())) return false; if (getTotalSilenceMs() != other.getTotalSilenceMs()) return false; if (java.lang.Double.doubleToLongBits(getSilenceRatio()) != java.lang.Double.doubleToLongBits( other.getSilenceRatio())) return false; if (getWordsCount() != other.getWordsCount()) return false; if (getLettersCount() != other.getLettersCount()) return false; if (hasWordsPerSecond() != other.hasWordsPerSecond()) return false; if (hasWordsPerSecond()) { if (!getWordsPerSecond() .equals(other.getWordsPerSecond())) return false; } if (hasLettersPerSecond() != other.hasLettersPerSecond()) return false; if (hasLettersPerSecond()) { if (!getLettersPerSecond() .equals(other.getLettersPerSecond())) return false; } if (hasWordsPerUtterance() != other.hasWordsPerUtterance()) return false; if (hasWordsPerUtterance()) { if (!getWordsPerUtterance() .equals(other.getWordsPerUtterance())) return false; } if (hasLettersPerUtterance() != other.hasLettersPerUtterance()) return false; if (hasLettersPerUtterance()) { if (!getLettersPerUtterance() .equals(other.getLettersPerUtterance())) return false; } if (getUtteranceCount() != other.getUtteranceCount()) return false; if (hasUtteranceDurationEstimation() != other.hasUtteranceDurationEstimation()) return false; if (hasUtteranceDurationEstimation()) { if (!getUtteranceDurationEstimation() .equals(other.getUtteranceDurationEstimation())) 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) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag().hashCode(); hash = (37 * hash) + WINDOW_TYPE_FIELD_NUMBER; hash = (53 * hash) + windowType_; if (hasSpeechBoundaries()) { hash = (37 * hash) + SPEECH_BOUNDARIES_FIELD_NUMBER; hash = (53 * hash) + getSpeechBoundaries().hashCode(); } hash = (37 * hash) + TOTAL_SPEECH_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalSpeechMs()); hash = (37 * hash) + SPEECH_RATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSpeechRatio())); hash = (37 * hash) + TOTAL_SILENCE_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalSilenceMs()); hash = (37 * hash) + SILENCE_RATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSilenceRatio())); hash = (37 * hash) + WORDS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWordsCount()); hash = (37 * hash) + LETTERS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLettersCount()); if (hasWordsPerSecond()) { hash = (37 * hash) + WORDS_PER_SECOND_FIELD_NUMBER; hash = (53 * hash) + getWordsPerSecond().hashCode(); } if (hasLettersPerSecond()) { hash = (37 * hash) + LETTERS_PER_SECOND_FIELD_NUMBER; hash = (53 * hash) + getLettersPerSecond().hashCode(); } if (hasWordsPerUtterance()) { hash = (37 * hash) + WORDS_PER_UTTERANCE_FIELD_NUMBER; hash = (53 * hash) + getWordsPerUtterance().hashCode(); } if (hasLettersPerUtterance()) { hash = (37 * hash) + LETTERS_PER_UTTERANCE_FIELD_NUMBER; hash = (53 * hash) + getLettersPerUtterance().hashCode(); } hash = (37 * hash) + UTTERANCE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUtteranceCount()); if (hasUtteranceDurationEstimation()) { hash = (37 * hash) + UTTERANCE_DURATION_ESTIMATION_FIELD_NUMBER; hash = (53 * hash) + getUtteranceDurationEstimation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis 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 yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis 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 yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis 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(yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis 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 speechkit.stt.v3.SpeakerAnalysis} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.SpeakerAnalysis) yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysisOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeakerAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeakerAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.class, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); speakerTag_ = ""; windowType_ = 0; if (speechBoundariesBuilder_ == null) { speechBoundaries_ = null; } else { speechBoundaries_ = null; speechBoundariesBuilder_ = null; } totalSpeechMs_ = 0L; speechRatio_ = 0D; totalSilenceMs_ = 0L; silenceRatio_ = 0D; wordsCount_ = 0L; lettersCount_ = 0L; if (wordsPerSecondBuilder_ == null) { wordsPerSecond_ = null; } else { wordsPerSecond_ = null; wordsPerSecondBuilder_ = null; } if (lettersPerSecondBuilder_ == null) { lettersPerSecond_ = null; } else { lettersPerSecond_ = null; lettersPerSecondBuilder_ = null; } if (wordsPerUtteranceBuilder_ == null) { wordsPerUtterance_ = null; } else { wordsPerUtterance_ = null; wordsPerUtteranceBuilder_ = null; } if (lettersPerUtteranceBuilder_ == null) { lettersPerUtterance_ = null; } else { lettersPerUtterance_ = null; lettersPerUtteranceBuilder_ = null; } utteranceCount_ = 0L; if (utteranceDurationEstimationBuilder_ == null) { utteranceDurationEstimation_ = null; } else { utteranceDurationEstimation_ = null; utteranceDurationEstimationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_SpeakerAnalysis_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis build() { yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis result = new yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis(this); result.speakerTag_ = speakerTag_; result.windowType_ = windowType_; if (speechBoundariesBuilder_ == null) { result.speechBoundaries_ = speechBoundaries_; } else { result.speechBoundaries_ = speechBoundariesBuilder_.build(); } result.totalSpeechMs_ = totalSpeechMs_; result.speechRatio_ = speechRatio_; result.totalSilenceMs_ = totalSilenceMs_; result.silenceRatio_ = silenceRatio_; result.wordsCount_ = wordsCount_; result.lettersCount_ = lettersCount_; if (wordsPerSecondBuilder_ == null) { result.wordsPerSecond_ = wordsPerSecond_; } else { result.wordsPerSecond_ = wordsPerSecondBuilder_.build(); } if (lettersPerSecondBuilder_ == null) { result.lettersPerSecond_ = lettersPerSecond_; } else { result.lettersPerSecond_ = lettersPerSecondBuilder_.build(); } if (wordsPerUtteranceBuilder_ == null) { result.wordsPerUtterance_ = wordsPerUtterance_; } else { result.wordsPerUtterance_ = wordsPerUtteranceBuilder_.build(); } if (lettersPerUtteranceBuilder_ == null) { result.lettersPerUtterance_ = lettersPerUtterance_; } else { result.lettersPerUtterance_ = lettersPerUtteranceBuilder_.build(); } result.utteranceCount_ = utteranceCount_; if (utteranceDurationEstimationBuilder_ == null) { result.utteranceDurationEstimation_ = utteranceDurationEstimation_; } else { result.utteranceDurationEstimation_ = utteranceDurationEstimationBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance()) return this; if (!other.getSpeakerTag().isEmpty()) { speakerTag_ = other.speakerTag_; onChanged(); } if (other.windowType_ != 0) { setWindowTypeValue(other.getWindowTypeValue()); } if (other.hasSpeechBoundaries()) { mergeSpeechBoundaries(other.getSpeechBoundaries()); } if (other.getTotalSpeechMs() != 0L) { setTotalSpeechMs(other.getTotalSpeechMs()); } if (other.getSpeechRatio() != 0D) { setSpeechRatio(other.getSpeechRatio()); } if (other.getTotalSilenceMs() != 0L) { setTotalSilenceMs(other.getTotalSilenceMs()); } if (other.getSilenceRatio() != 0D) { setSilenceRatio(other.getSilenceRatio()); } if (other.getWordsCount() != 0L) { setWordsCount(other.getWordsCount()); } if (other.getLettersCount() != 0L) { setLettersCount(other.getLettersCount()); } if (other.hasWordsPerSecond()) { mergeWordsPerSecond(other.getWordsPerSecond()); } if (other.hasLettersPerSecond()) { mergeLettersPerSecond(other.getLettersPerSecond()); } if (other.hasWordsPerUtterance()) { mergeWordsPerUtterance(other.getWordsPerUtterance()); } if (other.hasLettersPerUtterance()) { mergeLettersPerUtterance(other.getLettersPerUtterance()); } if (other.getUtteranceCount() != 0L) { setUtteranceCount(other.getUtteranceCount()); } if (other.hasUtteranceDurationEstimation()) { mergeUtteranceDurationEstimation(other.getUtteranceDurationEstimation()); } 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 { yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object speakerTag_ = ""; /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @return The speakerTag. */ public java.lang.String getSpeakerTag() { java.lang.Object ref = speakerTag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); speakerTag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @return The bytes for speakerTag. */ public com.google.protobuf.ByteString getSpeakerTagBytes() { java.lang.Object ref = speakerTag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); speakerTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } speakerTag_ = value; onChanged(); return this; } /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @return This builder for chaining. */ public Builder clearSpeakerTag() { speakerTag_ = getDefaultInstance().getSpeakerTag(); onChanged(); return this; } /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @param value The bytes for speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); speakerTag_ = value; onChanged(); return this; } private int windowType_ = 0; /** *
       * Response window type
       * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @return The enum numeric value on the wire for windowType. */ @java.lang.Override public int getWindowTypeValue() { return windowType_; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @param value The enum numeric value on the wire for windowType to set. * @return This builder for chaining. */ public Builder setWindowTypeValue(int value) { windowType_ = value; onChanged(); return this; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @return The windowType. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType getWindowType() { @SuppressWarnings("deprecation") yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType result = yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType.valueOf(windowType_); return result == null ? yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType.UNRECOGNIZED : result; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @param value The windowType to set. * @return This builder for chaining. */ public Builder setWindowType(yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.WindowType value) { if (value == null) { throw new NullPointerException(); } windowType_ = value.getNumber(); onChanged(); return this; } /** *
       * Response window type
       * 
* * .speechkit.stt.v3.SpeakerAnalysis.WindowType window_type = 2; * @return This builder for chaining. */ public Builder clearWindowType() { windowType_ = 0; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries speechBoundaries_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder> speechBoundariesBuilder_; /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; * @return Whether the speechBoundaries field is set. */ public boolean hasSpeechBoundaries() { return speechBoundariesBuilder_ != null || speechBoundaries_ != null; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; * @return The speechBoundaries. */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getSpeechBoundaries() { if (speechBoundariesBuilder_ == null) { return speechBoundaries_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance() : speechBoundaries_; } else { return speechBoundariesBuilder_.getMessage(); } } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ public Builder setSpeechBoundaries(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries value) { if (speechBoundariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } speechBoundaries_ = value; onChanged(); } else { speechBoundariesBuilder_.setMessage(value); } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ public Builder setSpeechBoundaries( yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder builderForValue) { if (speechBoundariesBuilder_ == null) { speechBoundaries_ = builderForValue.build(); onChanged(); } else { speechBoundariesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ public Builder mergeSpeechBoundaries(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries value) { if (speechBoundariesBuilder_ == null) { if (speechBoundaries_ != null) { speechBoundaries_ = yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.newBuilder(speechBoundaries_).mergeFrom(value).buildPartial(); } else { speechBoundaries_ = value; } onChanged(); } else { speechBoundariesBuilder_.mergeFrom(value); } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ public Builder clearSpeechBoundaries() { if (speechBoundariesBuilder_ == null) { speechBoundaries_ = null; onChanged(); } else { speechBoundaries_ = null; speechBoundariesBuilder_ = null; } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder getSpeechBoundariesBuilder() { onChanged(); return getSpeechBoundariesFieldBuilder().getBuilder(); } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getSpeechBoundariesOrBuilder() { if (speechBoundariesBuilder_ != null) { return speechBoundariesBuilder_.getMessageOrBuilder(); } else { return speechBoundaries_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance() : speechBoundaries_; } } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries speech_boundaries = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder> getSpeechBoundariesFieldBuilder() { if (speechBoundariesBuilder_ == null) { speechBoundariesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder>( getSpeechBoundaries(), getParentForChildren(), isClean()); speechBoundaries_ = null; } return speechBoundariesBuilder_; } private long totalSpeechMs_ ; /** *
       * Total speech duration
       * 
* * int64 total_speech_ms = 4; * @return The totalSpeechMs. */ @java.lang.Override public long getTotalSpeechMs() { return totalSpeechMs_; } /** *
       * Total speech duration
       * 
* * int64 total_speech_ms = 4; * @param value The totalSpeechMs to set. * @return This builder for chaining. */ public Builder setTotalSpeechMs(long value) { totalSpeechMs_ = value; onChanged(); return this; } /** *
       * Total speech duration
       * 
* * int64 total_speech_ms = 4; * @return This builder for chaining. */ public Builder clearTotalSpeechMs() { totalSpeechMs_ = 0L; onChanged(); return this; } private double speechRatio_ ; /** *
       * Speech ratio within audio segment
       * 
* * double speech_ratio = 5; * @return The speechRatio. */ @java.lang.Override public double getSpeechRatio() { return speechRatio_; } /** *
       * Speech ratio within audio segment
       * 
* * double speech_ratio = 5; * @param value The speechRatio to set. * @return This builder for chaining. */ public Builder setSpeechRatio(double value) { speechRatio_ = value; onChanged(); return this; } /** *
       * Speech ratio within audio segment
       * 
* * double speech_ratio = 5; * @return This builder for chaining. */ public Builder clearSpeechRatio() { speechRatio_ = 0D; onChanged(); return this; } private long totalSilenceMs_ ; /** *
       * Total silence duration
       * 
* * int64 total_silence_ms = 6; * @return The totalSilenceMs. */ @java.lang.Override public long getTotalSilenceMs() { return totalSilenceMs_; } /** *
       * Total silence duration
       * 
* * int64 total_silence_ms = 6; * @param value The totalSilenceMs to set. * @return This builder for chaining. */ public Builder setTotalSilenceMs(long value) { totalSilenceMs_ = value; onChanged(); return this; } /** *
       * Total silence duration
       * 
* * int64 total_silence_ms = 6; * @return This builder for chaining. */ public Builder clearTotalSilenceMs() { totalSilenceMs_ = 0L; onChanged(); return this; } private double silenceRatio_ ; /** *
       * Silence ratio within audio segment
       * 
* * double silence_ratio = 7; * @return The silenceRatio. */ @java.lang.Override public double getSilenceRatio() { return silenceRatio_; } /** *
       * Silence ratio within audio segment
       * 
* * double silence_ratio = 7; * @param value The silenceRatio to set. * @return This builder for chaining. */ public Builder setSilenceRatio(double value) { silenceRatio_ = value; onChanged(); return this; } /** *
       * Silence ratio within audio segment
       * 
* * double silence_ratio = 7; * @return This builder for chaining. */ public Builder clearSilenceRatio() { silenceRatio_ = 0D; onChanged(); return this; } private long wordsCount_ ; /** *
       * Number of words in recognized speech
       * 
* * int64 words_count = 8; * @return The wordsCount. */ @java.lang.Override public long getWordsCount() { return wordsCount_; } /** *
       * Number of words in recognized speech
       * 
* * int64 words_count = 8; * @param value The wordsCount to set. * @return This builder for chaining. */ public Builder setWordsCount(long value) { wordsCount_ = value; onChanged(); return this; } /** *
       * Number of words in recognized speech
       * 
* * int64 words_count = 8; * @return This builder for chaining. */ public Builder clearWordsCount() { wordsCount_ = 0L; onChanged(); return this; } private long lettersCount_ ; /** *
       * Number of letters in recognized speech
       * 
* * int64 letters_count = 9; * @return The lettersCount. */ @java.lang.Override public long getLettersCount() { return lettersCount_; } /** *
       * Number of letters in recognized speech
       * 
* * int64 letters_count = 9; * @param value The lettersCount to set. * @return This builder for chaining. */ public Builder setLettersCount(long value) { lettersCount_ = value; onChanged(); return this; } /** *
       * Number of letters in recognized speech
       * 
* * int64 letters_count = 9; * @return This builder for chaining. */ public Builder clearLettersCount() { lettersCount_ = 0L; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics wordsPerSecond_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> wordsPerSecondBuilder_; /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; * @return Whether the wordsPerSecond field is set. */ public boolean hasWordsPerSecond() { return wordsPerSecondBuilder_ != null || wordsPerSecond_ != null; } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; * @return The wordsPerSecond. */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getWordsPerSecond() { if (wordsPerSecondBuilder_ == null) { return wordsPerSecond_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : wordsPerSecond_; } else { return wordsPerSecondBuilder_.getMessage(); } } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ public Builder setWordsPerSecond(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (wordsPerSecondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wordsPerSecond_ = value; onChanged(); } else { wordsPerSecondBuilder_.setMessage(value); } return this; } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ public Builder setWordsPerSecond( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder builderForValue) { if (wordsPerSecondBuilder_ == null) { wordsPerSecond_ = builderForValue.build(); onChanged(); } else { wordsPerSecondBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ public Builder mergeWordsPerSecond(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (wordsPerSecondBuilder_ == null) { if (wordsPerSecond_ != null) { wordsPerSecond_ = yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder(wordsPerSecond_).mergeFrom(value).buildPartial(); } else { wordsPerSecond_ = value; } onChanged(); } else { wordsPerSecondBuilder_.mergeFrom(value); } return this; } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ public Builder clearWordsPerSecond() { if (wordsPerSecondBuilder_ == null) { wordsPerSecond_ = null; onChanged(); } else { wordsPerSecond_ = null; wordsPerSecondBuilder_ = null; } return this; } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder getWordsPerSecondBuilder() { onChanged(); return getWordsPerSecondFieldBuilder().getBuilder(); } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getWordsPerSecondOrBuilder() { if (wordsPerSecondBuilder_ != null) { return wordsPerSecondBuilder_.getMessageOrBuilder(); } else { return wordsPerSecond_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : wordsPerSecond_; } } /** *
       * Descriptive statistics for words per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_second = 10; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> getWordsPerSecondFieldBuilder() { if (wordsPerSecondBuilder_ == null) { wordsPerSecondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder>( getWordsPerSecond(), getParentForChildren(), isClean()); wordsPerSecond_ = null; } return wordsPerSecondBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics lettersPerSecond_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> lettersPerSecondBuilder_; /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; * @return Whether the lettersPerSecond field is set. */ public boolean hasLettersPerSecond() { return lettersPerSecondBuilder_ != null || lettersPerSecond_ != null; } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; * @return The lettersPerSecond. */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getLettersPerSecond() { if (lettersPerSecondBuilder_ == null) { return lettersPerSecond_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : lettersPerSecond_; } else { return lettersPerSecondBuilder_.getMessage(); } } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ public Builder setLettersPerSecond(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (lettersPerSecondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lettersPerSecond_ = value; onChanged(); } else { lettersPerSecondBuilder_.setMessage(value); } return this; } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ public Builder setLettersPerSecond( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder builderForValue) { if (lettersPerSecondBuilder_ == null) { lettersPerSecond_ = builderForValue.build(); onChanged(); } else { lettersPerSecondBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ public Builder mergeLettersPerSecond(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (lettersPerSecondBuilder_ == null) { if (lettersPerSecond_ != null) { lettersPerSecond_ = yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder(lettersPerSecond_).mergeFrom(value).buildPartial(); } else { lettersPerSecond_ = value; } onChanged(); } else { lettersPerSecondBuilder_.mergeFrom(value); } return this; } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ public Builder clearLettersPerSecond() { if (lettersPerSecondBuilder_ == null) { lettersPerSecond_ = null; onChanged(); } else { lettersPerSecond_ = null; lettersPerSecondBuilder_ = null; } return this; } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder getLettersPerSecondBuilder() { onChanged(); return getLettersPerSecondFieldBuilder().getBuilder(); } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getLettersPerSecondOrBuilder() { if (lettersPerSecondBuilder_ != null) { return lettersPerSecondBuilder_.getMessageOrBuilder(); } else { return lettersPerSecond_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : lettersPerSecond_; } } /** *
       * Descriptive statistics for letters per second distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_second = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> getLettersPerSecondFieldBuilder() { if (lettersPerSecondBuilder_ == null) { lettersPerSecondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder>( getLettersPerSecond(), getParentForChildren(), isClean()); lettersPerSecond_ = null; } return lettersPerSecondBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics wordsPerUtterance_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> wordsPerUtteranceBuilder_; /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; * @return Whether the wordsPerUtterance field is set. */ public boolean hasWordsPerUtterance() { return wordsPerUtteranceBuilder_ != null || wordsPerUtterance_ != null; } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; * @return The wordsPerUtterance. */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getWordsPerUtterance() { if (wordsPerUtteranceBuilder_ == null) { return wordsPerUtterance_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : wordsPerUtterance_; } else { return wordsPerUtteranceBuilder_.getMessage(); } } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ public Builder setWordsPerUtterance(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (wordsPerUtteranceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wordsPerUtterance_ = value; onChanged(); } else { wordsPerUtteranceBuilder_.setMessage(value); } return this; } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ public Builder setWordsPerUtterance( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder builderForValue) { if (wordsPerUtteranceBuilder_ == null) { wordsPerUtterance_ = builderForValue.build(); onChanged(); } else { wordsPerUtteranceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ public Builder mergeWordsPerUtterance(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (wordsPerUtteranceBuilder_ == null) { if (wordsPerUtterance_ != null) { wordsPerUtterance_ = yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder(wordsPerUtterance_).mergeFrom(value).buildPartial(); } else { wordsPerUtterance_ = value; } onChanged(); } else { wordsPerUtteranceBuilder_.mergeFrom(value); } return this; } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ public Builder clearWordsPerUtterance() { if (wordsPerUtteranceBuilder_ == null) { wordsPerUtterance_ = null; onChanged(); } else { wordsPerUtterance_ = null; wordsPerUtteranceBuilder_ = null; } return this; } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder getWordsPerUtteranceBuilder() { onChanged(); return getWordsPerUtteranceFieldBuilder().getBuilder(); } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getWordsPerUtteranceOrBuilder() { if (wordsPerUtteranceBuilder_ != null) { return wordsPerUtteranceBuilder_.getMessageOrBuilder(); } else { return wordsPerUtterance_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : wordsPerUtterance_; } } /** *
       * Descriptive statistics for words per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics words_per_utterance = 12; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> getWordsPerUtteranceFieldBuilder() { if (wordsPerUtteranceBuilder_ == null) { wordsPerUtteranceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder>( getWordsPerUtterance(), getParentForChildren(), isClean()); wordsPerUtterance_ = null; } return wordsPerUtteranceBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics lettersPerUtterance_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> lettersPerUtteranceBuilder_; /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; * @return Whether the lettersPerUtterance field is set. */ public boolean hasLettersPerUtterance() { return lettersPerUtteranceBuilder_ != null || lettersPerUtterance_ != null; } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; * @return The lettersPerUtterance. */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getLettersPerUtterance() { if (lettersPerUtteranceBuilder_ == null) { return lettersPerUtterance_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : lettersPerUtterance_; } else { return lettersPerUtteranceBuilder_.getMessage(); } } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ public Builder setLettersPerUtterance(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (lettersPerUtteranceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lettersPerUtterance_ = value; onChanged(); } else { lettersPerUtteranceBuilder_.setMessage(value); } return this; } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ public Builder setLettersPerUtterance( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder builderForValue) { if (lettersPerUtteranceBuilder_ == null) { lettersPerUtterance_ = builderForValue.build(); onChanged(); } else { lettersPerUtteranceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ public Builder mergeLettersPerUtterance(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (lettersPerUtteranceBuilder_ == null) { if (lettersPerUtterance_ != null) { lettersPerUtterance_ = yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder(lettersPerUtterance_).mergeFrom(value).buildPartial(); } else { lettersPerUtterance_ = value; } onChanged(); } else { lettersPerUtteranceBuilder_.mergeFrom(value); } return this; } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ public Builder clearLettersPerUtterance() { if (lettersPerUtteranceBuilder_ == null) { lettersPerUtterance_ = null; onChanged(); } else { lettersPerUtterance_ = null; lettersPerUtteranceBuilder_ = null; } return this; } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder getLettersPerUtteranceBuilder() { onChanged(); return getLettersPerUtteranceFieldBuilder().getBuilder(); } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getLettersPerUtteranceOrBuilder() { if (lettersPerUtteranceBuilder_ != null) { return lettersPerUtteranceBuilder_.getMessageOrBuilder(); } else { return lettersPerUtterance_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : lettersPerUtterance_; } } /** *
       * Descriptive statistics for letters per utterance distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics letters_per_utterance = 13; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> getLettersPerUtteranceFieldBuilder() { if (lettersPerUtteranceBuilder_ == null) { lettersPerUtteranceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder>( getLettersPerUtterance(), getParentForChildren(), isClean()); lettersPerUtterance_ = null; } return lettersPerUtteranceBuilder_; } private long utteranceCount_ ; /** *
       * Number of utterances
       * 
* * int64 utterance_count = 14; * @return The utteranceCount. */ @java.lang.Override public long getUtteranceCount() { return utteranceCount_; } /** *
       * Number of utterances
       * 
* * int64 utterance_count = 14; * @param value The utteranceCount to set. * @return This builder for chaining. */ public Builder setUtteranceCount(long value) { utteranceCount_ = value; onChanged(); return this; } /** *
       * Number of utterances
       * 
* * int64 utterance_count = 14; * @return This builder for chaining. */ public Builder clearUtteranceCount() { utteranceCount_ = 0L; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics utteranceDurationEstimation_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> utteranceDurationEstimationBuilder_; /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; * @return Whether the utteranceDurationEstimation field is set. */ public boolean hasUtteranceDurationEstimation() { return utteranceDurationEstimationBuilder_ != null || utteranceDurationEstimation_ != null; } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; * @return The utteranceDurationEstimation. */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getUtteranceDurationEstimation() { if (utteranceDurationEstimationBuilder_ == null) { return utteranceDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : utteranceDurationEstimation_; } else { return utteranceDurationEstimationBuilder_.getMessage(); } } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ public Builder setUtteranceDurationEstimation(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (utteranceDurationEstimationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } utteranceDurationEstimation_ = value; onChanged(); } else { utteranceDurationEstimationBuilder_.setMessage(value); } return this; } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ public Builder setUtteranceDurationEstimation( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder builderForValue) { if (utteranceDurationEstimationBuilder_ == null) { utteranceDurationEstimation_ = builderForValue.build(); onChanged(); } else { utteranceDurationEstimationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ public Builder mergeUtteranceDurationEstimation(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (utteranceDurationEstimationBuilder_ == null) { if (utteranceDurationEstimation_ != null) { utteranceDurationEstimation_ = yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder(utteranceDurationEstimation_).mergeFrom(value).buildPartial(); } else { utteranceDurationEstimation_ = value; } onChanged(); } else { utteranceDurationEstimationBuilder_.mergeFrom(value); } return this; } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ public Builder clearUtteranceDurationEstimation() { if (utteranceDurationEstimationBuilder_ == null) { utteranceDurationEstimation_ = null; onChanged(); } else { utteranceDurationEstimation_ = null; utteranceDurationEstimationBuilder_ = null; } return this; } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder getUtteranceDurationEstimationBuilder() { onChanged(); return getUtteranceDurationEstimationFieldBuilder().getBuilder(); } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getUtteranceDurationEstimationOrBuilder() { if (utteranceDurationEstimationBuilder_ != null) { return utteranceDurationEstimationBuilder_.getMessageOrBuilder(); } else { return utteranceDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : utteranceDurationEstimation_; } } /** *
       * Descriptive statistics for utterance duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics utterance_duration_estimation = 15; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> getUtteranceDurationEstimationFieldBuilder() { if (utteranceDurationEstimationBuilder_ == null) { utteranceDurationEstimationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder>( getUtteranceDurationEstimation(), getParentForChildren(), isClean()); utteranceDurationEstimation_ = null; } return utteranceDurationEstimationBuilder_; } @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:speechkit.stt.v3.SpeakerAnalysis) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.SpeakerAnalysis) private static final yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis(); } public static yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpeakerAnalysis parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SpeakerAnalysis(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 yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConversationAnalysisOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.ConversationAnalysis) com.google.protobuf.MessageOrBuilder { /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; * @return Whether the conversationBoundaries field is set. */ boolean hasConversationBoundaries(); /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; * @return The conversationBoundaries. */ yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getConversationBoundaries(); /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getConversationBoundariesOrBuilder(); /** *
     * Total simultaneous silence duration
     * 
* * int64 total_simultaneous_silence_duration_ms = 2; * @return The totalSimultaneousSilenceDurationMs. */ long getTotalSimultaneousSilenceDurationMs(); /** *
     * Simultaneous silence ratio within audio segment
     * 
* * double total_simultaneous_silence_ratio = 3; * @return The totalSimultaneousSilenceRatio. */ double getTotalSimultaneousSilenceRatio(); /** *
     * Descriptive statistics for simultaneous silence duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; * @return Whether the simultaneousSilenceDurationEstimation field is set. */ boolean hasSimultaneousSilenceDurationEstimation(); /** *
     * Descriptive statistics for simultaneous silence duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; * @return The simultaneousSilenceDurationEstimation. */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getSimultaneousSilenceDurationEstimation(); /** *
     * Descriptive statistics for simultaneous silence duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getSimultaneousSilenceDurationEstimationOrBuilder(); /** *
     * Total simultaneous speech duration
     * 
* * int64 total_simultaneous_speech_duration_ms = 5; * @return The totalSimultaneousSpeechDurationMs. */ long getTotalSimultaneousSpeechDurationMs(); /** *
     * Simultaneous speech ratio within audio segment
     * 
* * double total_simultaneous_speech_ratio = 6; * @return The totalSimultaneousSpeechRatio. */ double getTotalSimultaneousSpeechRatio(); /** *
     * Descriptive statistics for simultaneous speech duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; * @return Whether the simultaneousSpeechDurationEstimation field is set. */ boolean hasSimultaneousSpeechDurationEstimation(); /** *
     * Descriptive statistics for simultaneous speech duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; * @return The simultaneousSpeechDurationEstimation. */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getSimultaneousSpeechDurationEstimation(); /** *
     * Descriptive statistics for simultaneous speech duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getSimultaneousSpeechDurationEstimationOrBuilder(); /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ java.util.List getSpeakerInterruptsList(); /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation getSpeakerInterrupts(int index); /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ int getSpeakerInterruptsCount(); /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ java.util.List getSpeakerInterruptsOrBuilderList(); /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluationOrBuilder getSpeakerInterruptsOrBuilder( int index); } /** * Protobuf type {@code speechkit.stt.v3.ConversationAnalysis} */ public static final class ConversationAnalysis extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.ConversationAnalysis) ConversationAnalysisOrBuilder { private static final long serialVersionUID = 0L; // Use ConversationAnalysis.newBuilder() to construct. private ConversationAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConversationAnalysis() { speakerInterrupts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConversationAnalysis(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConversationAnalysis( 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: { yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder subBuilder = null; if (conversationBoundaries_ != null) { subBuilder = conversationBoundaries_.toBuilder(); } conversationBoundaries_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(conversationBoundaries_); conversationBoundaries_ = subBuilder.buildPartial(); } break; } case 16: { totalSimultaneousSilenceDurationMs_ = input.readInt64(); break; } case 25: { totalSimultaneousSilenceRatio_ = input.readDouble(); break; } case 34: { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder subBuilder = null; if (simultaneousSilenceDurationEstimation_ != null) { subBuilder = simultaneousSilenceDurationEstimation_.toBuilder(); } simultaneousSilenceDurationEstimation_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(simultaneousSilenceDurationEstimation_); simultaneousSilenceDurationEstimation_ = subBuilder.buildPartial(); } break; } case 40: { totalSimultaneousSpeechDurationMs_ = input.readInt64(); break; } case 49: { totalSimultaneousSpeechRatio_ = input.readDouble(); break; } case 58: { yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder subBuilder = null; if (simultaneousSpeechDurationEstimation_ != null) { subBuilder = simultaneousSpeechDurationEstimation_.toBuilder(); } simultaneousSpeechDurationEstimation_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(simultaneousSpeechDurationEstimation_); simultaneousSpeechDurationEstimation_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { speakerInterrupts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } speakerInterrupts_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.parser(), extensionRegistry)); 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)) { speakerInterrupts_ = java.util.Collections.unmodifiableList(speakerInterrupts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.class, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder.class); } public interface InterruptsEvaluationOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation) com.google.protobuf.MessageOrBuilder { /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @return The speakerTag. */ java.lang.String getSpeakerTag(); /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @return The bytes for speakerTag. */ com.google.protobuf.ByteString getSpeakerTagBytes(); /** *
       * Number of interrupts made by the speaker
       * 
* * int64 interrupts_count = 2; * @return The interruptsCount. */ long getInterruptsCount2(); /** *
       * Total duration of all interrupts
       * 
* * int64 interrupts_duration_ms = 3; * @return The interruptsDurationMs. */ long getInterruptsDurationMs(); /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ java.util.List getInterrupts4List(); /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getInterrupts4(int index); /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ int getInterrupts4Count(); /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ java.util.List getInterrupts4OrBuilderList(); /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getInterrupts4OrBuilder( int index); } /** * Protobuf type {@code speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation} */ public static final class InterruptsEvaluation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation) InterruptsEvaluationOrBuilder { private static final long serialVersionUID = 0L; // Use InterruptsEvaluation.newBuilder() to construct. private InterruptsEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InterruptsEvaluation() { speakerTag_ = ""; interrupts4_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InterruptsEvaluation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InterruptsEvaluation( 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(); speakerTag_ = s; break; } case 16: { interruptsCount2_ = input.readInt64(); break; } case 24: { interruptsDurationMs_ = input.readInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { interrupts4_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } interrupts4_.add( input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.parser(), extensionRegistry)); 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)) { interrupts4_ = java.util.Collections.unmodifiableList(interrupts4_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.class, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder.class); } public static final int SPEAKER_TAG_FIELD_NUMBER = 1; private volatile java.lang.Object speakerTag_; /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @return The speakerTag. */ @java.lang.Override public java.lang.String getSpeakerTag() { java.lang.Object ref = speakerTag_; 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(); speakerTag_ = s; return s; } } /** *
       * Speaker tag
       * 
* * string speaker_tag = 1; * @return The bytes for speakerTag. */ @java.lang.Override public com.google.protobuf.ByteString getSpeakerTagBytes() { java.lang.Object ref = speakerTag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); speakerTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTERRUPTS_COUNT_FIELD_NUMBER = 2; private long interruptsCount2_; // An alternative name is used for field "interrupts_count" because: // both repeated field "interrupts" and singular field "interrupts_count" generate the method "getInterruptsCount()" /** *
       * Number of interrupts made by the speaker
       * 
* * int64 interrupts_count = 2; * @return The interruptsCount. */ @java.lang.Override public long getInterruptsCount2() { return interruptsCount2_; } public static final int INTERRUPTS_DURATION_MS_FIELD_NUMBER = 3; private long interruptsDurationMs_; /** *
       * Total duration of all interrupts
       * 
* * int64 interrupts_duration_ms = 3; * @return The interruptsDurationMs. */ @java.lang.Override public long getInterruptsDurationMs() { return interruptsDurationMs_; } public static final int INTERRUPTS_FIELD_NUMBER = 4; private java.util.List interrupts4_; // An alternative name is used for field "interrupts" because: // both repeated field "interrupts" and singular field "interrupts_count" generate the method "getInterruptsCount()" /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ @java.lang.Override public java.util.List getInterrupts4List() { return interrupts4_; } /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ @java.lang.Override public java.util.List getInterrupts4OrBuilderList() { return interrupts4_; } /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ @java.lang.Override public int getInterrupts4Count() { return interrupts4_.size(); } /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getInterrupts4(int index) { return interrupts4_.get(index); } /** *
       * Boundaries for every interrupt
       * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getInterrupts4OrBuilder( int index) { return interrupts4_.get(index); } 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(speakerTag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speakerTag_); } if (interruptsCount2_ != 0L) { output.writeInt64(2, interruptsCount2_); } if (interruptsDurationMs_ != 0L) { output.writeInt64(3, interruptsDurationMs_); } for (int i = 0; i < interrupts4_.size(); i++) { output.writeMessage(4, interrupts4_.get(i)); } 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(speakerTag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speakerTag_); } if (interruptsCount2_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, interruptsCount2_); } if (interruptsDurationMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, interruptsDurationMs_); } for (int i = 0; i < interrupts4_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, interrupts4_.get(i)); } 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation other = (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation) obj; if (!getSpeakerTag() .equals(other.getSpeakerTag())) return false; if (getInterruptsCount2() != other.getInterruptsCount2()) return false; if (getInterruptsDurationMs() != other.getInterruptsDurationMs()) return false; if (!getInterrupts4List() .equals(other.getInterrupts4List())) 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) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag().hashCode(); hash = (37 * hash) + INTERRUPTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInterruptsCount2()); hash = (37 * hash) + INTERRUPTS_DURATION_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInterruptsDurationMs()); if (getInterrupts4Count() > 0) { hash = (37 * hash) + INTERRUPTS_FIELD_NUMBER; hash = (53 * hash) + getInterrupts4List().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation 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(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation 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 speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation) yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.class, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInterrupts4FieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); speakerTag_ = ""; interruptsCount2_ = 0L; interruptsDurationMs_ = 0L; if (interrupts4Builder_ == null) { interrupts4_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { interrupts4Builder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation build() { yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation result = new yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation(this); int from_bitField0_ = bitField0_; result.speakerTag_ = speakerTag_; result.interruptsCount2_ = interruptsCount2_; result.interruptsDurationMs_ = interruptsDurationMs_; if (interrupts4Builder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { interrupts4_ = java.util.Collections.unmodifiableList(interrupts4_); bitField0_ = (bitField0_ & ~0x00000001); } result.interrupts4_ = interrupts4_; } else { result.interrupts4_ = interrupts4Builder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.getDefaultInstance()) return this; if (!other.getSpeakerTag().isEmpty()) { speakerTag_ = other.speakerTag_; onChanged(); } if (other.getInterruptsCount2() != 0L) { setInterruptsCount2(other.getInterruptsCount2()); } if (other.getInterruptsDurationMs() != 0L) { setInterruptsDurationMs(other.getInterruptsDurationMs()); } if (interrupts4Builder_ == null) { if (!other.interrupts4_.isEmpty()) { if (interrupts4_.isEmpty()) { interrupts4_ = other.interrupts4_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInterrupts4IsMutable(); interrupts4_.addAll(other.interrupts4_); } onChanged(); } } else { if (!other.interrupts4_.isEmpty()) { if (interrupts4Builder_.isEmpty()) { interrupts4Builder_.dispose(); interrupts4Builder_ = null; interrupts4_ = other.interrupts4_; bitField0_ = (bitField0_ & ~0x00000001); interrupts4Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInterrupts4FieldBuilder() : null; } else { interrupts4Builder_.addAllMessages(other.interrupts4_); } } } 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 { yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object speakerTag_ = ""; /** *
         * Speaker tag
         * 
* * string speaker_tag = 1; * @return The speakerTag. */ public java.lang.String getSpeakerTag() { java.lang.Object ref = speakerTag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); speakerTag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Speaker tag
         * 
* * string speaker_tag = 1; * @return The bytes for speakerTag. */ public com.google.protobuf.ByteString getSpeakerTagBytes() { java.lang.Object ref = speakerTag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); speakerTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Speaker tag
         * 
* * string speaker_tag = 1; * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } speakerTag_ = value; onChanged(); return this; } /** *
         * Speaker tag
         * 
* * string speaker_tag = 1; * @return This builder for chaining. */ public Builder clearSpeakerTag() { speakerTag_ = getDefaultInstance().getSpeakerTag(); onChanged(); return this; } /** *
         * Speaker tag
         * 
* * string speaker_tag = 1; * @param value The bytes for speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); speakerTag_ = value; onChanged(); return this; } private long interruptsCount2_ ; /** *
         * Number of interrupts made by the speaker
         * 
* * int64 interrupts_count = 2; * @return The interruptsCount. */ @java.lang.Override public long getInterruptsCount2() { return interruptsCount2_; } /** *
         * Number of interrupts made by the speaker
         * 
* * int64 interrupts_count = 2; * @param value The interruptsCount to set. * @return This builder for chaining. */ public Builder setInterruptsCount2(long value) { interruptsCount2_ = value; onChanged(); return this; } /** *
         * Number of interrupts made by the speaker
         * 
* * int64 interrupts_count = 2; * @return This builder for chaining. */ public Builder clearInterruptsCount2() { interruptsCount2_ = 0L; onChanged(); return this; } private long interruptsDurationMs_ ; /** *
         * Total duration of all interrupts
         * 
* * int64 interrupts_duration_ms = 3; * @return The interruptsDurationMs. */ @java.lang.Override public long getInterruptsDurationMs() { return interruptsDurationMs_; } /** *
         * Total duration of all interrupts
         * 
* * int64 interrupts_duration_ms = 3; * @param value The interruptsDurationMs to set. * @return This builder for chaining. */ public Builder setInterruptsDurationMs(long value) { interruptsDurationMs_ = value; onChanged(); return this; } /** *
         * Total duration of all interrupts
         * 
* * int64 interrupts_duration_ms = 3; * @return This builder for chaining. */ public Builder clearInterruptsDurationMs() { interruptsDurationMs_ = 0L; onChanged(); return this; } private java.util.List interrupts4_ = java.util.Collections.emptyList(); private void ensureInterrupts4IsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { interrupts4_ = new java.util.ArrayList(interrupts4_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder> interrupts4Builder_; /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public java.util.List getInterrupts4List() { if (interrupts4Builder_ == null) { return java.util.Collections.unmodifiableList(interrupts4_); } else { return interrupts4Builder_.getMessageList(); } } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public int getInterrupts4Count() { if (interrupts4Builder_ == null) { return interrupts4_.size(); } else { return interrupts4Builder_.getCount(); } } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getInterrupts4(int index) { if (interrupts4Builder_ == null) { return interrupts4_.get(index); } else { return interrupts4Builder_.getMessage(index); } } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder setInterrupts4( int index, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries value) { if (interrupts4Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterrupts4IsMutable(); interrupts4_.set(index, value); onChanged(); } else { interrupts4Builder_.setMessage(index, value); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder setInterrupts4( int index, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder builderForValue) { if (interrupts4Builder_ == null) { ensureInterrupts4IsMutable(); interrupts4_.set(index, builderForValue.build()); onChanged(); } else { interrupts4Builder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder addInterrupts4(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries value) { if (interrupts4Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterrupts4IsMutable(); interrupts4_.add(value); onChanged(); } else { interrupts4Builder_.addMessage(value); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder addInterrupts4( int index, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries value) { if (interrupts4Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterrupts4IsMutable(); interrupts4_.add(index, value); onChanged(); } else { interrupts4Builder_.addMessage(index, value); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder addInterrupts4( yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder builderForValue) { if (interrupts4Builder_ == null) { ensureInterrupts4IsMutable(); interrupts4_.add(builderForValue.build()); onChanged(); } else { interrupts4Builder_.addMessage(builderForValue.build()); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder addInterrupts4( int index, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder builderForValue) { if (interrupts4Builder_ == null) { ensureInterrupts4IsMutable(); interrupts4_.add(index, builderForValue.build()); onChanged(); } else { interrupts4Builder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder addAllInterrupts4( java.lang.Iterable values) { if (interrupts4Builder_ == null) { ensureInterrupts4IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, interrupts4_); onChanged(); } else { interrupts4Builder_.addAllMessages(values); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder clearInterrupts4() { if (interrupts4Builder_ == null) { interrupts4_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { interrupts4Builder_.clear(); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public Builder removeInterrupts4(int index) { if (interrupts4Builder_ == null) { ensureInterrupts4IsMutable(); interrupts4_.remove(index); onChanged(); } else { interrupts4Builder_.remove(index); } return this; } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder getInterrupts4Builder( int index) { return getInterrupts4FieldBuilder().getBuilder(index); } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getInterrupts4OrBuilder( int index) { if (interrupts4Builder_ == null) { return interrupts4_.get(index); } else { return interrupts4Builder_.getMessageOrBuilder(index); } } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public java.util.List getInterrupts4OrBuilderList() { if (interrupts4Builder_ != null) { return interrupts4Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(interrupts4_); } } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder addInterrupts4Builder() { return getInterrupts4FieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance()); } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder addInterrupts4Builder( int index) { return getInterrupts4FieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance()); } /** *
         * Boundaries for every interrupt
         * 
* * repeated .speechkit.stt.v3.AudioSegmentBoundaries interrupts = 4; */ public java.util.List getInterrupts4BuilderList() { return getInterrupts4FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder> getInterrupts4FieldBuilder() { if (interrupts4Builder_ == null) { interrupts4Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder>( interrupts4_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); interrupts4_ = null; } return interrupts4Builder_; } @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:speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation) private static final yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation(); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InterruptsEvaluation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InterruptsEvaluation(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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int CONVERSATION_BOUNDARIES_FIELD_NUMBER = 1; private yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries conversationBoundaries_; /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; * @return Whether the conversationBoundaries field is set. */ @java.lang.Override public boolean hasConversationBoundaries() { return conversationBoundaries_ != null; } /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; * @return The conversationBoundaries. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getConversationBoundaries() { return conversationBoundaries_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance() : conversationBoundaries_; } /** *
     * Audio segment boundaries
     * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getConversationBoundariesOrBuilder() { return getConversationBoundaries(); } public static final int TOTAL_SIMULTANEOUS_SILENCE_DURATION_MS_FIELD_NUMBER = 2; private long totalSimultaneousSilenceDurationMs_; /** *
     * Total simultaneous silence duration
     * 
* * int64 total_simultaneous_silence_duration_ms = 2; * @return The totalSimultaneousSilenceDurationMs. */ @java.lang.Override public long getTotalSimultaneousSilenceDurationMs() { return totalSimultaneousSilenceDurationMs_; } public static final int TOTAL_SIMULTANEOUS_SILENCE_RATIO_FIELD_NUMBER = 3; private double totalSimultaneousSilenceRatio_; /** *
     * Simultaneous silence ratio within audio segment
     * 
* * double total_simultaneous_silence_ratio = 3; * @return The totalSimultaneousSilenceRatio. */ @java.lang.Override public double getTotalSimultaneousSilenceRatio() { return totalSimultaneousSilenceRatio_; } public static final int SIMULTANEOUS_SILENCE_DURATION_ESTIMATION_FIELD_NUMBER = 4; private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics simultaneousSilenceDurationEstimation_; /** *
     * Descriptive statistics for simultaneous silence duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; * @return Whether the simultaneousSilenceDurationEstimation field is set. */ @java.lang.Override public boolean hasSimultaneousSilenceDurationEstimation() { return simultaneousSilenceDurationEstimation_ != null; } /** *
     * Descriptive statistics for simultaneous silence duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; * @return The simultaneousSilenceDurationEstimation. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getSimultaneousSilenceDurationEstimation() { return simultaneousSilenceDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : simultaneousSilenceDurationEstimation_; } /** *
     * Descriptive statistics for simultaneous silence duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getSimultaneousSilenceDurationEstimationOrBuilder() { return getSimultaneousSilenceDurationEstimation(); } public static final int TOTAL_SIMULTANEOUS_SPEECH_DURATION_MS_FIELD_NUMBER = 5; private long totalSimultaneousSpeechDurationMs_; /** *
     * Total simultaneous speech duration
     * 
* * int64 total_simultaneous_speech_duration_ms = 5; * @return The totalSimultaneousSpeechDurationMs. */ @java.lang.Override public long getTotalSimultaneousSpeechDurationMs() { return totalSimultaneousSpeechDurationMs_; } public static final int TOTAL_SIMULTANEOUS_SPEECH_RATIO_FIELD_NUMBER = 6; private double totalSimultaneousSpeechRatio_; /** *
     * Simultaneous speech ratio within audio segment
     * 
* * double total_simultaneous_speech_ratio = 6; * @return The totalSimultaneousSpeechRatio. */ @java.lang.Override public double getTotalSimultaneousSpeechRatio() { return totalSimultaneousSpeechRatio_; } public static final int SIMULTANEOUS_SPEECH_DURATION_ESTIMATION_FIELD_NUMBER = 7; private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics simultaneousSpeechDurationEstimation_; /** *
     * Descriptive statistics for simultaneous speech duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; * @return Whether the simultaneousSpeechDurationEstimation field is set. */ @java.lang.Override public boolean hasSimultaneousSpeechDurationEstimation() { return simultaneousSpeechDurationEstimation_ != null; } /** *
     * Descriptive statistics for simultaneous speech duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; * @return The simultaneousSpeechDurationEstimation. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getSimultaneousSpeechDurationEstimation() { return simultaneousSpeechDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : simultaneousSpeechDurationEstimation_; } /** *
     * Descriptive statistics for simultaneous speech duration distribution
     * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getSimultaneousSpeechDurationEstimationOrBuilder() { return getSimultaneousSpeechDurationEstimation(); } public static final int SPEAKER_INTERRUPTS_FIELD_NUMBER = 8; private java.util.List speakerInterrupts_; /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ @java.lang.Override public java.util.List getSpeakerInterruptsList() { return speakerInterrupts_; } /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ @java.lang.Override public java.util.List getSpeakerInterruptsOrBuilderList() { return speakerInterrupts_; } /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ @java.lang.Override public int getSpeakerInterruptsCount() { return speakerInterrupts_.size(); } /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation getSpeakerInterrupts(int index) { return speakerInterrupts_.get(index); } /** *
     * Interrupts description for every speaker
     * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluationOrBuilder getSpeakerInterruptsOrBuilder( int index) { return speakerInterrupts_.get(index); } 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 (conversationBoundaries_ != null) { output.writeMessage(1, getConversationBoundaries()); } if (totalSimultaneousSilenceDurationMs_ != 0L) { output.writeInt64(2, totalSimultaneousSilenceDurationMs_); } if (java.lang.Double.doubleToRawLongBits(totalSimultaneousSilenceRatio_) != 0) { output.writeDouble(3, totalSimultaneousSilenceRatio_); } if (simultaneousSilenceDurationEstimation_ != null) { output.writeMessage(4, getSimultaneousSilenceDurationEstimation()); } if (totalSimultaneousSpeechDurationMs_ != 0L) { output.writeInt64(5, totalSimultaneousSpeechDurationMs_); } if (java.lang.Double.doubleToRawLongBits(totalSimultaneousSpeechRatio_) != 0) { output.writeDouble(6, totalSimultaneousSpeechRatio_); } if (simultaneousSpeechDurationEstimation_ != null) { output.writeMessage(7, getSimultaneousSpeechDurationEstimation()); } for (int i = 0; i < speakerInterrupts_.size(); i++) { output.writeMessage(8, speakerInterrupts_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (conversationBoundaries_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConversationBoundaries()); } if (totalSimultaneousSilenceDurationMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, totalSimultaneousSilenceDurationMs_); } if (java.lang.Double.doubleToRawLongBits(totalSimultaneousSilenceRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, totalSimultaneousSilenceRatio_); } if (simultaneousSilenceDurationEstimation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSimultaneousSilenceDurationEstimation()); } if (totalSimultaneousSpeechDurationMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, totalSimultaneousSpeechDurationMs_); } if (java.lang.Double.doubleToRawLongBits(totalSimultaneousSpeechRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, totalSimultaneousSpeechRatio_); } if (simultaneousSpeechDurationEstimation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getSimultaneousSpeechDurationEstimation()); } for (int i = 0; i < speakerInterrupts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, speakerInterrupts_.get(i)); } 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis other = (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) obj; if (hasConversationBoundaries() != other.hasConversationBoundaries()) return false; if (hasConversationBoundaries()) { if (!getConversationBoundaries() .equals(other.getConversationBoundaries())) return false; } if (getTotalSimultaneousSilenceDurationMs() != other.getTotalSimultaneousSilenceDurationMs()) return false; if (java.lang.Double.doubleToLongBits(getTotalSimultaneousSilenceRatio()) != java.lang.Double.doubleToLongBits( other.getTotalSimultaneousSilenceRatio())) return false; if (hasSimultaneousSilenceDurationEstimation() != other.hasSimultaneousSilenceDurationEstimation()) return false; if (hasSimultaneousSilenceDurationEstimation()) { if (!getSimultaneousSilenceDurationEstimation() .equals(other.getSimultaneousSilenceDurationEstimation())) return false; } if (getTotalSimultaneousSpeechDurationMs() != other.getTotalSimultaneousSpeechDurationMs()) return false; if (java.lang.Double.doubleToLongBits(getTotalSimultaneousSpeechRatio()) != java.lang.Double.doubleToLongBits( other.getTotalSimultaneousSpeechRatio())) return false; if (hasSimultaneousSpeechDurationEstimation() != other.hasSimultaneousSpeechDurationEstimation()) return false; if (hasSimultaneousSpeechDurationEstimation()) { if (!getSimultaneousSpeechDurationEstimation() .equals(other.getSimultaneousSpeechDurationEstimation())) return false; } if (!getSpeakerInterruptsList() .equals(other.getSpeakerInterruptsList())) 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(); if (hasConversationBoundaries()) { hash = (37 * hash) + CONVERSATION_BOUNDARIES_FIELD_NUMBER; hash = (53 * hash) + getConversationBoundaries().hashCode(); } hash = (37 * hash) + TOTAL_SIMULTANEOUS_SILENCE_DURATION_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalSimultaneousSilenceDurationMs()); hash = (37 * hash) + TOTAL_SIMULTANEOUS_SILENCE_RATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTotalSimultaneousSilenceRatio())); if (hasSimultaneousSilenceDurationEstimation()) { hash = (37 * hash) + SIMULTANEOUS_SILENCE_DURATION_ESTIMATION_FIELD_NUMBER; hash = (53 * hash) + getSimultaneousSilenceDurationEstimation().hashCode(); } hash = (37 * hash) + TOTAL_SIMULTANEOUS_SPEECH_DURATION_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalSimultaneousSpeechDurationMs()); hash = (37 * hash) + TOTAL_SIMULTANEOUS_SPEECH_RATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTotalSimultaneousSpeechRatio())); if (hasSimultaneousSpeechDurationEstimation()) { hash = (37 * hash) + SIMULTANEOUS_SPEECH_DURATION_ESTIMATION_FIELD_NUMBER; hash = (53 * hash) + getSimultaneousSpeechDurationEstimation().hashCode(); } if (getSpeakerInterruptsCount() > 0) { hash = (37 * hash) + SPEAKER_INTERRUPTS_FIELD_NUMBER; hash = (53 * hash) + getSpeakerInterruptsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis 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(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis 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 speechkit.stt.v3.ConversationAnalysis} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.ConversationAnalysis) yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysisOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.class, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSpeakerInterruptsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (conversationBoundariesBuilder_ == null) { conversationBoundaries_ = null; } else { conversationBoundaries_ = null; conversationBoundariesBuilder_ = null; } totalSimultaneousSilenceDurationMs_ = 0L; totalSimultaneousSilenceRatio_ = 0D; if (simultaneousSilenceDurationEstimationBuilder_ == null) { simultaneousSilenceDurationEstimation_ = null; } else { simultaneousSilenceDurationEstimation_ = null; simultaneousSilenceDurationEstimationBuilder_ = null; } totalSimultaneousSpeechDurationMs_ = 0L; totalSimultaneousSpeechRatio_ = 0D; if (simultaneousSpeechDurationEstimationBuilder_ == null) { simultaneousSpeechDurationEstimation_ = null; } else { simultaneousSpeechDurationEstimation_ = null; simultaneousSpeechDurationEstimationBuilder_ = null; } if (speakerInterruptsBuilder_ == null) { speakerInterrupts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { speakerInterruptsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_ConversationAnalysis_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis build() { yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis result = new yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis(this); int from_bitField0_ = bitField0_; if (conversationBoundariesBuilder_ == null) { result.conversationBoundaries_ = conversationBoundaries_; } else { result.conversationBoundaries_ = conversationBoundariesBuilder_.build(); } result.totalSimultaneousSilenceDurationMs_ = totalSimultaneousSilenceDurationMs_; result.totalSimultaneousSilenceRatio_ = totalSimultaneousSilenceRatio_; if (simultaneousSilenceDurationEstimationBuilder_ == null) { result.simultaneousSilenceDurationEstimation_ = simultaneousSilenceDurationEstimation_; } else { result.simultaneousSilenceDurationEstimation_ = simultaneousSilenceDurationEstimationBuilder_.build(); } result.totalSimultaneousSpeechDurationMs_ = totalSimultaneousSpeechDurationMs_; result.totalSimultaneousSpeechRatio_ = totalSimultaneousSpeechRatio_; if (simultaneousSpeechDurationEstimationBuilder_ == null) { result.simultaneousSpeechDurationEstimation_ = simultaneousSpeechDurationEstimation_; } else { result.simultaneousSpeechDurationEstimation_ = simultaneousSpeechDurationEstimationBuilder_.build(); } if (speakerInterruptsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { speakerInterrupts_ = java.util.Collections.unmodifiableList(speakerInterrupts_); bitField0_ = (bitField0_ & ~0x00000001); } result.speakerInterrupts_ = speakerInterrupts_; } else { result.speakerInterrupts_ = speakerInterruptsBuilder_.build(); } 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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance()) return this; if (other.hasConversationBoundaries()) { mergeConversationBoundaries(other.getConversationBoundaries()); } if (other.getTotalSimultaneousSilenceDurationMs() != 0L) { setTotalSimultaneousSilenceDurationMs(other.getTotalSimultaneousSilenceDurationMs()); } if (other.getTotalSimultaneousSilenceRatio() != 0D) { setTotalSimultaneousSilenceRatio(other.getTotalSimultaneousSilenceRatio()); } if (other.hasSimultaneousSilenceDurationEstimation()) { mergeSimultaneousSilenceDurationEstimation(other.getSimultaneousSilenceDurationEstimation()); } if (other.getTotalSimultaneousSpeechDurationMs() != 0L) { setTotalSimultaneousSpeechDurationMs(other.getTotalSimultaneousSpeechDurationMs()); } if (other.getTotalSimultaneousSpeechRatio() != 0D) { setTotalSimultaneousSpeechRatio(other.getTotalSimultaneousSpeechRatio()); } if (other.hasSimultaneousSpeechDurationEstimation()) { mergeSimultaneousSpeechDurationEstimation(other.getSimultaneousSpeechDurationEstimation()); } if (speakerInterruptsBuilder_ == null) { if (!other.speakerInterrupts_.isEmpty()) { if (speakerInterrupts_.isEmpty()) { speakerInterrupts_ = other.speakerInterrupts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.addAll(other.speakerInterrupts_); } onChanged(); } } else { if (!other.speakerInterrupts_.isEmpty()) { if (speakerInterruptsBuilder_.isEmpty()) { speakerInterruptsBuilder_.dispose(); speakerInterruptsBuilder_ = null; speakerInterrupts_ = other.speakerInterrupts_; bitField0_ = (bitField0_ & ~0x00000001); speakerInterruptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeakerInterruptsFieldBuilder() : null; } else { speakerInterruptsBuilder_.addAllMessages(other.speakerInterrupts_); } } } 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 { yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries conversationBoundaries_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder> conversationBoundariesBuilder_; /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; * @return Whether the conversationBoundaries field is set. */ public boolean hasConversationBoundaries() { return conversationBoundariesBuilder_ != null || conversationBoundaries_ != null; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; * @return The conversationBoundaries. */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries getConversationBoundaries() { if (conversationBoundariesBuilder_ == null) { return conversationBoundaries_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance() : conversationBoundaries_; } else { return conversationBoundariesBuilder_.getMessage(); } } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ public Builder setConversationBoundaries(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries value) { if (conversationBoundariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } conversationBoundaries_ = value; onChanged(); } else { conversationBoundariesBuilder_.setMessage(value); } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ public Builder setConversationBoundaries( yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder builderForValue) { if (conversationBoundariesBuilder_ == null) { conversationBoundaries_ = builderForValue.build(); onChanged(); } else { conversationBoundariesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ public Builder mergeConversationBoundaries(yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries value) { if (conversationBoundariesBuilder_ == null) { if (conversationBoundaries_ != null) { conversationBoundaries_ = yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.newBuilder(conversationBoundaries_).mergeFrom(value).buildPartial(); } else { conversationBoundaries_ = value; } onChanged(); } else { conversationBoundariesBuilder_.mergeFrom(value); } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ public Builder clearConversationBoundaries() { if (conversationBoundariesBuilder_ == null) { conversationBoundaries_ = null; onChanged(); } else { conversationBoundaries_ = null; conversationBoundariesBuilder_ = null; } return this; } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder getConversationBoundariesBuilder() { onChanged(); return getConversationBoundariesFieldBuilder().getBuilder(); } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder getConversationBoundariesOrBuilder() { if (conversationBoundariesBuilder_ != null) { return conversationBoundariesBuilder_.getMessageOrBuilder(); } else { return conversationBoundaries_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.getDefaultInstance() : conversationBoundaries_; } } /** *
       * Audio segment boundaries
       * 
* * .speechkit.stt.v3.AudioSegmentBoundaries conversation_boundaries = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder> getConversationBoundariesFieldBuilder() { if (conversationBoundariesBuilder_ == null) { conversationBoundariesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundaries.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioSegmentBoundariesOrBuilder>( getConversationBoundaries(), getParentForChildren(), isClean()); conversationBoundaries_ = null; } return conversationBoundariesBuilder_; } private long totalSimultaneousSilenceDurationMs_ ; /** *
       * Total simultaneous silence duration
       * 
* * int64 total_simultaneous_silence_duration_ms = 2; * @return The totalSimultaneousSilenceDurationMs. */ @java.lang.Override public long getTotalSimultaneousSilenceDurationMs() { return totalSimultaneousSilenceDurationMs_; } /** *
       * Total simultaneous silence duration
       * 
* * int64 total_simultaneous_silence_duration_ms = 2; * @param value The totalSimultaneousSilenceDurationMs to set. * @return This builder for chaining. */ public Builder setTotalSimultaneousSilenceDurationMs(long value) { totalSimultaneousSilenceDurationMs_ = value; onChanged(); return this; } /** *
       * Total simultaneous silence duration
       * 
* * int64 total_simultaneous_silence_duration_ms = 2; * @return This builder for chaining. */ public Builder clearTotalSimultaneousSilenceDurationMs() { totalSimultaneousSilenceDurationMs_ = 0L; onChanged(); return this; } private double totalSimultaneousSilenceRatio_ ; /** *
       * Simultaneous silence ratio within audio segment
       * 
* * double total_simultaneous_silence_ratio = 3; * @return The totalSimultaneousSilenceRatio. */ @java.lang.Override public double getTotalSimultaneousSilenceRatio() { return totalSimultaneousSilenceRatio_; } /** *
       * Simultaneous silence ratio within audio segment
       * 
* * double total_simultaneous_silence_ratio = 3; * @param value The totalSimultaneousSilenceRatio to set. * @return This builder for chaining. */ public Builder setTotalSimultaneousSilenceRatio(double value) { totalSimultaneousSilenceRatio_ = value; onChanged(); return this; } /** *
       * Simultaneous silence ratio within audio segment
       * 
* * double total_simultaneous_silence_ratio = 3; * @return This builder for chaining. */ public Builder clearTotalSimultaneousSilenceRatio() { totalSimultaneousSilenceRatio_ = 0D; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics simultaneousSilenceDurationEstimation_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> simultaneousSilenceDurationEstimationBuilder_; /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; * @return Whether the simultaneousSilenceDurationEstimation field is set. */ public boolean hasSimultaneousSilenceDurationEstimation() { return simultaneousSilenceDurationEstimationBuilder_ != null || simultaneousSilenceDurationEstimation_ != null; } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; * @return The simultaneousSilenceDurationEstimation. */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getSimultaneousSilenceDurationEstimation() { if (simultaneousSilenceDurationEstimationBuilder_ == null) { return simultaneousSilenceDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : simultaneousSilenceDurationEstimation_; } else { return simultaneousSilenceDurationEstimationBuilder_.getMessage(); } } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ public Builder setSimultaneousSilenceDurationEstimation(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (simultaneousSilenceDurationEstimationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } simultaneousSilenceDurationEstimation_ = value; onChanged(); } else { simultaneousSilenceDurationEstimationBuilder_.setMessage(value); } return this; } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ public Builder setSimultaneousSilenceDurationEstimation( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder builderForValue) { if (simultaneousSilenceDurationEstimationBuilder_ == null) { simultaneousSilenceDurationEstimation_ = builderForValue.build(); onChanged(); } else { simultaneousSilenceDurationEstimationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ public Builder mergeSimultaneousSilenceDurationEstimation(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (simultaneousSilenceDurationEstimationBuilder_ == null) { if (simultaneousSilenceDurationEstimation_ != null) { simultaneousSilenceDurationEstimation_ = yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder(simultaneousSilenceDurationEstimation_).mergeFrom(value).buildPartial(); } else { simultaneousSilenceDurationEstimation_ = value; } onChanged(); } else { simultaneousSilenceDurationEstimationBuilder_.mergeFrom(value); } return this; } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ public Builder clearSimultaneousSilenceDurationEstimation() { if (simultaneousSilenceDurationEstimationBuilder_ == null) { simultaneousSilenceDurationEstimation_ = null; onChanged(); } else { simultaneousSilenceDurationEstimation_ = null; simultaneousSilenceDurationEstimationBuilder_ = null; } return this; } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder getSimultaneousSilenceDurationEstimationBuilder() { onChanged(); return getSimultaneousSilenceDurationEstimationFieldBuilder().getBuilder(); } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getSimultaneousSilenceDurationEstimationOrBuilder() { if (simultaneousSilenceDurationEstimationBuilder_ != null) { return simultaneousSilenceDurationEstimationBuilder_.getMessageOrBuilder(); } else { return simultaneousSilenceDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : simultaneousSilenceDurationEstimation_; } } /** *
       * Descriptive statistics for simultaneous silence duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_silence_duration_estimation = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> getSimultaneousSilenceDurationEstimationFieldBuilder() { if (simultaneousSilenceDurationEstimationBuilder_ == null) { simultaneousSilenceDurationEstimationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder>( getSimultaneousSilenceDurationEstimation(), getParentForChildren(), isClean()); simultaneousSilenceDurationEstimation_ = null; } return simultaneousSilenceDurationEstimationBuilder_; } private long totalSimultaneousSpeechDurationMs_ ; /** *
       * Total simultaneous speech duration
       * 
* * int64 total_simultaneous_speech_duration_ms = 5; * @return The totalSimultaneousSpeechDurationMs. */ @java.lang.Override public long getTotalSimultaneousSpeechDurationMs() { return totalSimultaneousSpeechDurationMs_; } /** *
       * Total simultaneous speech duration
       * 
* * int64 total_simultaneous_speech_duration_ms = 5; * @param value The totalSimultaneousSpeechDurationMs to set. * @return This builder for chaining. */ public Builder setTotalSimultaneousSpeechDurationMs(long value) { totalSimultaneousSpeechDurationMs_ = value; onChanged(); return this; } /** *
       * Total simultaneous speech duration
       * 
* * int64 total_simultaneous_speech_duration_ms = 5; * @return This builder for chaining. */ public Builder clearTotalSimultaneousSpeechDurationMs() { totalSimultaneousSpeechDurationMs_ = 0L; onChanged(); return this; } private double totalSimultaneousSpeechRatio_ ; /** *
       * Simultaneous speech ratio within audio segment
       * 
* * double total_simultaneous_speech_ratio = 6; * @return The totalSimultaneousSpeechRatio. */ @java.lang.Override public double getTotalSimultaneousSpeechRatio() { return totalSimultaneousSpeechRatio_; } /** *
       * Simultaneous speech ratio within audio segment
       * 
* * double total_simultaneous_speech_ratio = 6; * @param value The totalSimultaneousSpeechRatio to set. * @return This builder for chaining. */ public Builder setTotalSimultaneousSpeechRatio(double value) { totalSimultaneousSpeechRatio_ = value; onChanged(); return this; } /** *
       * Simultaneous speech ratio within audio segment
       * 
* * double total_simultaneous_speech_ratio = 6; * @return This builder for chaining. */ public Builder clearTotalSimultaneousSpeechRatio() { totalSimultaneousSpeechRatio_ = 0D; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics simultaneousSpeechDurationEstimation_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> simultaneousSpeechDurationEstimationBuilder_; /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; * @return Whether the simultaneousSpeechDurationEstimation field is set. */ public boolean hasSimultaneousSpeechDurationEstimation() { return simultaneousSpeechDurationEstimationBuilder_ != null || simultaneousSpeechDurationEstimation_ != null; } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; * @return The simultaneousSpeechDurationEstimation. */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics getSimultaneousSpeechDurationEstimation() { if (simultaneousSpeechDurationEstimationBuilder_ == null) { return simultaneousSpeechDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : simultaneousSpeechDurationEstimation_; } else { return simultaneousSpeechDurationEstimationBuilder_.getMessage(); } } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ public Builder setSimultaneousSpeechDurationEstimation(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (simultaneousSpeechDurationEstimationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } simultaneousSpeechDurationEstimation_ = value; onChanged(); } else { simultaneousSpeechDurationEstimationBuilder_.setMessage(value); } return this; } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ public Builder setSimultaneousSpeechDurationEstimation( yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder builderForValue) { if (simultaneousSpeechDurationEstimationBuilder_ == null) { simultaneousSpeechDurationEstimation_ = builderForValue.build(); onChanged(); } else { simultaneousSpeechDurationEstimationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ public Builder mergeSimultaneousSpeechDurationEstimation(yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics value) { if (simultaneousSpeechDurationEstimationBuilder_ == null) { if (simultaneousSpeechDurationEstimation_ != null) { simultaneousSpeechDurationEstimation_ = yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.newBuilder(simultaneousSpeechDurationEstimation_).mergeFrom(value).buildPartial(); } else { simultaneousSpeechDurationEstimation_ = value; } onChanged(); } else { simultaneousSpeechDurationEstimationBuilder_.mergeFrom(value); } return this; } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ public Builder clearSimultaneousSpeechDurationEstimation() { if (simultaneousSpeechDurationEstimationBuilder_ == null) { simultaneousSpeechDurationEstimation_ = null; onChanged(); } else { simultaneousSpeechDurationEstimation_ = null; simultaneousSpeechDurationEstimationBuilder_ = null; } return this; } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder getSimultaneousSpeechDurationEstimationBuilder() { onChanged(); return getSimultaneousSpeechDurationEstimationFieldBuilder().getBuilder(); } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ public yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder getSimultaneousSpeechDurationEstimationOrBuilder() { if (simultaneousSpeechDurationEstimationBuilder_ != null) { return simultaneousSpeechDurationEstimationBuilder_.getMessageOrBuilder(); } else { return simultaneousSpeechDurationEstimation_ == null ? yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.getDefaultInstance() : simultaneousSpeechDurationEstimation_; } } /** *
       * Descriptive statistics for simultaneous speech duration distribution
       * 
* * .speechkit.stt.v3.DescriptiveStatistics simultaneous_speech_duration_estimation = 7; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder> getSimultaneousSpeechDurationEstimationFieldBuilder() { if (simultaneousSpeechDurationEstimationBuilder_ == null) { simultaneousSpeechDurationEstimationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatistics.Builder, yandex.cloud.api.ai.stt.v3.Stt.DescriptiveStatisticsOrBuilder>( getSimultaneousSpeechDurationEstimation(), getParentForChildren(), isClean()); simultaneousSpeechDurationEstimation_ = null; } return simultaneousSpeechDurationEstimationBuilder_; } private java.util.List speakerInterrupts_ = java.util.Collections.emptyList(); private void ensureSpeakerInterruptsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { speakerInterrupts_ = new java.util.ArrayList(speakerInterrupts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluationOrBuilder> speakerInterruptsBuilder_; /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public java.util.List getSpeakerInterruptsList() { if (speakerInterruptsBuilder_ == null) { return java.util.Collections.unmodifiableList(speakerInterrupts_); } else { return speakerInterruptsBuilder_.getMessageList(); } } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public int getSpeakerInterruptsCount() { if (speakerInterruptsBuilder_ == null) { return speakerInterrupts_.size(); } else { return speakerInterruptsBuilder_.getCount(); } } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation getSpeakerInterrupts(int index) { if (speakerInterruptsBuilder_ == null) { return speakerInterrupts_.get(index); } else { return speakerInterruptsBuilder_.getMessage(index); } } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder setSpeakerInterrupts( int index, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation value) { if (speakerInterruptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.set(index, value); onChanged(); } else { speakerInterruptsBuilder_.setMessage(index, value); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder setSpeakerInterrupts( int index, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder builderForValue) { if (speakerInterruptsBuilder_ == null) { ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.set(index, builderForValue.build()); onChanged(); } else { speakerInterruptsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder addSpeakerInterrupts(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation value) { if (speakerInterruptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.add(value); onChanged(); } else { speakerInterruptsBuilder_.addMessage(value); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder addSpeakerInterrupts( int index, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation value) { if (speakerInterruptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.add(index, value); onChanged(); } else { speakerInterruptsBuilder_.addMessage(index, value); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder addSpeakerInterrupts( yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder builderForValue) { if (speakerInterruptsBuilder_ == null) { ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.add(builderForValue.build()); onChanged(); } else { speakerInterruptsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder addSpeakerInterrupts( int index, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder builderForValue) { if (speakerInterruptsBuilder_ == null) { ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.add(index, builderForValue.build()); onChanged(); } else { speakerInterruptsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder addAllSpeakerInterrupts( java.lang.Iterable values) { if (speakerInterruptsBuilder_ == null) { ensureSpeakerInterruptsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, speakerInterrupts_); onChanged(); } else { speakerInterruptsBuilder_.addAllMessages(values); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder clearSpeakerInterrupts() { if (speakerInterruptsBuilder_ == null) { speakerInterrupts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { speakerInterruptsBuilder_.clear(); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public Builder removeSpeakerInterrupts(int index) { if (speakerInterruptsBuilder_ == null) { ensureSpeakerInterruptsIsMutable(); speakerInterrupts_.remove(index); onChanged(); } else { speakerInterruptsBuilder_.remove(index); } return this; } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder getSpeakerInterruptsBuilder( int index) { return getSpeakerInterruptsFieldBuilder().getBuilder(index); } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluationOrBuilder getSpeakerInterruptsOrBuilder( int index) { if (speakerInterruptsBuilder_ == null) { return speakerInterrupts_.get(index); } else { return speakerInterruptsBuilder_.getMessageOrBuilder(index); } } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public java.util.List getSpeakerInterruptsOrBuilderList() { if (speakerInterruptsBuilder_ != null) { return speakerInterruptsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(speakerInterrupts_); } } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder addSpeakerInterruptsBuilder() { return getSpeakerInterruptsFieldBuilder().addBuilder( yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.getDefaultInstance()); } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder addSpeakerInterruptsBuilder( int index) { return getSpeakerInterruptsFieldBuilder().addBuilder( index, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.getDefaultInstance()); } /** *
       * Interrupts description for every speaker
       * 
* * repeated .speechkit.stt.v3.ConversationAnalysis.InterruptsEvaluation speaker_interrupts = 8; */ public java.util.List getSpeakerInterruptsBuilderList() { return getSpeakerInterruptsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluationOrBuilder> getSpeakerInterruptsFieldBuilder() { if (speakerInterruptsBuilder_ == null) { speakerInterruptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluation.Builder, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.InterruptsEvaluationOrBuilder>( speakerInterrupts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); speakerInterrupts_ = null; } return speakerInterruptsBuilder_; } @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:speechkit.stt.v3.ConversationAnalysis) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.ConversationAnalysis) private static final yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis(); } public static yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConversationAnalysis parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConversationAnalysis(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 yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamingResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:speechkit.stt.v3.StreamingResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Session identifier
     * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; * @return Whether the sessionUuid field is set. */ boolean hasSessionUuid(); /** *
     * Session identifier
     * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; * @return The sessionUuid. */ yandex.cloud.api.ai.stt.v3.Stt.SessionUuid getSessionUuid(); /** *
     * Session identifier
     * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ yandex.cloud.api.ai.stt.v3.Stt.SessionUuidOrBuilder getSessionUuidOrBuilder(); /** *
     * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
     * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; * @return Whether the audioCursors field is set. */ boolean hasAudioCursors(); /** *
     * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
     * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; * @return The audioCursors. */ yandex.cloud.api.ai.stt.v3.Stt.AudioCursors getAudioCursors(); /** *
     * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
     * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ yandex.cloud.api.ai.stt.v3.Stt.AudioCursorsOrBuilder getAudioCursorsOrBuilder(); /** *
     * Wall clock on server side. This is time when server wrote results to stream
     * 
* * int64 response_wall_time_ms = 3; * @return The responseWallTimeMs. */ long getResponseWallTimeMs(); /** *
     * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
     * from final_time_ms to partial_time_ms. Could change after new data will arrive.
     * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; * @return Whether the partial field is set. */ boolean hasPartial(); /** *
     * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
     * from final_time_ms to partial_time_ms. Could change after new data will arrive.
     * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; * @return The partial. */ yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getPartial(); /** *
     * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
     * from final_time_ms to partial_time_ms. Could change after new data will arrive.
     * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getPartialOrBuilder(); /** *
     * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
     * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; * @return Whether the final field is set. */ boolean hasFinal(); /** *
     * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
     * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; * @return The final. */ yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getFinal(); /** *
     * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
     * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getFinalOrBuilder(); /** *
     * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
     * before eou_update we send final with the same time. there could be several finals before eou update.
     * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; * @return Whether the eouUpdate field is set. */ boolean hasEouUpdate(); /** *
     * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
     * before eou_update we send final with the same time. there could be several finals before eou update.
     * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; * @return The eouUpdate. */ yandex.cloud.api.ai.stt.v3.Stt.EouUpdate getEouUpdate(); /** *
     * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
     * before eou_update we send final with the same time. there could be several finals before eou update.
     * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ yandex.cloud.api.ai.stt.v3.Stt.EouUpdateOrBuilder getEouUpdateOrBuilder(); /** *
     * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
     * Final normalization will introduce additional latency.
     * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; * @return Whether the finalRefinement field is set. */ boolean hasFinalRefinement(); /** *
     * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
     * Final normalization will introduce additional latency.
     * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; * @return The finalRefinement. */ yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement getFinalRefinement(); /** *
     * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
     * Final normalization will introduce additional latency.
     * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ yandex.cloud.api.ai.stt.v3.Stt.FinalRefinementOrBuilder getFinalRefinementOrBuilder(); /** *
     * Status messages, send by server with fixed interval (keep-alive).
     * 
* * .speechkit.stt.v3.StatusCode status_code = 8; * @return Whether the statusCode field is set. */ boolean hasStatusCode(); /** *
     * Status messages, send by server with fixed interval (keep-alive).
     * 
* * .speechkit.stt.v3.StatusCode status_code = 8; * @return The statusCode. */ yandex.cloud.api.ai.stt.v3.Stt.StatusCode getStatusCode(); /** *
     * Status messages, send by server with fixed interval (keep-alive).
     * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ yandex.cloud.api.ai.stt.v3.Stt.StatusCodeOrBuilder getStatusCodeOrBuilder(); /** *
     * Result of the triggered classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; * @return Whether the classifierUpdate field is set. */ boolean hasClassifierUpdate(); /** *
     * Result of the triggered classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; * @return The classifierUpdate. */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate getClassifierUpdate(); /** *
     * Result of the triggered classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdateOrBuilder getClassifierUpdateOrBuilder(); /** *
     * Speech statistics for every speaker
     * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; * @return Whether the speakerAnalysis field is set. */ boolean hasSpeakerAnalysis(); /** *
     * Speech statistics for every speaker
     * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; * @return The speakerAnalysis. */ yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis getSpeakerAnalysis(); /** *
     * Speech statistics for every speaker
     * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysisOrBuilder getSpeakerAnalysisOrBuilder(); /** *
     * Conversation statistics
     * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; * @return Whether the conversationAnalysis field is set. */ boolean hasConversationAnalysis(); /** *
     * Conversation statistics
     * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; * @return The conversationAnalysis. */ yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis getConversationAnalysis(); /** *
     * Conversation statistics
     * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysisOrBuilder getConversationAnalysisOrBuilder(); /** *
     * Tag for distinguish audio channels.
     * 
* * string channel_tag = 9; * @return The channelTag. */ java.lang.String getChannelTag(); /** *
     * Tag for distinguish audio channels.
     * 
* * string channel_tag = 9; * @return The bytes for channelTag. */ com.google.protobuf.ByteString getChannelTagBytes(); public yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.EventCase getEventCase(); } /** *
   * Responses from server.
   * Each response contains session uuid
   * AudioCursors
   * plus specific event
   * 
* * Protobuf type {@code speechkit.stt.v3.StreamingResponse} */ public static final class StreamingResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:speechkit.stt.v3.StreamingResponse) StreamingResponseOrBuilder { private static final long serialVersionUID = 0L; // Use StreamingResponse.newBuilder() to construct. private StreamingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamingResponse() { channelTag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamingResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamingResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder subBuilder = null; if (sessionUuid_ != null) { subBuilder = sessionUuid_.toBuilder(); } sessionUuid_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sessionUuid_); sessionUuid_ = subBuilder.buildPartial(); } break; } case 18: { yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder subBuilder = null; if (audioCursors_ != null) { subBuilder = audioCursors_.toBuilder(); } audioCursors_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(audioCursors_); audioCursors_ = subBuilder.buildPartial(); } break; } case 24: { responseWallTimeMs_ = input.readInt64(); break; } case 34: { yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder subBuilder = null; if (eventCase_ == 4) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 4; break; } case 42: { yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder subBuilder = null; if (eventCase_ == 5) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 5; break; } case 50: { yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder subBuilder = null; if (eventCase_ == 6) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 6; break; } case 58: { yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder subBuilder = null; if (eventCase_ == 7) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 7; break; } case 66: { yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder subBuilder = null; if (eventCase_ == 8) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.StatusCode.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 8; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); channelTag_ = s; break; } case 82: { yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder subBuilder = null; if (eventCase_ == 10) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 10; break; } case 90: { yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder subBuilder = null; if (eventCase_ == 11) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 11; break; } case 98: { yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder subBuilder = null; if (eventCase_ == 12) { subBuilder = ((yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_).toBuilder(); } event_ = input.readMessage(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 12; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.class, yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.Builder.class); } private int eventCase_ = 0; private java.lang.Object event_; public enum EventCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PARTIAL(4), FINAL(5), EOU_UPDATE(6), FINAL_REFINEMENT(7), STATUS_CODE(8), CLASSIFIER_UPDATE(10), SPEAKER_ANALYSIS(11), CONVERSATION_ANALYSIS(12), EVENT_NOT_SET(0); private final int value; private EventCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventCase valueOf(int value) { return forNumber(value); } public static EventCase forNumber(int value) { switch (value) { case 4: return PARTIAL; case 5: return FINAL; case 6: return EOU_UPDATE; case 7: return FINAL_REFINEMENT; case 8: return STATUS_CODE; case 10: return CLASSIFIER_UPDATE; case 11: return SPEAKER_ANALYSIS; case 12: return CONVERSATION_ANALYSIS; case 0: return EVENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public static final int SESSION_UUID_FIELD_NUMBER = 1; private yandex.cloud.api.ai.stt.v3.Stt.SessionUuid sessionUuid_; /** *
     * Session identifier
     * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; * @return Whether the sessionUuid field is set. */ @java.lang.Override public boolean hasSessionUuid() { return sessionUuid_ != null; } /** *
     * Session identifier
     * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; * @return The sessionUuid. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SessionUuid getSessionUuid() { return sessionUuid_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.getDefaultInstance() : sessionUuid_; } /** *
     * Session identifier
     * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SessionUuidOrBuilder getSessionUuidOrBuilder() { return getSessionUuid(); } public static final int AUDIO_CURSORS_FIELD_NUMBER = 2; private yandex.cloud.api.ai.stt.v3.Stt.AudioCursors audioCursors_; /** *
     * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
     * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; * @return Whether the audioCursors field is set. */ @java.lang.Override public boolean hasAudioCursors() { return audioCursors_ != null; } /** *
     * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
     * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; * @return The audioCursors. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioCursors getAudioCursors() { return audioCursors_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.getDefaultInstance() : audioCursors_; } /** *
     * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
     * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AudioCursorsOrBuilder getAudioCursorsOrBuilder() { return getAudioCursors(); } public static final int RESPONSE_WALL_TIME_MS_FIELD_NUMBER = 3; private long responseWallTimeMs_; /** *
     * Wall clock on server side. This is time when server wrote results to stream
     * 
* * int64 response_wall_time_ms = 3; * @return The responseWallTimeMs. */ @java.lang.Override public long getResponseWallTimeMs() { return responseWallTimeMs_; } public static final int PARTIAL_FIELD_NUMBER = 4; /** *
     * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
     * from final_time_ms to partial_time_ms. Could change after new data will arrive.
     * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; * @return Whether the partial field is set. */ @java.lang.Override public boolean hasPartial() { return eventCase_ == 4; } /** *
     * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
     * from final_time_ms to partial_time_ms. Could change after new data will arrive.
     * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; * @return The partial. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getPartial() { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } /** *
     * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
     * from final_time_ms to partial_time_ms. Could change after new data will arrive.
     * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getPartialOrBuilder() { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } public static final int FINAL_FIELD_NUMBER = 5; /** *
     * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
     * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; * @return Whether the final field is set. */ @java.lang.Override public boolean hasFinal() { return eventCase_ == 5; } /** *
     * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
     * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; * @return The final. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getFinal() { if (eventCase_ == 5) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } /** *
     * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
     * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getFinalOrBuilder() { if (eventCase_ == 5) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } public static final int EOU_UPDATE_FIELD_NUMBER = 6; /** *
     * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
     * before eou_update we send final with the same time. there could be several finals before eou update.
     * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; * @return Whether the eouUpdate field is set. */ @java.lang.Override public boolean hasEouUpdate() { return eventCase_ == 6; } /** *
     * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
     * before eou_update we send final with the same time. there could be several finals before eou update.
     * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; * @return The eouUpdate. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouUpdate getEouUpdate() { if (eventCase_ == 6) { return (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance(); } /** *
     * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
     * before eou_update we send final with the same time. there could be several finals before eou update.
     * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouUpdateOrBuilder getEouUpdateOrBuilder() { if (eventCase_ == 6) { return (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance(); } public static final int FINAL_REFINEMENT_FIELD_NUMBER = 7; /** *
     * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
     * Final normalization will introduce additional latency.
     * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; * @return Whether the finalRefinement field is set. */ @java.lang.Override public boolean hasFinalRefinement() { return eventCase_ == 7; } /** *
     * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
     * Final normalization will introduce additional latency.
     * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; * @return The finalRefinement. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement getFinalRefinement() { if (eventCase_ == 7) { return (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_; } return yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance(); } /** *
     * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
     * Final normalization will introduce additional latency.
     * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinementOrBuilder getFinalRefinementOrBuilder() { if (eventCase_ == 7) { return (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_; } return yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance(); } public static final int STATUS_CODE_FIELD_NUMBER = 8; /** *
     * Status messages, send by server with fixed interval (keep-alive).
     * 
* * .speechkit.stt.v3.StatusCode status_code = 8; * @return Whether the statusCode field is set. */ @java.lang.Override public boolean hasStatusCode() { return eventCase_ == 8; } /** *
     * Status messages, send by server with fixed interval (keep-alive).
     * 
* * .speechkit.stt.v3.StatusCode status_code = 8; * @return The statusCode. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StatusCode getStatusCode() { if (eventCase_ == 8) { return (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance(); } /** *
     * Status messages, send by server with fixed interval (keep-alive).
     * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StatusCodeOrBuilder getStatusCodeOrBuilder() { if (eventCase_ == 8) { return (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance(); } public static final int CLASSIFIER_UPDATE_FIELD_NUMBER = 10; /** *
     * Result of the triggered classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; * @return Whether the classifierUpdate field is set. */ @java.lang.Override public boolean hasClassifierUpdate() { return eventCase_ == 10; } /** *
     * Result of the triggered classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; * @return The classifierUpdate. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate getClassifierUpdate() { if (eventCase_ == 10) { return (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance(); } /** *
     * Result of the triggered classifier
     * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdateOrBuilder getClassifierUpdateOrBuilder() { if (eventCase_ == 10) { return (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance(); } public static final int SPEAKER_ANALYSIS_FIELD_NUMBER = 11; /** *
     * Speech statistics for every speaker
     * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; * @return Whether the speakerAnalysis field is set. */ @java.lang.Override public boolean hasSpeakerAnalysis() { return eventCase_ == 11; } /** *
     * Speech statistics for every speaker
     * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; * @return The speakerAnalysis. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis getSpeakerAnalysis() { if (eventCase_ == 11) { return (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance(); } /** *
     * Speech statistics for every speaker
     * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysisOrBuilder getSpeakerAnalysisOrBuilder() { if (eventCase_ == 11) { return (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance(); } public static final int CONVERSATION_ANALYSIS_FIELD_NUMBER = 12; /** *
     * Conversation statistics
     * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; * @return Whether the conversationAnalysis field is set. */ @java.lang.Override public boolean hasConversationAnalysis() { return eventCase_ == 12; } /** *
     * Conversation statistics
     * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; * @return The conversationAnalysis. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis getConversationAnalysis() { if (eventCase_ == 12) { return (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance(); } /** *
     * Conversation statistics
     * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysisOrBuilder getConversationAnalysisOrBuilder() { if (eventCase_ == 12) { return (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance(); } public static final int CHANNEL_TAG_FIELD_NUMBER = 9; private volatile java.lang.Object channelTag_; /** *
     * Tag for distinguish audio channels.
     * 
* * string channel_tag = 9; * @return The channelTag. */ @java.lang.Override public java.lang.String getChannelTag() { java.lang.Object ref = channelTag_; 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(); channelTag_ = s; return s; } } /** *
     * Tag for distinguish audio channels.
     * 
* * string channel_tag = 9; * @return The bytes for channelTag. */ @java.lang.Override public com.google.protobuf.ByteString getChannelTagBytes() { java.lang.Object ref = channelTag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (sessionUuid_ != null) { output.writeMessage(1, getSessionUuid()); } if (audioCursors_ != null) { output.writeMessage(2, getAudioCursors()); } if (responseWallTimeMs_ != 0L) { output.writeInt64(3, responseWallTimeMs_); } if (eventCase_ == 4) { output.writeMessage(4, (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_); } if (eventCase_ == 5) { output.writeMessage(5, (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_); } if (eventCase_ == 6) { output.writeMessage(6, (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_); } if (eventCase_ == 7) { output.writeMessage(7, (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_); } if (eventCase_ == 8) { output.writeMessage(8, (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelTag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, channelTag_); } if (eventCase_ == 10) { output.writeMessage(10, (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_); } if (eventCase_ == 11) { output.writeMessage(11, (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_); } if (eventCase_ == 12) { output.writeMessage(12, (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sessionUuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSessionUuid()); } if (audioCursors_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAudioCursors()); } if (responseWallTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, responseWallTimeMs_); } if (eventCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_); } if (eventCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_); } if (eventCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_); } if (eventCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_); } if (eventCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelTag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, channelTag_); } if (eventCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_); } if (eventCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_); } if (eventCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_); } 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse)) { return super.equals(obj); } yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse other = (yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse) obj; if (hasSessionUuid() != other.hasSessionUuid()) return false; if (hasSessionUuid()) { if (!getSessionUuid() .equals(other.getSessionUuid())) return false; } if (hasAudioCursors() != other.hasAudioCursors()) return false; if (hasAudioCursors()) { if (!getAudioCursors() .equals(other.getAudioCursors())) return false; } if (getResponseWallTimeMs() != other.getResponseWallTimeMs()) return false; if (!getChannelTag() .equals(other.getChannelTag())) return false; if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 4: if (!getPartial() .equals(other.getPartial())) return false; break; case 5: if (!getFinal() .equals(other.getFinal())) return false; break; case 6: if (!getEouUpdate() .equals(other.getEouUpdate())) return false; break; case 7: if (!getFinalRefinement() .equals(other.getFinalRefinement())) return false; break; case 8: if (!getStatusCode() .equals(other.getStatusCode())) return false; break; case 10: if (!getClassifierUpdate() .equals(other.getClassifierUpdate())) return false; break; case 11: if (!getSpeakerAnalysis() .equals(other.getSpeakerAnalysis())) return false; break; case 12: if (!getConversationAnalysis() .equals(other.getConversationAnalysis())) return false; break; case 0: default: } 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(); if (hasSessionUuid()) { hash = (37 * hash) + SESSION_UUID_FIELD_NUMBER; hash = (53 * hash) + getSessionUuid().hashCode(); } if (hasAudioCursors()) { hash = (37 * hash) + AUDIO_CURSORS_FIELD_NUMBER; hash = (53 * hash) + getAudioCursors().hashCode(); } hash = (37 * hash) + RESPONSE_WALL_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getResponseWallTimeMs()); hash = (37 * hash) + CHANNEL_TAG_FIELD_NUMBER; hash = (53 * hash) + getChannelTag().hashCode(); switch (eventCase_) { case 4: hash = (37 * hash) + PARTIAL_FIELD_NUMBER; hash = (53 * hash) + getPartial().hashCode(); break; case 5: hash = (37 * hash) + FINAL_FIELD_NUMBER; hash = (53 * hash) + getFinal().hashCode(); break; case 6: hash = (37 * hash) + EOU_UPDATE_FIELD_NUMBER; hash = (53 * hash) + getEouUpdate().hashCode(); break; case 7: hash = (37 * hash) + FINAL_REFINEMENT_FIELD_NUMBER; hash = (53 * hash) + getFinalRefinement().hashCode(); break; case 8: hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; hash = (53 * hash) + getStatusCode().hashCode(); break; case 10: hash = (37 * hash) + CLASSIFIER_UPDATE_FIELD_NUMBER; hash = (53 * hash) + getClassifierUpdate().hashCode(); break; case 11: hash = (37 * hash) + SPEAKER_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + getSpeakerAnalysis().hashCode(); break; case 12: hash = (37 * hash) + CONVERSATION_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + getConversationAnalysis().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse 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(yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse 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; } /** *
     * Responses from server.
     * Each response contains session uuid
     * AudioCursors
     * plus specific event
     * 
* * Protobuf type {@code speechkit.stt.v3.StreamingResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:speechkit.stt.v3.StreamingResponse) yandex.cloud.api.ai.stt.v3.Stt.StreamingResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.class, yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.Builder.class); } // Construct using yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (sessionUuidBuilder_ == null) { sessionUuid_ = null; } else { sessionUuid_ = null; sessionUuidBuilder_ = null; } if (audioCursorsBuilder_ == null) { audioCursors_ = null; } else { audioCursors_ = null; audioCursorsBuilder_ = null; } responseWallTimeMs_ = 0L; channelTag_ = ""; eventCase_ = 0; event_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.stt.v3.Stt.internal_static_speechkit_stt_v3_StreamingResponse_descriptor; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse getDefaultInstanceForType() { return yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse build() { yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse buildPartial() { yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse result = new yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse(this); if (sessionUuidBuilder_ == null) { result.sessionUuid_ = sessionUuid_; } else { result.sessionUuid_ = sessionUuidBuilder_.build(); } if (audioCursorsBuilder_ == null) { result.audioCursors_ = audioCursors_; } else { result.audioCursors_ = audioCursorsBuilder_.build(); } result.responseWallTimeMs_ = responseWallTimeMs_; if (eventCase_ == 4) { if (partialBuilder_ == null) { result.event_ = event_; } else { result.event_ = partialBuilder_.build(); } } if (eventCase_ == 5) { if (finalBuilder_ == null) { result.event_ = event_; } else { result.event_ = finalBuilder_.build(); } } if (eventCase_ == 6) { if (eouUpdateBuilder_ == null) { result.event_ = event_; } else { result.event_ = eouUpdateBuilder_.build(); } } if (eventCase_ == 7) { if (finalRefinementBuilder_ == null) { result.event_ = event_; } else { result.event_ = finalRefinementBuilder_.build(); } } if (eventCase_ == 8) { if (statusCodeBuilder_ == null) { result.event_ = event_; } else { result.event_ = statusCodeBuilder_.build(); } } if (eventCase_ == 10) { if (classifierUpdateBuilder_ == null) { result.event_ = event_; } else { result.event_ = classifierUpdateBuilder_.build(); } } if (eventCase_ == 11) { if (speakerAnalysisBuilder_ == null) { result.event_ = event_; } else { result.event_ = speakerAnalysisBuilder_.build(); } } if (eventCase_ == 12) { if (conversationAnalysisBuilder_ == null) { result.event_ = event_; } else { result.event_ = conversationAnalysisBuilder_.build(); } } result.channelTag_ = channelTag_; result.eventCase_ = eventCase_; 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 yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse) { return mergeFrom((yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse other) { if (other == yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse.getDefaultInstance()) return this; if (other.hasSessionUuid()) { mergeSessionUuid(other.getSessionUuid()); } if (other.hasAudioCursors()) { mergeAudioCursors(other.getAudioCursors()); } if (other.getResponseWallTimeMs() != 0L) { setResponseWallTimeMs(other.getResponseWallTimeMs()); } if (!other.getChannelTag().isEmpty()) { channelTag_ = other.channelTag_; onChanged(); } switch (other.getEventCase()) { case PARTIAL: { mergePartial(other.getPartial()); break; } case FINAL: { mergeFinal(other.getFinal()); break; } case EOU_UPDATE: { mergeEouUpdate(other.getEouUpdate()); break; } case FINAL_REFINEMENT: { mergeFinalRefinement(other.getFinalRefinement()); break; } case STATUS_CODE: { mergeStatusCode(other.getStatusCode()); break; } case CLASSIFIER_UPDATE: { mergeClassifierUpdate(other.getClassifierUpdate()); break; } case SPEAKER_ANALYSIS: { mergeSpeakerAnalysis(other.getSpeakerAnalysis()); break; } case CONVERSATION_ANALYSIS: { mergeConversationAnalysis(other.getConversationAnalysis()); break; } case EVENT_NOT_SET: { break; } } 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 { yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int eventCase_ = 0; private java.lang.Object event_; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public Builder clearEvent() { eventCase_ = 0; event_ = null; onChanged(); return this; } private yandex.cloud.api.ai.stt.v3.Stt.SessionUuid sessionUuid_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SessionUuid, yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder, yandex.cloud.api.ai.stt.v3.Stt.SessionUuidOrBuilder> sessionUuidBuilder_; /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; * @return Whether the sessionUuid field is set. */ public boolean hasSessionUuid() { return sessionUuidBuilder_ != null || sessionUuid_ != null; } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; * @return The sessionUuid. */ public yandex.cloud.api.ai.stt.v3.Stt.SessionUuid getSessionUuid() { if (sessionUuidBuilder_ == null) { return sessionUuid_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.getDefaultInstance() : sessionUuid_; } else { return sessionUuidBuilder_.getMessage(); } } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ public Builder setSessionUuid(yandex.cloud.api.ai.stt.v3.Stt.SessionUuid value) { if (sessionUuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionUuid_ = value; onChanged(); } else { sessionUuidBuilder_.setMessage(value); } return this; } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ public Builder setSessionUuid( yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder builderForValue) { if (sessionUuidBuilder_ == null) { sessionUuid_ = builderForValue.build(); onChanged(); } else { sessionUuidBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ public Builder mergeSessionUuid(yandex.cloud.api.ai.stt.v3.Stt.SessionUuid value) { if (sessionUuidBuilder_ == null) { if (sessionUuid_ != null) { sessionUuid_ = yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.newBuilder(sessionUuid_).mergeFrom(value).buildPartial(); } else { sessionUuid_ = value; } onChanged(); } else { sessionUuidBuilder_.mergeFrom(value); } return this; } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ public Builder clearSessionUuid() { if (sessionUuidBuilder_ == null) { sessionUuid_ = null; onChanged(); } else { sessionUuid_ = null; sessionUuidBuilder_ = null; } return this; } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder getSessionUuidBuilder() { onChanged(); return getSessionUuidFieldBuilder().getBuilder(); } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ public yandex.cloud.api.ai.stt.v3.Stt.SessionUuidOrBuilder getSessionUuidOrBuilder() { if (sessionUuidBuilder_ != null) { return sessionUuidBuilder_.getMessageOrBuilder(); } else { return sessionUuid_ == null ? yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.getDefaultInstance() : sessionUuid_; } } /** *
       * Session identifier
       * 
* * .speechkit.stt.v3.SessionUuid session_uuid = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SessionUuid, yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder, yandex.cloud.api.ai.stt.v3.Stt.SessionUuidOrBuilder> getSessionUuidFieldBuilder() { if (sessionUuidBuilder_ == null) { sessionUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SessionUuid, yandex.cloud.api.ai.stt.v3.Stt.SessionUuid.Builder, yandex.cloud.api.ai.stt.v3.Stt.SessionUuidOrBuilder>( getSessionUuid(), getParentForChildren(), isClean()); sessionUuid_ = null; } return sessionUuidBuilder_; } private yandex.cloud.api.ai.stt.v3.Stt.AudioCursors audioCursors_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioCursors, yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioCursorsOrBuilder> audioCursorsBuilder_; /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; * @return Whether the audioCursors field is set. */ public boolean hasAudioCursors() { return audioCursorsBuilder_ != null || audioCursors_ != null; } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; * @return The audioCursors. */ public yandex.cloud.api.ai.stt.v3.Stt.AudioCursors getAudioCursors() { if (audioCursorsBuilder_ == null) { return audioCursors_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.getDefaultInstance() : audioCursors_; } else { return audioCursorsBuilder_.getMessage(); } } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ public Builder setAudioCursors(yandex.cloud.api.ai.stt.v3.Stt.AudioCursors value) { if (audioCursorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audioCursors_ = value; onChanged(); } else { audioCursorsBuilder_.setMessage(value); } return this; } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ public Builder setAudioCursors( yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder builderForValue) { if (audioCursorsBuilder_ == null) { audioCursors_ = builderForValue.build(); onChanged(); } else { audioCursorsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ public Builder mergeAudioCursors(yandex.cloud.api.ai.stt.v3.Stt.AudioCursors value) { if (audioCursorsBuilder_ == null) { if (audioCursors_ != null) { audioCursors_ = yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.newBuilder(audioCursors_).mergeFrom(value).buildPartial(); } else { audioCursors_ = value; } onChanged(); } else { audioCursorsBuilder_.mergeFrom(value); } return this; } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ public Builder clearAudioCursors() { if (audioCursorsBuilder_ == null) { audioCursors_ = null; onChanged(); } else { audioCursors_ = null; audioCursorsBuilder_ = null; } return this; } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder getAudioCursorsBuilder() { onChanged(); return getAudioCursorsFieldBuilder().getBuilder(); } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ public yandex.cloud.api.ai.stt.v3.Stt.AudioCursorsOrBuilder getAudioCursorsOrBuilder() { if (audioCursorsBuilder_ != null) { return audioCursorsBuilder_.getMessageOrBuilder(); } else { return audioCursors_ == null ? yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.getDefaultInstance() : audioCursors_; } } /** *
       * Progress bar for stream session recognition: how many data we obtained; final and partial times; etc.
       * 
* * .speechkit.stt.v3.AudioCursors audio_cursors = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioCursors, yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioCursorsOrBuilder> getAudioCursorsFieldBuilder() { if (audioCursorsBuilder_ == null) { audioCursorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AudioCursors, yandex.cloud.api.ai.stt.v3.Stt.AudioCursors.Builder, yandex.cloud.api.ai.stt.v3.Stt.AudioCursorsOrBuilder>( getAudioCursors(), getParentForChildren(), isClean()); audioCursors_ = null; } return audioCursorsBuilder_; } private long responseWallTimeMs_ ; /** *
       * Wall clock on server side. This is time when server wrote results to stream
       * 
* * int64 response_wall_time_ms = 3; * @return The responseWallTimeMs. */ @java.lang.Override public long getResponseWallTimeMs() { return responseWallTimeMs_; } /** *
       * Wall clock on server side. This is time when server wrote results to stream
       * 
* * int64 response_wall_time_ms = 3; * @param value The responseWallTimeMs to set. * @return This builder for chaining. */ public Builder setResponseWallTimeMs(long value) { responseWallTimeMs_ = value; onChanged(); return this; } /** *
       * Wall clock on server side. This is time when server wrote results to stream
       * 
* * int64 response_wall_time_ms = 3; * @return This builder for chaining. */ public Builder clearResponseWallTimeMs() { responseWallTimeMs_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder> partialBuilder_; /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; * @return Whether the partial field is set. */ @java.lang.Override public boolean hasPartial() { return eventCase_ == 4; } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; * @return The partial. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getPartial() { if (partialBuilder_ == null) { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } else { if (eventCase_ == 4) { return partialBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ public Builder setPartial(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate value) { if (partialBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { partialBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ public Builder setPartial( yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder builderForValue) { if (partialBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { partialBuilder_.setMessage(builderForValue.build()); } eventCase_ = 4; return this; } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ public Builder mergePartial(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate value) { if (partialBuilder_ == null) { if (eventCase_ == 4 && event_ != yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 4) { partialBuilder_.mergeFrom(value); } partialBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ public Builder clearPartial() { if (partialBuilder_ == null) { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; } partialBuilder_.clear(); } return this; } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder getPartialBuilder() { return getPartialFieldBuilder().getBuilder(); } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getPartialOrBuilder() { if ((eventCase_ == 4) && (partialBuilder_ != null)) { return partialBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 4) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } } /** *
       * Partial results, server will send them regularly after enough audio data was received from user. This are current text estimation
       * from final_time_ms to partial_time_ms. Could change after new data will arrive.
       * 
* * .speechkit.stt.v3.AlternativeUpdate partial = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder> getPartialFieldBuilder() { if (partialBuilder_ == null) { if (!(eventCase_ == 4)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } partialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 4; onChanged();; return partialBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder> finalBuilder_; /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; * @return Whether the final field is set. */ @java.lang.Override public boolean hasFinal() { return eventCase_ == 5; } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; * @return The final. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate getFinal() { if (finalBuilder_ == null) { if (eventCase_ == 5) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } else { if (eventCase_ == 5) { return finalBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ public Builder setFinal(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate value) { if (finalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { finalBuilder_.setMessage(value); } eventCase_ = 5; return this; } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ public Builder setFinal( yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder builderForValue) { if (finalBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { finalBuilder_.setMessage(builderForValue.build()); } eventCase_ = 5; return this; } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ public Builder mergeFinal(yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate value) { if (finalBuilder_ == null) { if (eventCase_ == 5 && event_ != yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 5) { finalBuilder_.mergeFrom(value); } finalBuilder_.setMessage(value); } eventCase_ = 5; return this; } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ public Builder clearFinal() { if (finalBuilder_ == null) { if (eventCase_ == 5) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 5) { eventCase_ = 0; event_ = null; } finalBuilder_.clear(); } return this; } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder getFinalBuilder() { return getFinalFieldBuilder().getBuilder(); } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder getFinalOrBuilder() { if ((eventCase_ == 5) && (finalBuilder_ != null)) { return finalBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 5) { return (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } } /** *
       * Final results, the recognition is now fixed until final_time_ms. For now, final is sent only if the EOU event was triggered. This could be change in future releases.
       * 
* * .speechkit.stt.v3.AlternativeUpdate final = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder> getFinalFieldBuilder() { if (finalBuilder_ == null) { if (!(eventCase_ == 5)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.getDefaultInstance(); } finalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdateOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.AlternativeUpdate) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 5; onChanged();; return finalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.EouUpdate, yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouUpdateOrBuilder> eouUpdateBuilder_; /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; * @return Whether the eouUpdate field is set. */ @java.lang.Override public boolean hasEouUpdate() { return eventCase_ == 6; } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; * @return The eouUpdate. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouUpdate getEouUpdate() { if (eouUpdateBuilder_ == null) { if (eventCase_ == 6) { return (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance(); } else { if (eventCase_ == 6) { return eouUpdateBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance(); } } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ public Builder setEouUpdate(yandex.cloud.api.ai.stt.v3.Stt.EouUpdate value) { if (eouUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { eouUpdateBuilder_.setMessage(value); } eventCase_ = 6; return this; } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ public Builder setEouUpdate( yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder builderForValue) { if (eouUpdateBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { eouUpdateBuilder_.setMessage(builderForValue.build()); } eventCase_ = 6; return this; } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ public Builder mergeEouUpdate(yandex.cloud.api.ai.stt.v3.Stt.EouUpdate value) { if (eouUpdateBuilder_ == null) { if (eventCase_ == 6 && event_ != yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 6) { eouUpdateBuilder_.mergeFrom(value); } eouUpdateBuilder_.setMessage(value); } eventCase_ = 6; return this; } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ public Builder clearEouUpdate() { if (eouUpdateBuilder_ == null) { if (eventCase_ == 6) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 6) { eventCase_ = 0; event_ = null; } eouUpdateBuilder_.clear(); } return this; } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ public yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder getEouUpdateBuilder() { return getEouUpdateFieldBuilder().getBuilder(); } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.EouUpdateOrBuilder getEouUpdateOrBuilder() { if ((eventCase_ == 6) && (eouUpdateBuilder_ != null)) { return eouUpdateBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 6) { return (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance(); } } /** *
       * After EOU classifier, send the message with final, send the EouUpdate with time of EOU
       * before eou_update we send final with the same time. there could be several finals before eou update.
       * 
* * .speechkit.stt.v3.EouUpdate eou_update = 6; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.EouUpdate, yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouUpdateOrBuilder> getEouUpdateFieldBuilder() { if (eouUpdateBuilder_ == null) { if (!(eventCase_ == 6)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.getDefaultInstance(); } eouUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.EouUpdate, yandex.cloud.api.ai.stt.v3.Stt.EouUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.EouUpdateOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.EouUpdate) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 6; onChanged();; return eouUpdateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinementOrBuilder> finalRefinementBuilder_; /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; * @return Whether the finalRefinement field is set. */ @java.lang.Override public boolean hasFinalRefinement() { return eventCase_ == 7; } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; * @return The finalRefinement. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement getFinalRefinement() { if (finalRefinementBuilder_ == null) { if (eventCase_ == 7) { return (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_; } return yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance(); } else { if (eventCase_ == 7) { return finalRefinementBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance(); } } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ public Builder setFinalRefinement(yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement value) { if (finalRefinementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { finalRefinementBuilder_.setMessage(value); } eventCase_ = 7; return this; } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ public Builder setFinalRefinement( yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder builderForValue) { if (finalRefinementBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { finalRefinementBuilder_.setMessage(builderForValue.build()); } eventCase_ = 7; return this; } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ public Builder mergeFinalRefinement(yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement value) { if (finalRefinementBuilder_ == null) { if (eventCase_ == 7 && event_ != yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 7) { finalRefinementBuilder_.mergeFrom(value); } finalRefinementBuilder_.setMessage(value); } eventCase_ = 7; return this; } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ public Builder clearFinalRefinement() { if (finalRefinementBuilder_ == null) { if (eventCase_ == 7) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 7) { eventCase_ = 0; event_ = null; } finalRefinementBuilder_.clear(); } return this; } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder getFinalRefinementBuilder() { return getFinalRefinementFieldBuilder().getBuilder(); } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.FinalRefinementOrBuilder getFinalRefinementOrBuilder() { if ((eventCase_ == 7) && (finalRefinementBuilder_ != null)) { return finalRefinementBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 7) { return (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_; } return yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance(); } } /** *
       * For each final, if normalization is enabled, sent the normalized text (or some other advanced post-processing).
       * Final normalization will introduce additional latency.
       * 
* * .speechkit.stt.v3.FinalRefinement final_refinement = 7; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinementOrBuilder> getFinalRefinementFieldBuilder() { if (finalRefinementBuilder_ == null) { if (!(eventCase_ == 7)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.getDefaultInstance(); } finalRefinementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement.Builder, yandex.cloud.api.ai.stt.v3.Stt.FinalRefinementOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.FinalRefinement) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 7; onChanged();; return finalRefinementBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.StatusCode, yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder, yandex.cloud.api.ai.stt.v3.Stt.StatusCodeOrBuilder> statusCodeBuilder_; /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; * @return Whether the statusCode field is set. */ @java.lang.Override public boolean hasStatusCode() { return eventCase_ == 8; } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; * @return The statusCode. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StatusCode getStatusCode() { if (statusCodeBuilder_ == null) { if (eventCase_ == 8) { return (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance(); } else { if (eventCase_ == 8) { return statusCodeBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance(); } } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ public Builder setStatusCode(yandex.cloud.api.ai.stt.v3.Stt.StatusCode value) { if (statusCodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { statusCodeBuilder_.setMessage(value); } eventCase_ = 8; return this; } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ public Builder setStatusCode( yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder builderForValue) { if (statusCodeBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { statusCodeBuilder_.setMessage(builderForValue.build()); } eventCase_ = 8; return this; } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ public Builder mergeStatusCode(yandex.cloud.api.ai.stt.v3.Stt.StatusCode value) { if (statusCodeBuilder_ == null) { if (eventCase_ == 8 && event_ != yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.StatusCode.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 8) { statusCodeBuilder_.mergeFrom(value); } statusCodeBuilder_.setMessage(value); } eventCase_ = 8; return this; } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ public Builder clearStatusCode() { if (statusCodeBuilder_ == null) { if (eventCase_ == 8) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 8) { eventCase_ = 0; event_ = null; } statusCodeBuilder_.clear(); } return this; } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ public yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder getStatusCodeBuilder() { return getStatusCodeFieldBuilder().getBuilder(); } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.StatusCodeOrBuilder getStatusCodeOrBuilder() { if ((eventCase_ == 8) && (statusCodeBuilder_ != null)) { return statusCodeBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 8) { return (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_; } return yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance(); } } /** *
       * Status messages, send by server with fixed interval (keep-alive).
       * 
* * .speechkit.stt.v3.StatusCode status_code = 8; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.StatusCode, yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder, yandex.cloud.api.ai.stt.v3.Stt.StatusCodeOrBuilder> getStatusCodeFieldBuilder() { if (statusCodeBuilder_ == null) { if (!(eventCase_ == 8)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.StatusCode.getDefaultInstance(); } statusCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.StatusCode, yandex.cloud.api.ai.stt.v3.Stt.StatusCode.Builder, yandex.cloud.api.ai.stt.v3.Stt.StatusCodeOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.StatusCode) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 8; onChanged();; return statusCodeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdateOrBuilder> classifierUpdateBuilder_; /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; * @return Whether the classifierUpdate field is set. */ @java.lang.Override public boolean hasClassifierUpdate() { return eventCase_ == 10; } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; * @return The classifierUpdate. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate getClassifierUpdate() { if (classifierUpdateBuilder_ == null) { if (eventCase_ == 10) { return (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance(); } else { if (eventCase_ == 10) { return classifierUpdateBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance(); } } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ public Builder setClassifierUpdate(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate value) { if (classifierUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { classifierUpdateBuilder_.setMessage(value); } eventCase_ = 10; return this; } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ public Builder setClassifierUpdate( yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder builderForValue) { if (classifierUpdateBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { classifierUpdateBuilder_.setMessage(builderForValue.build()); } eventCase_ = 10; return this; } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ public Builder mergeClassifierUpdate(yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate value) { if (classifierUpdateBuilder_ == null) { if (eventCase_ == 10 && event_ != yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 10) { classifierUpdateBuilder_.mergeFrom(value); } classifierUpdateBuilder_.setMessage(value); } eventCase_ = 10; return this; } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ public Builder clearClassifierUpdate() { if (classifierUpdateBuilder_ == null) { if (eventCase_ == 10) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 10) { eventCase_ = 0; event_ = null; } classifierUpdateBuilder_.clear(); } return this; } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder getClassifierUpdateBuilder() { return getClassifierUpdateFieldBuilder().getBuilder(); } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdateOrBuilder getClassifierUpdateOrBuilder() { if ((eventCase_ == 10) && (classifierUpdateBuilder_ != null)) { return classifierUpdateBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 10) { return (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_; } return yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance(); } } /** *
       * Result of the triggered classifier
       * 
* * .speechkit.stt.v3.RecognitionClassifierUpdate classifier_update = 10; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdateOrBuilder> getClassifierUpdateFieldBuilder() { if (classifierUpdateBuilder_ == null) { if (!(eventCase_ == 10)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.getDefaultInstance(); } classifierUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate.Builder, yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdateOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.RecognitionClassifierUpdate) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 10; onChanged();; return classifierUpdateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysisOrBuilder> speakerAnalysisBuilder_; /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; * @return Whether the speakerAnalysis field is set. */ @java.lang.Override public boolean hasSpeakerAnalysis() { return eventCase_ == 11; } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; * @return The speakerAnalysis. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis getSpeakerAnalysis() { if (speakerAnalysisBuilder_ == null) { if (eventCase_ == 11) { return (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance(); } else { if (eventCase_ == 11) { return speakerAnalysisBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance(); } } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ public Builder setSpeakerAnalysis(yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis value) { if (speakerAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { speakerAnalysisBuilder_.setMessage(value); } eventCase_ = 11; return this; } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ public Builder setSpeakerAnalysis( yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder builderForValue) { if (speakerAnalysisBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { speakerAnalysisBuilder_.setMessage(builderForValue.build()); } eventCase_ = 11; return this; } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ public Builder mergeSpeakerAnalysis(yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis value) { if (speakerAnalysisBuilder_ == null) { if (eventCase_ == 11 && event_ != yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 11) { speakerAnalysisBuilder_.mergeFrom(value); } speakerAnalysisBuilder_.setMessage(value); } eventCase_ = 11; return this; } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ public Builder clearSpeakerAnalysis() { if (speakerAnalysisBuilder_ == null) { if (eventCase_ == 11) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 11) { eventCase_ = 0; event_ = null; } speakerAnalysisBuilder_.clear(); } return this; } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder getSpeakerAnalysisBuilder() { return getSpeakerAnalysisFieldBuilder().getBuilder(); } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysisOrBuilder getSpeakerAnalysisOrBuilder() { if ((eventCase_ == 11) && (speakerAnalysisBuilder_ != null)) { return speakerAnalysisBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 11) { return (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance(); } } /** *
       * Speech statistics for every speaker
       * 
* * .speechkit.stt.v3.SpeakerAnalysis speaker_analysis = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysisOrBuilder> getSpeakerAnalysisFieldBuilder() { if (speakerAnalysisBuilder_ == null) { if (!(eventCase_ == 11)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.getDefaultInstance(); } speakerAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis.Builder, yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysisOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.SpeakerAnalysis) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 11; onChanged();; return speakerAnalysisBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysisOrBuilder> conversationAnalysisBuilder_; /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; * @return Whether the conversationAnalysis field is set. */ @java.lang.Override public boolean hasConversationAnalysis() { return eventCase_ == 12; } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; * @return The conversationAnalysis. */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis getConversationAnalysis() { if (conversationAnalysisBuilder_ == null) { if (eventCase_ == 12) { return (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance(); } else { if (eventCase_ == 12) { return conversationAnalysisBuilder_.getMessage(); } return yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance(); } } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ public Builder setConversationAnalysis(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis value) { if (conversationAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { conversationAnalysisBuilder_.setMessage(value); } eventCase_ = 12; return this; } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ public Builder setConversationAnalysis( yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder builderForValue) { if (conversationAnalysisBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { conversationAnalysisBuilder_.setMessage(builderForValue.build()); } eventCase_ = 12; return this; } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ public Builder mergeConversationAnalysis(yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis value) { if (conversationAnalysisBuilder_ == null) { if (eventCase_ == 12 && event_ != yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance()) { event_ = yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.newBuilder((yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 12) { conversationAnalysisBuilder_.mergeFrom(value); } conversationAnalysisBuilder_.setMessage(value); } eventCase_ = 12; return this; } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ public Builder clearConversationAnalysis() { if (conversationAnalysisBuilder_ == null) { if (eventCase_ == 12) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 12) { eventCase_ = 0; event_ = null; } conversationAnalysisBuilder_.clear(); } return this; } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder getConversationAnalysisBuilder() { return getConversationAnalysisFieldBuilder().getBuilder(); } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ @java.lang.Override public yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysisOrBuilder getConversationAnalysisOrBuilder() { if ((eventCase_ == 12) && (conversationAnalysisBuilder_ != null)) { return conversationAnalysisBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 12) { return (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_; } return yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance(); } } /** *
       * Conversation statistics
       * 
* * .speechkit.stt.v3.ConversationAnalysis conversation_analysis = 12; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysisOrBuilder> getConversationAnalysisFieldBuilder() { if (conversationAnalysisBuilder_ == null) { if (!(eventCase_ == 12)) { event_ = yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.getDefaultInstance(); } conversationAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis.Builder, yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysisOrBuilder>( (yandex.cloud.api.ai.stt.v3.Stt.ConversationAnalysis) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 12; onChanged();; return conversationAnalysisBuilder_; } private java.lang.Object channelTag_ = ""; /** *
       * Tag for distinguish audio channels.
       * 
* * string channel_tag = 9; * @return The channelTag. */ public java.lang.String getChannelTag() { java.lang.Object ref = channelTag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channelTag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Tag for distinguish audio channels.
       * 
* * string channel_tag = 9; * @return The bytes for channelTag. */ public com.google.protobuf.ByteString getChannelTagBytes() { java.lang.Object ref = channelTag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Tag for distinguish audio channels.
       * 
* * string channel_tag = 9; * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelTag_ = value; onChanged(); return this; } /** *
       * Tag for distinguish audio channels.
       * 
* * string channel_tag = 9; * @return This builder for chaining. */ public Builder clearChannelTag() { channelTag_ = getDefaultInstance().getChannelTag(); onChanged(); return this; } /** *
       * Tag for distinguish audio channels.
       * 
* * string channel_tag = 9; * @param value The bytes for channelTag to set. * @return This builder for chaining. */ public Builder setChannelTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelTag_ = value; 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:speechkit.stt.v3.StreamingResponse) } // @@protoc_insertion_point(class_scope:speechkit.stt.v3.StreamingResponse) private static final yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse(); } public static yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamingResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamingResponse(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 yandex.cloud.api.ai.stt.v3.Stt.StreamingResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_TextNormalizationOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_TextNormalizationOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_DefaultEouClassifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_DefaultEouClassifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_ExternalEouClassifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_ExternalEouClassifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_EouClassifierOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_EouClassifierOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RecognitionClassifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RecognitionClassifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RecognitionClassifierOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RecognitionClassifierOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_SpeechAnalysisOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_SpeechAnalysisOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RawAudio_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RawAudio_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_ContainerAudio_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_ContainerAudio_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_AudioFormatOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_AudioFormatOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_LanguageRestrictionOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_LanguageRestrictionOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RecognitionModelOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RecognitionModelOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_StreamingOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_StreamingOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_AudioChunk_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_AudioChunk_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_SilenceChunk_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_SilenceChunk_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_Eou_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_Eou_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_StreamingRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_StreamingRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RecognizeFileRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RecognizeFileRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_Word_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_Word_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_LanguageEstimation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_LanguageEstimation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_Alternative_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_Alternative_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_EouUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_EouUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_AlternativeUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_AlternativeUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_AudioCursors_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_AudioCursors_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_FinalRefinement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_FinalRefinement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_StatusCode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_StatusCode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_SessionUuid_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_SessionUuid_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_PhraseHighlight_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_PhraseHighlight_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RecognitionClassifierLabel_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RecognitionClassifierLabel_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RecognitionClassifierResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RecognitionClassifierResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_DescriptiveStatistics_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_DescriptiveStatistics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_AudioSegmentBoundaries_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_AudioSegmentBoundaries_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_SpeakerAnalysis_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_SpeakerAnalysis_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_ConversationAnalysis_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_ConversationAnalysis_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_speechkit_stt_v3_StreamingResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_speechkit_stt_v3_StreamingResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n yandex/cloud/ai/stt/v3/stt.proto\022\020spee" + "chkit.stt.v3\"\342\003\n\030TextNormalizationOption" + "s\022X\n\022text_normalization\030\001 \001(\0162<.speechki" + "t.stt.v3.TextNormalizationOptions.TextNo" + "rmalization\022\030\n\020profanity_filter\030\002 \001(\010\022\027\n" + "\017literature_text\030\003 \001(\010\022]\n\025phone_formatti" + "ng_mode\030\004 \001(\0162>.speechkit.stt.v3.TextNor" + "malizationOptions.PhoneFormattingMode\"x\n" + "\021TextNormalization\022\"\n\036TEXT_NORMALIZATION" + "_UNSPECIFIED\020\000\022\036\n\032TEXT_NORMALIZATION_ENA" + "BLED\020\001\022\037\n\033TEXT_NORMALIZATION_DISABLED\020\002\"" + "`\n\023PhoneFormattingMode\022%\n!PHONE_FORMATTI" + "NG_MODE_UNSPECIFIED\020\000\022\"\n\036PHONE_FORMATTIN" + "G_MODE_DISABLED\020\001\"\316\001\n\024DefaultEouClassifi" + "er\022C\n\004type\030\001 \001(\01625.speechkit.stt.v3.Defa" + "ultEouClassifier.EouSensitivity\022\'\n\037max_p" + "ause_between_words_hint_ms\030\002 \001(\003\"H\n\016EouS" + "ensitivity\022\037\n\033EOU_SENSITIVITY_UNSPECIFIE" + "D\020\000\022\013\n\007DEFAULT\020\001\022\010\n\004HIGH\020\002\"\027\n\025ExternalEo" + "uClassifier\"\262\001\n\024EouClassifierOptions\022D\n\022" + "default_classifier\030\001 \001(\0132&.speechkit.stt" + ".v3.DefaultEouClassifierH\000\022F\n\023external_c" + "lassifier\030\002 \001(\0132\'.speechkit.stt.v3.Exter" + "nalEouClassifierH\000B\014\n\nClassifier\"\277\001\n\025Rec" + "ognitionClassifier\022\022\n\nclassifier\030\001 \001(\t\022E" + "\n\010triggers\030\002 \003(\01623.speechkit.stt.v3.Reco" + "gnitionClassifier.TriggerType\"K\n\013Trigger" + "Type\022\034\n\030TRIGGER_TYPE_UNSPECIFIED\020\000\022\020\n\014ON" + "_UTTERANCE\020\001\022\014\n\010ON_FINAL\020\002\"\\\n\034Recognitio" + "nClassifierOptions\022<\n\013classifiers\030\001 \003(\0132" + "\'.speechkit.stt.v3.RecognitionClassifier" + "\"\210\001\n\025SpeechAnalysisOptions\022\037\n\027enable_spe" + "aker_analysis\030\001 \001(\010\022$\n\034enable_conversati" + "on_analysis\030\002 \001(\010\022(\n descriptive_statist" + "ics_quantiles\030\003 \003(\001\"\307\001\n\010RawAudio\022@\n\016audi" + "o_encoding\030\001 \001(\0162(.speechkit.stt.v3.RawA" + "udio.AudioEncoding\022\031\n\021sample_rate_hertz\030" + "\002 \001(\003\022\033\n\023audio_channel_count\030\003 \001(\003\"A\n\rAu" + "dioEncoding\022\036\n\032AUDIO_ENCODING_UNSPECIFIE" + "D\020\000\022\020\n\014LINEAR16_PCM\020\001\"\277\001\n\016ContainerAudio" + "\022Q\n\024container_audio_type\030\001 \001(\01623.speechk" + "it.stt.v3.ContainerAudio.ContainerAudioT" + "ype\"Z\n\022ContainerAudioType\022$\n CONTAINER_A" + "UDIO_TYPE_UNSPECIFIED\020\000\022\007\n\003WAV\020\001\022\014\n\010OGG_" + "OPUS\020\002\022\007\n\003MP3\020\003\"\221\001\n\022AudioFormatOptions\022/" + "\n\traw_audio\030\001 \001(\0132\032.speechkit.stt.v3.Raw" + "AudioH\000\022;\n\017container_audio\030\002 \001(\0132 .speec" + "hkit.stt.v3.ContainerAudioH\000B\r\n\013AudioFor" + "mat\"\367\001\n\032LanguageRestrictionOptions\022^\n\020re" + "striction_type\030\001 \001(\0162D.speechkit.stt.v3." + "LanguageRestrictionOptions.LanguageRestr" + "ictionType\022\025\n\rlanguage_code\030\002 \003(\t\"b\n\027Lan" + "guageRestrictionType\022)\n%LANGUAGE_RESTRIC" + "TION_TYPE_UNSPECIFIED\020\000\022\r\n\tWHITELIST\020\001\022\r" + "\n\tBLACKLIST\020\002\"\262\003\n\027RecognitionModelOption" + "s\022\r\n\005model\030\001 \001(\t\022:\n\014audio_format\030\002 \001(\0132$" + ".speechkit.stt.v3.AudioFormatOptions\022F\n\022" + "text_normalization\030\003 \001(\0132*.speechkit.stt" + ".v3.TextNormalizationOptions\022J\n\024language" + "_restriction\030\004 \001(\0132,.speechkit.stt.v3.La" + "nguageRestrictionOptions\022\\\n\025audio_proces" + "sing_type\030\005 \001(\0162=.speechkit.stt.v3.Recog" + "nitionModelOptions.AudioProcessingType\"Z" + "\n\023AudioProcessingType\022%\n!AUDIO_PROCESSIN" + "G_TYPE_UNSPECIFIED\020\000\022\r\n\tREAL_TIME\020\001\022\r\n\tF" + "ULL_DATA\020\002\"\252\002\n\020StreamingOptions\022D\n\021recog" + "nition_model\030\001 \001(\0132).speechkit.stt.v3.Re" + "cognitionModelOptions\022>\n\016eou_classifier\030" + "\002 \001(\0132&.speechkit.stt.v3.EouClassifierOp" + "tions\022N\n\026recognition_classifier\030\003 \001(\0132.." + "speechkit.stt.v3.RecognitionClassifierOp" + "tions\022@\n\017speech_analysis\030\004 \001(\0132\'.speechk" + "it.stt.v3.SpeechAnalysisOptions\"\032\n\nAudio" + "Chunk\022\014\n\004data\030\001 \001(\014\"#\n\014SilenceChunk\022\023\n\013d" + "uration_ms\030\001 \001(\003\"\005\n\003Eou\"\350\001\n\020StreamingReq" + "uest\022=\n\017session_options\030\001 \001(\0132\".speechki" + "t.stt.v3.StreamingOptionsH\000\022-\n\005chunk\030\002 \001" + "(\0132\034.speechkit.stt.v3.AudioChunkH\000\0227\n\rsi" + "lence_chunk\030\003 \001(\0132\036.speechkit.stt.v3.Sil" + "enceChunkH\000\022$\n\003eou\030\004 \001(\0132\025.speechkit.stt" + ".v3.EouH\000B\007\n\005Event\"\237\002\n\024RecognizeFileRequ" + "est\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022D\n" + "\021recognition_model\030\003 \001(\0132).speechkit.stt" + ".v3.RecognitionModelOptions\022N\n\026recogniti" + "on_classifier\030\004 \001(\0132..speechkit.stt.v3.R" + "ecognitionClassifierOptions\022@\n\017speech_an" + "alysis\030\005 \001(\0132\'.speechkit.stt.v3.SpeechAn" + "alysisOptionsB\r\n\013AudioSource\"@\n\004Word\022\014\n\004" + "text\030\001 \001(\t\022\025\n\rstart_time_ms\030\002 \001(\003\022\023\n\013end" + "_time_ms\030\003 \001(\003\"@\n\022LanguageEstimation\022\025\n\r" + "language_code\030\001 \001(\t\022\023\n\013probability\030\002 \001(\001" + "\"\273\001\n\013Alternative\022%\n\005words\030\001 \003(\0132\026.speech" + "kit.stt.v3.Word\022\014\n\004text\030\002 \001(\t\022\025\n\rstart_t" + "ime_ms\030\003 \001(\003\022\023\n\013end_time_ms\030\004 \001(\003\022\022\n\ncon" + "fidence\030\005 \001(\001\0227\n\tlanguages\030\006 \003(\0132$.speec" + "hkit.stt.v3.LanguageEstimation\"\034\n\tEouUpd" + "ate\022\017\n\007time_ms\030\002 \001(\003\"a\n\021AlternativeUpdat" + "e\0223\n\014alternatives\030\001 \003(\0132\035.speechkit.stt." + "v3.Alternative\022\027\n\013channel_tag\030\002 \001(\tB\002\030\001\"" + "\231\001\n\014AudioCursors\022\030\n\020received_data_ms\030\001 \001" + "(\003\022\025\n\rreset_time_ms\030\002 \001(\003\022\027\n\017partial_tim" + "e_ms\030\003 \001(\003\022\025\n\rfinal_time_ms\030\004 \001(\003\022\023\n\013fin" + "al_index\030\005 \001(\003\022\023\n\013eou_time_ms\030\006 \001(\003\"n\n\017F" + "inalRefinement\022\023\n\013final_index\030\001 \001(\003\022>\n\017n" + "ormalized_text\030\002 \001(\0132#.speechkit.stt.v3." + "AlternativeUpdateH\000B\006\n\004Type\"L\n\nStatusCod" + "e\022-\n\tcode_type\030\001 \001(\0162\032.speechkit.stt.v3." + "CodeType\022\017\n\007message\030\002 \001(\t\"4\n\013SessionUuid" + "\022\014\n\004uuid\030\001 \001(\t\022\027\n\017user_request_id\030\002 \001(\t\"" + "K\n\017PhraseHighlight\022\014\n\004text\030\001 \001(\t\022\025\n\rstar" + "t_time_ms\030\002 \001(\003\022\023\n\013end_time_ms\030\003 \001(\003\"?\n\032" + "RecognitionClassifierLabel\022\r\n\005label\030\001 \001(" + "\t\022\022\n\nconfidence\030\002 \001(\001\"\246\001\n\033RecognitionCla" + "ssifierResult\022\022\n\nclassifier\030\001 \001(\t\0225\n\nhig" + "hlights\030\002 \003(\0132!.speechkit.stt.v3.PhraseH" + "ighlight\022<\n\006labels\030\003 \003(\0132,.speechkit.stt" + ".v3.RecognitionClassifierLabel\"\261\002\n\033Recog" + "nitionClassifierUpdate\022M\n\013window_type\030\001 " + "\001(\01628.speechkit.stt.v3.RecognitionClassi" + "fierUpdate.WindowType\022\025\n\rstart_time_ms\030\002" + " \001(\003\022\023\n\013end_time_ms\030\003 \001(\003\022H\n\021classifier_" + "result\030\004 \001(\0132-.speechkit.stt.v3.Recognit" + "ionClassifierResult\"M\n\nWindowType\022\033\n\027WIN" + "DOW_TYPE_UNSPECIFIED\020\000\022\022\n\016LAST_UTTERANCE" + "\020\001\022\016\n\nLAST_FINAL\020\002\"\273\001\n\025DescriptiveStatis" + "tics\022\013\n\003min\030\001 \001(\001\022\013\n\003max\030\002 \001(\001\022\014\n\004mean\030\003" + " \001(\001\022\013\n\003std\030\004 \001(\001\022C\n\tquantiles\030\005 \003(\01320.s" + "peechkit.stt.v3.DescriptiveStatistics.Qu" + "antile\032(\n\010Quantile\022\r\n\005level\030\001 \001(\001\022\r\n\005val" + "ue\030\002 \001(\001\"D\n\026AudioSegmentBoundaries\022\025\n\rst" + "art_time_ms\030\001 \001(\003\022\023\n\013end_time_ms\030\002 \001(\003\"\203" + "\006\n\017SpeakerAnalysis\022\023\n\013speaker_tag\030\001 \001(\t\022" + "A\n\013window_type\030\002 \001(\0162,.speechkit.stt.v3." + "SpeakerAnalysis.WindowType\022C\n\021speech_bou" + "ndaries\030\003 \001(\0132(.speechkit.stt.v3.AudioSe" + "gmentBoundaries\022\027\n\017total_speech_ms\030\004 \001(\003" + "\022\024\n\014speech_ratio\030\005 \001(\001\022\030\n\020total_silence_" + "ms\030\006 \001(\003\022\025\n\rsilence_ratio\030\007 \001(\001\022\023\n\013words" + "_count\030\010 \001(\003\022\025\n\rletters_count\030\t \001(\003\022A\n\020w" + "ords_per_second\030\n \001(\0132\'.speechkit.stt.v3" + ".DescriptiveStatistics\022C\n\022letters_per_se" + "cond\030\013 \001(\0132\'.speechkit.stt.v3.Descriptiv" + "eStatistics\022D\n\023words_per_utterance\030\014 \001(\013" + "2\'.speechkit.stt.v3.DescriptiveStatistic" + "s\022F\n\025letters_per_utterance\030\r \001(\0132\'.speec" + "hkit.stt.v3.DescriptiveStatistics\022\027\n\017utt" + "erance_count\030\016 \001(\003\022N\n\035utterance_duration" + "_estimation\030\017 \001(\0132\'.speechkit.stt.v3.Des" + "criptiveStatistics\"H\n\nWindowType\022\033\n\027WIND" + "OW_TYPE_UNSPECIFIED\020\000\022\t\n\005TOTAL\020\001\022\022\n\016LAST" + "_UTTERANCE\020\002\"\307\005\n\024ConversationAnalysis\022I\n" + "\027conversation_boundaries\030\001 \001(\0132(.speechk" + "it.stt.v3.AudioSegmentBoundaries\022.\n&tota" + "l_simultaneous_silence_duration_ms\030\002 \001(\003" + "\022(\n total_simultaneous_silence_ratio\030\003 \001" + "(\001\022Y\n(simultaneous_silence_duration_esti" + "mation\030\004 \001(\0132\'.speechkit.stt.v3.Descript" + "iveStatistics\022-\n%total_simultaneous_spee" + "ch_duration_ms\030\005 \001(\003\022\'\n\037total_simultaneo" + "us_speech_ratio\030\006 \001(\001\022X\n\'simultaneous_sp" + "eech_duration_estimation\030\007 \001(\0132\'.speechk" + "it.stt.v3.DescriptiveStatistics\022W\n\022speak" + "er_interrupts\030\010 \003(\0132;.speechkit.stt.v3.C" + "onversationAnalysis.InterruptsEvaluation" + "\032\243\001\n\024InterruptsEvaluation\022\023\n\013speaker_tag" + "\030\001 \001(\t\022\030\n\020interrupts_count\030\002 \001(\003\022\036\n\026inte" + "rrupts_duration_ms\030\003 \001(\003\022<\n\ninterrupts\030\004" + " \003(\0132(.speechkit.stt.v3.AudioSegmentBoun" + "daries\"\245\005\n\021StreamingResponse\0223\n\014session_" + "uuid\030\001 \001(\0132\035.speechkit.stt.v3.SessionUui" + "d\0225\n\raudio_cursors\030\002 \001(\0132\036.speechkit.stt" + ".v3.AudioCursors\022\035\n\025response_wall_time_m" + "s\030\003 \001(\003\0226\n\007partial\030\004 \001(\0132#.speechkit.stt" + ".v3.AlternativeUpdateH\000\0224\n\005final\030\005 \001(\0132#" + ".speechkit.stt.v3.AlternativeUpdateH\000\0221\n" + "\neou_update\030\006 \001(\0132\033.speechkit.stt.v3.Eou" + "UpdateH\000\022=\n\020final_refinement\030\007 \001(\0132!.spe" + "echkit.stt.v3.FinalRefinementH\000\0223\n\013statu" + "s_code\030\010 \001(\0132\034.speechkit.stt.v3.StatusCo" + "deH\000\022J\n\021classifier_update\030\n \001(\0132-.speech" + "kit.stt.v3.RecognitionClassifierUpdateH\000" + "\022=\n\020speaker_analysis\030\013 \001(\0132!.speechkit.s" + "tt.v3.SpeakerAnalysisH\000\022G\n\025conversation_" + "analysis\030\014 \001(\0132&.speechkit.stt.v3.Conver" + "sationAnalysisH\000\022\023\n\013channel_tag\030\t \001(\tB\007\n" + "\005Event*K\n\010CodeType\022\031\n\025CODE_TYPE_UNSPECIF" + "IED\020\000\022\013\n\007WORKING\020\001\022\013\n\007WARNING\020\002\022\n\n\006CLOSE" + "D\020\003B\\\n\032yandex.cloud.api.ai.stt.v3Z>githu" + "b.com/yandex-cloud/go-genproto/yandex/cl" + "oud/ai/stt/v3;sttb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_speechkit_stt_v3_TextNormalizationOptions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_speechkit_stt_v3_TextNormalizationOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_TextNormalizationOptions_descriptor, new java.lang.String[] { "TextNormalization", "ProfanityFilter", "LiteratureText", "PhoneFormattingMode", }); internal_static_speechkit_stt_v3_DefaultEouClassifier_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_speechkit_stt_v3_DefaultEouClassifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_DefaultEouClassifier_descriptor, new java.lang.String[] { "Type", "MaxPauseBetweenWordsHintMs", }); internal_static_speechkit_stt_v3_ExternalEouClassifier_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_speechkit_stt_v3_ExternalEouClassifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_ExternalEouClassifier_descriptor, new java.lang.String[] { }); internal_static_speechkit_stt_v3_EouClassifierOptions_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_speechkit_stt_v3_EouClassifierOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_EouClassifierOptions_descriptor, new java.lang.String[] { "DefaultClassifier", "ExternalClassifier", "Classifier", }); internal_static_speechkit_stt_v3_RecognitionClassifier_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_speechkit_stt_v3_RecognitionClassifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RecognitionClassifier_descriptor, new java.lang.String[] { "Classifier", "Triggers", }); internal_static_speechkit_stt_v3_RecognitionClassifierOptions_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_speechkit_stt_v3_RecognitionClassifierOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RecognitionClassifierOptions_descriptor, new java.lang.String[] { "Classifiers", }); internal_static_speechkit_stt_v3_SpeechAnalysisOptions_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_speechkit_stt_v3_SpeechAnalysisOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_SpeechAnalysisOptions_descriptor, new java.lang.String[] { "EnableSpeakerAnalysis", "EnableConversationAnalysis", "DescriptiveStatisticsQuantiles", }); internal_static_speechkit_stt_v3_RawAudio_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_speechkit_stt_v3_RawAudio_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RawAudio_descriptor, new java.lang.String[] { "AudioEncoding", "SampleRateHertz", "AudioChannelCount", }); internal_static_speechkit_stt_v3_ContainerAudio_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_speechkit_stt_v3_ContainerAudio_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_ContainerAudio_descriptor, new java.lang.String[] { "ContainerAudioType", }); internal_static_speechkit_stt_v3_AudioFormatOptions_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_speechkit_stt_v3_AudioFormatOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_AudioFormatOptions_descriptor, new java.lang.String[] { "RawAudio", "ContainerAudio", "AudioFormat", }); internal_static_speechkit_stt_v3_LanguageRestrictionOptions_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_speechkit_stt_v3_LanguageRestrictionOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_LanguageRestrictionOptions_descriptor, new java.lang.String[] { "RestrictionType", "LanguageCode", }); internal_static_speechkit_stt_v3_RecognitionModelOptions_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_speechkit_stt_v3_RecognitionModelOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RecognitionModelOptions_descriptor, new java.lang.String[] { "Model", "AudioFormat", "TextNormalization", "LanguageRestriction", "AudioProcessingType", }); internal_static_speechkit_stt_v3_StreamingOptions_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_speechkit_stt_v3_StreamingOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_StreamingOptions_descriptor, new java.lang.String[] { "RecognitionModel", "EouClassifier", "RecognitionClassifier", "SpeechAnalysis", }); internal_static_speechkit_stt_v3_AudioChunk_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_speechkit_stt_v3_AudioChunk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_AudioChunk_descriptor, new java.lang.String[] { "Data", }); internal_static_speechkit_stt_v3_SilenceChunk_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_speechkit_stt_v3_SilenceChunk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_SilenceChunk_descriptor, new java.lang.String[] { "DurationMs", }); internal_static_speechkit_stt_v3_Eou_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_speechkit_stt_v3_Eou_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_Eou_descriptor, new java.lang.String[] { }); internal_static_speechkit_stt_v3_StreamingRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_speechkit_stt_v3_StreamingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_StreamingRequest_descriptor, new java.lang.String[] { "SessionOptions", "Chunk", "SilenceChunk", "Eou", "Event", }); internal_static_speechkit_stt_v3_RecognizeFileRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_speechkit_stt_v3_RecognizeFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RecognizeFileRequest_descriptor, new java.lang.String[] { "Content", "Uri", "RecognitionModel", "RecognitionClassifier", "SpeechAnalysis", "AudioSource", }); internal_static_speechkit_stt_v3_Word_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_speechkit_stt_v3_Word_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_Word_descriptor, new java.lang.String[] { "Text", "StartTimeMs", "EndTimeMs", }); internal_static_speechkit_stt_v3_LanguageEstimation_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_speechkit_stt_v3_LanguageEstimation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_LanguageEstimation_descriptor, new java.lang.String[] { "LanguageCode", "Probability", }); internal_static_speechkit_stt_v3_Alternative_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_speechkit_stt_v3_Alternative_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_Alternative_descriptor, new java.lang.String[] { "Words", "Text", "StartTimeMs", "EndTimeMs", "Confidence", "Languages", }); internal_static_speechkit_stt_v3_EouUpdate_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_speechkit_stt_v3_EouUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_EouUpdate_descriptor, new java.lang.String[] { "TimeMs", }); internal_static_speechkit_stt_v3_AlternativeUpdate_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_speechkit_stt_v3_AlternativeUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_AlternativeUpdate_descriptor, new java.lang.String[] { "Alternatives", "ChannelTag", }); internal_static_speechkit_stt_v3_AudioCursors_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_speechkit_stt_v3_AudioCursors_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_AudioCursors_descriptor, new java.lang.String[] { "ReceivedDataMs", "ResetTimeMs", "PartialTimeMs", "FinalTimeMs", "FinalIndex", "EouTimeMs", }); internal_static_speechkit_stt_v3_FinalRefinement_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_speechkit_stt_v3_FinalRefinement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_FinalRefinement_descriptor, new java.lang.String[] { "FinalIndex", "NormalizedText", "Type", }); internal_static_speechkit_stt_v3_StatusCode_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_speechkit_stt_v3_StatusCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_StatusCode_descriptor, new java.lang.String[] { "CodeType", "Message", }); internal_static_speechkit_stt_v3_SessionUuid_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_speechkit_stt_v3_SessionUuid_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_SessionUuid_descriptor, new java.lang.String[] { "Uuid", "UserRequestId", }); internal_static_speechkit_stt_v3_PhraseHighlight_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_speechkit_stt_v3_PhraseHighlight_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_PhraseHighlight_descriptor, new java.lang.String[] { "Text", "StartTimeMs", "EndTimeMs", }); internal_static_speechkit_stt_v3_RecognitionClassifierLabel_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_speechkit_stt_v3_RecognitionClassifierLabel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RecognitionClassifierLabel_descriptor, new java.lang.String[] { "Label", "Confidence", }); internal_static_speechkit_stt_v3_RecognitionClassifierResult_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_speechkit_stt_v3_RecognitionClassifierResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RecognitionClassifierResult_descriptor, new java.lang.String[] { "Classifier", "Highlights", "Labels", }); internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_RecognitionClassifierUpdate_descriptor, new java.lang.String[] { "WindowType", "StartTimeMs", "EndTimeMs", "ClassifierResult", }); internal_static_speechkit_stt_v3_DescriptiveStatistics_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_speechkit_stt_v3_DescriptiveStatistics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_DescriptiveStatistics_descriptor, new java.lang.String[] { "Min", "Max", "Mean", "Std", "Quantiles", }); internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_descriptor = internal_static_speechkit_stt_v3_DescriptiveStatistics_descriptor.getNestedTypes().get(0); internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_DescriptiveStatistics_Quantile_descriptor, new java.lang.String[] { "Level", "Value", }); internal_static_speechkit_stt_v3_AudioSegmentBoundaries_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_speechkit_stt_v3_AudioSegmentBoundaries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_AudioSegmentBoundaries_descriptor, new java.lang.String[] { "StartTimeMs", "EndTimeMs", }); internal_static_speechkit_stt_v3_SpeakerAnalysis_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_speechkit_stt_v3_SpeakerAnalysis_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_SpeakerAnalysis_descriptor, new java.lang.String[] { "SpeakerTag", "WindowType", "SpeechBoundaries", "TotalSpeechMs", "SpeechRatio", "TotalSilenceMs", "SilenceRatio", "WordsCount", "LettersCount", "WordsPerSecond", "LettersPerSecond", "WordsPerUtterance", "LettersPerUtterance", "UtteranceCount", "UtteranceDurationEstimation", }); internal_static_speechkit_stt_v3_ConversationAnalysis_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_speechkit_stt_v3_ConversationAnalysis_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_ConversationAnalysis_descriptor, new java.lang.String[] { "ConversationBoundaries", "TotalSimultaneousSilenceDurationMs", "TotalSimultaneousSilenceRatio", "SimultaneousSilenceDurationEstimation", "TotalSimultaneousSpeechDurationMs", "TotalSimultaneousSpeechRatio", "SimultaneousSpeechDurationEstimation", "SpeakerInterrupts", }); internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_descriptor = internal_static_speechkit_stt_v3_ConversationAnalysis_descriptor.getNestedTypes().get(0); internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_ConversationAnalysis_InterruptsEvaluation_descriptor, new java.lang.String[] { "SpeakerTag", "InterruptsCount2", "InterruptsDurationMs", "Interrupts4", }); internal_static_speechkit_stt_v3_StreamingResponse_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_speechkit_stt_v3_StreamingResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_speechkit_stt_v3_StreamingResponse_descriptor, new java.lang.String[] { "SessionUuid", "AudioCursors", "ResponseWallTimeMs", "Partial", "Final", "EouUpdate", "FinalRefinement", "StatusCode", "ClassifierUpdate", "SpeakerAnalysis", "ConversationAnalysis", "ChannelTag", "Event", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy