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

com.volcengine.service.vod.model.business.Audio Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: volcengine/vod/business/vod_workflow.proto

package com.volcengine.service.vod.model.business;

/**
 * Protobuf type {@code Volcengine.Vod.Models.Business.Audio}
 */
public final class Audio extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.Audio)
    AudioOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Audio.newBuilder() to construct.
  private Audio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Audio() {
    codec_ = "";
    rateControlMode_ = "";
    profile_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Audio();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Audio(
      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();

            codec_ = s;
            break;
          }
          case 16: {

            sampleRate_ = input.readInt32();
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            rateControlMode_ = s;
            break;
          }
          case 32: {

            bitrate_ = input.readInt32();
            break;
          }
          case 40: {

            minRate_ = input.readInt32();
            break;
          }
          case 48: {

            maxRate_ = input.readInt32();
            break;
          }
          case 56: {

            channels_ = input.readInt32();
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            profile_ = 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 com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Audio_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Audio_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.volcengine.service.vod.model.business.Audio.class, com.volcengine.service.vod.model.business.Audio.Builder.class);
  }

  public static final int CODEC_FIELD_NUMBER = 1;
  private volatile java.lang.Object codec_;
  /**
   * string Codec = 1;
   * @return The codec.
   */
  @java.lang.Override
  public java.lang.String getCodec() {
    java.lang.Object ref = codec_;
    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();
      codec_ = s;
      return s;
    }
  }
  /**
   * string Codec = 1;
   * @return The bytes for codec.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCodecBytes() {
    java.lang.Object ref = codec_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      codec_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SAMPLERATE_FIELD_NUMBER = 2;
  private int sampleRate_;
  /**
   * int32 SampleRate = 2;
   * @return The sampleRate.
   */
  @java.lang.Override
  public int getSampleRate() {
    return sampleRate_;
  }

  public static final int RATECONTROLMODE_FIELD_NUMBER = 3;
  private volatile java.lang.Object rateControlMode_;
  /**
   * string RateControlMode = 3;
   * @return The rateControlMode.
   */
  @java.lang.Override
  public java.lang.String getRateControlMode() {
    java.lang.Object ref = rateControlMode_;
    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();
      rateControlMode_ = s;
      return s;
    }
  }
  /**
   * string RateControlMode = 3;
   * @return The bytes for rateControlMode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRateControlModeBytes() {
    java.lang.Object ref = rateControlMode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      rateControlMode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BITRATE_FIELD_NUMBER = 4;
  private int bitrate_;
  /**
   * int32 Bitrate = 4;
   * @return The bitrate.
   */
  @java.lang.Override
  public int getBitrate() {
    return bitrate_;
  }

  public static final int MINRATE_FIELD_NUMBER = 5;
  private int minRate_;
  /**
   * int32 MinRate = 5;
   * @return The minRate.
   */
  @java.lang.Override
  public int getMinRate() {
    return minRate_;
  }

  public static final int MAXRATE_FIELD_NUMBER = 6;
  private int maxRate_;
  /**
   * int32 MaxRate = 6;
   * @return The maxRate.
   */
  @java.lang.Override
  public int getMaxRate() {
    return maxRate_;
  }

  public static final int CHANNELS_FIELD_NUMBER = 7;
  private int channels_;
  /**
   * int32 Channels = 7;
   * @return The channels.
   */
  @java.lang.Override
  public int getChannels() {
    return channels_;
  }

  public static final int PROFILE_FIELD_NUMBER = 8;
  private volatile java.lang.Object profile_;
  /**
   * string Profile = 8;
   * @return The profile.
   */
  @java.lang.Override
  public java.lang.String getProfile() {
    java.lang.Object ref = profile_;
    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();
      profile_ = s;
      return s;
    }
  }
  /**
   * string Profile = 8;
   * @return The bytes for profile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getProfileBytes() {
    java.lang.Object ref = profile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      profile_ = 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(codec_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, codec_);
    }
    if (sampleRate_ != 0) {
      output.writeInt32(2, sampleRate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateControlMode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rateControlMode_);
    }
    if (bitrate_ != 0) {
      output.writeInt32(4, bitrate_);
    }
    if (minRate_ != 0) {
      output.writeInt32(5, minRate_);
    }
    if (maxRate_ != 0) {
      output.writeInt32(6, maxRate_);
    }
    if (channels_ != 0) {
      output.writeInt32(7, channels_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, profile_);
    }
    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(codec_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, codec_);
    }
    if (sampleRate_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, sampleRate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateControlMode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rateControlMode_);
    }
    if (bitrate_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, bitrate_);
    }
    if (minRate_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, minRate_);
    }
    if (maxRate_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, maxRate_);
    }
    if (channels_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, channels_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, profile_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.volcengine.service.vod.model.business.Audio)) {
      return super.equals(obj);
    }
    com.volcengine.service.vod.model.business.Audio other = (com.volcengine.service.vod.model.business.Audio) obj;

    if (!getCodec()
        .equals(other.getCodec())) return false;
    if (getSampleRate()
        != other.getSampleRate()) return false;
    if (!getRateControlMode()
        .equals(other.getRateControlMode())) return false;
    if (getBitrate()
        != other.getBitrate()) return false;
    if (getMinRate()
        != other.getMinRate()) return false;
    if (getMaxRate()
        != other.getMaxRate()) return false;
    if (getChannels()
        != other.getChannels()) return false;
    if (!getProfile()
        .equals(other.getProfile())) 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) + CODEC_FIELD_NUMBER;
    hash = (53 * hash) + getCodec().hashCode();
    hash = (37 * hash) + SAMPLERATE_FIELD_NUMBER;
    hash = (53 * hash) + getSampleRate();
    hash = (37 * hash) + RATECONTROLMODE_FIELD_NUMBER;
    hash = (53 * hash) + getRateControlMode().hashCode();
    hash = (37 * hash) + BITRATE_FIELD_NUMBER;
    hash = (53 * hash) + getBitrate();
    hash = (37 * hash) + MINRATE_FIELD_NUMBER;
    hash = (53 * hash) + getMinRate();
    hash = (37 * hash) + MAXRATE_FIELD_NUMBER;
    hash = (53 * hash) + getMaxRate();
    hash = (37 * hash) + CHANNELS_FIELD_NUMBER;
    hash = (53 * hash) + getChannels();
    hash = (37 * hash) + PROFILE_FIELD_NUMBER;
    hash = (53 * hash) + getProfile().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.Audio parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.volcengine.service.vod.model.business.Audio parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.volcengine.service.vod.model.business.Audio parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.volcengine.service.vod.model.business.Audio prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code Volcengine.Vod.Models.Business.Audio}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.Audio)
      com.volcengine.service.vod.model.business.AudioOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Audio_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Audio_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.volcengine.service.vod.model.business.Audio.class, com.volcengine.service.vod.model.business.Audio.Builder.class);
    }

    // Construct using com.volcengine.service.vod.model.business.Audio.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();
      codec_ = "";

      sampleRate_ = 0;

      rateControlMode_ = "";

      bitrate_ = 0;

      minRate_ = 0;

      maxRate_ = 0;

      channels_ = 0;

      profile_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_Audio_descriptor;
    }

    @java.lang.Override
    public com.volcengine.service.vod.model.business.Audio getDefaultInstanceForType() {
      return com.volcengine.service.vod.model.business.Audio.getDefaultInstance();
    }

    @java.lang.Override
    public com.volcengine.service.vod.model.business.Audio build() {
      com.volcengine.service.vod.model.business.Audio result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.volcengine.service.vod.model.business.Audio buildPartial() {
      com.volcengine.service.vod.model.business.Audio result = new com.volcengine.service.vod.model.business.Audio(this);
      result.codec_ = codec_;
      result.sampleRate_ = sampleRate_;
      result.rateControlMode_ = rateControlMode_;
      result.bitrate_ = bitrate_;
      result.minRate_ = minRate_;
      result.maxRate_ = maxRate_;
      result.channels_ = channels_;
      result.profile_ = profile_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.volcengine.service.vod.model.business.Audio) {
        return mergeFrom((com.volcengine.service.vod.model.business.Audio)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.volcengine.service.vod.model.business.Audio other) {
      if (other == com.volcengine.service.vod.model.business.Audio.getDefaultInstance()) return this;
      if (!other.getCodec().isEmpty()) {
        codec_ = other.codec_;
        onChanged();
      }
      if (other.getSampleRate() != 0) {
        setSampleRate(other.getSampleRate());
      }
      if (!other.getRateControlMode().isEmpty()) {
        rateControlMode_ = other.rateControlMode_;
        onChanged();
      }
      if (other.getBitrate() != 0) {
        setBitrate(other.getBitrate());
      }
      if (other.getMinRate() != 0) {
        setMinRate(other.getMinRate());
      }
      if (other.getMaxRate() != 0) {
        setMaxRate(other.getMaxRate());
      }
      if (other.getChannels() != 0) {
        setChannels(other.getChannels());
      }
      if (!other.getProfile().isEmpty()) {
        profile_ = other.profile_;
        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 {
      com.volcengine.service.vod.model.business.Audio parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.volcengine.service.vod.model.business.Audio) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object codec_ = "";
    /**
     * string Codec = 1;
     * @return The codec.
     */
    public java.lang.String getCodec() {
      java.lang.Object ref = codec_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        codec_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Codec = 1;
     * @return The bytes for codec.
     */
    public com.google.protobuf.ByteString
        getCodecBytes() {
      java.lang.Object ref = codec_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        codec_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Codec = 1;
     * @param value The codec to set.
     * @return This builder for chaining.
     */
    public Builder setCodec(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      codec_ = value;
      onChanged();
      return this;
    }
    /**
     * string Codec = 1;
     * @return This builder for chaining.
     */
    public Builder clearCodec() {
      
      codec_ = getDefaultInstance().getCodec();
      onChanged();
      return this;
    }
    /**
     * string Codec = 1;
     * @param value The bytes for codec to set.
     * @return This builder for chaining.
     */
    public Builder setCodecBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      codec_ = value;
      onChanged();
      return this;
    }

    private int sampleRate_ ;
    /**
     * int32 SampleRate = 2;
     * @return The sampleRate.
     */
    @java.lang.Override
    public int getSampleRate() {
      return sampleRate_;
    }
    /**
     * int32 SampleRate = 2;
     * @param value The sampleRate to set.
     * @return This builder for chaining.
     */
    public Builder setSampleRate(int value) {
      
      sampleRate_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 SampleRate = 2;
     * @return This builder for chaining.
     */
    public Builder clearSampleRate() {
      
      sampleRate_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object rateControlMode_ = "";
    /**
     * string RateControlMode = 3;
     * @return The rateControlMode.
     */
    public java.lang.String getRateControlMode() {
      java.lang.Object ref = rateControlMode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        rateControlMode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string RateControlMode = 3;
     * @return The bytes for rateControlMode.
     */
    public com.google.protobuf.ByteString
        getRateControlModeBytes() {
      java.lang.Object ref = rateControlMode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        rateControlMode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string RateControlMode = 3;
     * @param value The rateControlMode to set.
     * @return This builder for chaining.
     */
    public Builder setRateControlMode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      rateControlMode_ = value;
      onChanged();
      return this;
    }
    /**
     * string RateControlMode = 3;
     * @return This builder for chaining.
     */
    public Builder clearRateControlMode() {
      
      rateControlMode_ = getDefaultInstance().getRateControlMode();
      onChanged();
      return this;
    }
    /**
     * string RateControlMode = 3;
     * @param value The bytes for rateControlMode to set.
     * @return This builder for chaining.
     */
    public Builder setRateControlModeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      rateControlMode_ = value;
      onChanged();
      return this;
    }

    private int bitrate_ ;
    /**
     * int32 Bitrate = 4;
     * @return The bitrate.
     */
    @java.lang.Override
    public int getBitrate() {
      return bitrate_;
    }
    /**
     * int32 Bitrate = 4;
     * @param value The bitrate to set.
     * @return This builder for chaining.
     */
    public Builder setBitrate(int value) {
      
      bitrate_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 Bitrate = 4;
     * @return This builder for chaining.
     */
    public Builder clearBitrate() {
      
      bitrate_ = 0;
      onChanged();
      return this;
    }

    private int minRate_ ;
    /**
     * int32 MinRate = 5;
     * @return The minRate.
     */
    @java.lang.Override
    public int getMinRate() {
      return minRate_;
    }
    /**
     * int32 MinRate = 5;
     * @param value The minRate to set.
     * @return This builder for chaining.
     */
    public Builder setMinRate(int value) {
      
      minRate_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 MinRate = 5;
     * @return This builder for chaining.
     */
    public Builder clearMinRate() {
      
      minRate_ = 0;
      onChanged();
      return this;
    }

    private int maxRate_ ;
    /**
     * int32 MaxRate = 6;
     * @return The maxRate.
     */
    @java.lang.Override
    public int getMaxRate() {
      return maxRate_;
    }
    /**
     * int32 MaxRate = 6;
     * @param value The maxRate to set.
     * @return This builder for chaining.
     */
    public Builder setMaxRate(int value) {
      
      maxRate_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 MaxRate = 6;
     * @return This builder for chaining.
     */
    public Builder clearMaxRate() {
      
      maxRate_ = 0;
      onChanged();
      return this;
    }

    private int channels_ ;
    /**
     * int32 Channels = 7;
     * @return The channels.
     */
    @java.lang.Override
    public int getChannels() {
      return channels_;
    }
    /**
     * int32 Channels = 7;
     * @param value The channels to set.
     * @return This builder for chaining.
     */
    public Builder setChannels(int value) {
      
      channels_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 Channels = 7;
     * @return This builder for chaining.
     */
    public Builder clearChannels() {
      
      channels_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object profile_ = "";
    /**
     * string Profile = 8;
     * @return The profile.
     */
    public java.lang.String getProfile() {
      java.lang.Object ref = profile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        profile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Profile = 8;
     * @return The bytes for profile.
     */
    public com.google.protobuf.ByteString
        getProfileBytes() {
      java.lang.Object ref = profile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        profile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Profile = 8;
     * @param value The profile to set.
     * @return This builder for chaining.
     */
    public Builder setProfile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      profile_ = value;
      onChanged();
      return this;
    }
    /**
     * string Profile = 8;
     * @return This builder for chaining.
     */
    public Builder clearProfile() {
      
      profile_ = getDefaultInstance().getProfile();
      onChanged();
      return this;
    }
    /**
     * string Profile = 8;
     * @param value The bytes for profile to set.
     * @return This builder for chaining.
     */
    public Builder setProfileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      profile_ = 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:Volcengine.Vod.Models.Business.Audio)
  }

  // @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.Audio)
  private static final com.volcengine.service.vod.model.business.Audio DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.Audio();
  }

  public static com.volcengine.service.vod.model.business.Audio getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser




© 2015 - 2024 Weber Informatics LLC | Privacy Policy