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

com.volcengine.service.vod.model.business.TradeConfigurationInfoResult 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_trade.proto

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

/**
 * Protobuf type {@code Volcengine.Vod.Models.Business.TradeConfigurationInfoResult}
 */
public final class TradeConfigurationInfoResult extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.TradeConfigurationInfoResult)
    TradeConfigurationInfoResultOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TradeConfigurationInfoResult.newBuilder() to construct.
  private TradeConfigurationInfoResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TradeConfigurationInfoResult() {
    basic_ = java.util.Collections.emptyList();
    addition_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TradeConfigurationInfoResult(
      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)) {
              basic_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            basic_.add(
                input.readMessage(com.volcengine.service.vod.model.business.TradeProduct.parser(), extensionRegistry));
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              addition_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            addition_.add(
                input.readMessage(com.volcengine.service.vod.model.business.TradeProduct.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)) {
        basic_ = java.util.Collections.unmodifiableList(basic_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        addition_ = java.util.Collections.unmodifiableList(addition_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.volcengine.service.vod.model.business.VodTrade.internal_static_Volcengine_Vod_Models_Business_TradeConfigurationInfoResult_descriptor;
  }

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

  public static final int BASIC_FIELD_NUMBER = 1;
  private java.util.List basic_;
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
   */
  @java.lang.Override
  public java.util.List getBasicList() {
    return basic_;
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
   */
  @java.lang.Override
  public java.util.List 
      getBasicOrBuilderList() {
    return basic_;
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
   */
  @java.lang.Override
  public int getBasicCount() {
    return basic_.size();
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.TradeProduct getBasic(int index) {
    return basic_.get(index);
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.TradeProductOrBuilder getBasicOrBuilder(
      int index) {
    return basic_.get(index);
  }

  public static final int ADDITION_FIELD_NUMBER = 2;
  private java.util.List addition_;
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
   */
  @java.lang.Override
  public java.util.List getAdditionList() {
    return addition_;
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
   */
  @java.lang.Override
  public java.util.List 
      getAdditionOrBuilderList() {
    return addition_;
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
   */
  @java.lang.Override
  public int getAdditionCount() {
    return addition_.size();
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.TradeProduct getAddition(int index) {
    return addition_.get(index);
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.TradeProductOrBuilder getAdditionOrBuilder(
      int index) {
    return addition_.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 < basic_.size(); i++) {
      output.writeMessage(1, basic_.get(i));
    }
    for (int i = 0; i < addition_.size(); i++) {
      output.writeMessage(2, addition_.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 < basic_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, basic_.get(i));
    }
    for (int i = 0; i < addition_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, addition_.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 com.volcengine.service.vod.model.business.TradeConfigurationInfoResult)) {
      return super.equals(obj);
    }
    com.volcengine.service.vod.model.business.TradeConfigurationInfoResult other = (com.volcengine.service.vod.model.business.TradeConfigurationInfoResult) obj;

    if (!getBasicList()
        .equals(other.getBasicList())) return false;
    if (!getAdditionList()
        .equals(other.getAdditionList())) 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 (getBasicCount() > 0) {
      hash = (37 * hash) + BASIC_FIELD_NUMBER;
      hash = (53 * hash) + getBasicList().hashCode();
    }
    if (getAdditionCount() > 0) {
      hash = (37 * hash) + ADDITION_FIELD_NUMBER;
      hash = (53 * hash) + getAdditionList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.volcengine.service.vod.model.business.TradeConfigurationInfoResult parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult 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.TradeConfigurationInfoResult}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.TradeConfigurationInfoResult)
      com.volcengine.service.vod.model.business.TradeConfigurationInfoResultOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.volcengine.service.vod.model.business.VodTrade.internal_static_Volcengine_Vod_Models_Business_TradeConfigurationInfoResult_descriptor;
    }

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

    // Construct using com.volcengine.service.vod.model.business.TradeConfigurationInfoResult.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getBasicFieldBuilder();
        getAdditionFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (basicBuilder_ == null) {
        basic_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        basicBuilder_.clear();
      }
      if (additionBuilder_ == null) {
        addition_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        additionBuilder_.clear();
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public com.volcengine.service.vod.model.business.TradeConfigurationInfoResult buildPartial() {
      com.volcengine.service.vod.model.business.TradeConfigurationInfoResult result = new com.volcengine.service.vod.model.business.TradeConfigurationInfoResult(this);
      int from_bitField0_ = bitField0_;
      if (basicBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          basic_ = java.util.Collections.unmodifiableList(basic_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.basic_ = basic_;
      } else {
        result.basic_ = basicBuilder_.build();
      }
      if (additionBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          addition_ = java.util.Collections.unmodifiableList(addition_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.addition_ = addition_;
      } else {
        result.addition_ = additionBuilder_.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 com.volcengine.service.vod.model.business.TradeConfigurationInfoResult) {
        return mergeFrom((com.volcengine.service.vod.model.business.TradeConfigurationInfoResult)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.volcengine.service.vod.model.business.TradeConfigurationInfoResult other) {
      if (other == com.volcengine.service.vod.model.business.TradeConfigurationInfoResult.getDefaultInstance()) return this;
      if (basicBuilder_ == null) {
        if (!other.basic_.isEmpty()) {
          if (basic_.isEmpty()) {
            basic_ = other.basic_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureBasicIsMutable();
            basic_.addAll(other.basic_);
          }
          onChanged();
        }
      } else {
        if (!other.basic_.isEmpty()) {
          if (basicBuilder_.isEmpty()) {
            basicBuilder_.dispose();
            basicBuilder_ = null;
            basic_ = other.basic_;
            bitField0_ = (bitField0_ & ~0x00000001);
            basicBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getBasicFieldBuilder() : null;
          } else {
            basicBuilder_.addAllMessages(other.basic_);
          }
        }
      }
      if (additionBuilder_ == null) {
        if (!other.addition_.isEmpty()) {
          if (addition_.isEmpty()) {
            addition_ = other.addition_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureAdditionIsMutable();
            addition_.addAll(other.addition_);
          }
          onChanged();
        }
      } else {
        if (!other.addition_.isEmpty()) {
          if (additionBuilder_.isEmpty()) {
            additionBuilder_.dispose();
            additionBuilder_ = null;
            addition_ = other.addition_;
            bitField0_ = (bitField0_ & ~0x00000002);
            additionBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getAdditionFieldBuilder() : null;
          } else {
            additionBuilder_.addAllMessages(other.addition_);
          }
        }
      }
      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.TradeConfigurationInfoResult parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.volcengine.service.vod.model.business.TradeConfigurationInfoResult) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List basic_ =
      java.util.Collections.emptyList();
    private void ensureBasicIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        basic_ = new java.util.ArrayList(basic_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.volcengine.service.vod.model.business.TradeProduct, com.volcengine.service.vod.model.business.TradeProduct.Builder, com.volcengine.service.vod.model.business.TradeProductOrBuilder> basicBuilder_;

    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public java.util.List getBasicList() {
      if (basicBuilder_ == null) {
        return java.util.Collections.unmodifiableList(basic_);
      } else {
        return basicBuilder_.getMessageList();
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public int getBasicCount() {
      if (basicBuilder_ == null) {
        return basic_.size();
      } else {
        return basicBuilder_.getCount();
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public com.volcengine.service.vod.model.business.TradeProduct getBasic(int index) {
      if (basicBuilder_ == null) {
        return basic_.get(index);
      } else {
        return basicBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder setBasic(
        int index, com.volcengine.service.vod.model.business.TradeProduct value) {
      if (basicBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBasicIsMutable();
        basic_.set(index, value);
        onChanged();
      } else {
        basicBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder setBasic(
        int index, com.volcengine.service.vod.model.business.TradeProduct.Builder builderForValue) {
      if (basicBuilder_ == null) {
        ensureBasicIsMutable();
        basic_.set(index, builderForValue.build());
        onChanged();
      } else {
        basicBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder addBasic(com.volcengine.service.vod.model.business.TradeProduct value) {
      if (basicBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBasicIsMutable();
        basic_.add(value);
        onChanged();
      } else {
        basicBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder addBasic(
        int index, com.volcengine.service.vod.model.business.TradeProduct value) {
      if (basicBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBasicIsMutable();
        basic_.add(index, value);
        onChanged();
      } else {
        basicBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder addBasic(
        com.volcengine.service.vod.model.business.TradeProduct.Builder builderForValue) {
      if (basicBuilder_ == null) {
        ensureBasicIsMutable();
        basic_.add(builderForValue.build());
        onChanged();
      } else {
        basicBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder addBasic(
        int index, com.volcengine.service.vod.model.business.TradeProduct.Builder builderForValue) {
      if (basicBuilder_ == null) {
        ensureBasicIsMutable();
        basic_.add(index, builderForValue.build());
        onChanged();
      } else {
        basicBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder addAllBasic(
        java.lang.Iterable values) {
      if (basicBuilder_ == null) {
        ensureBasicIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, basic_);
        onChanged();
      } else {
        basicBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder clearBasic() {
      if (basicBuilder_ == null) {
        basic_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        basicBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public Builder removeBasic(int index) {
      if (basicBuilder_ == null) {
        ensureBasicIsMutable();
        basic_.remove(index);
        onChanged();
      } else {
        basicBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public com.volcengine.service.vod.model.business.TradeProduct.Builder getBasicBuilder(
        int index) {
      return getBasicFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public com.volcengine.service.vod.model.business.TradeProductOrBuilder getBasicOrBuilder(
        int index) {
      if (basicBuilder_ == null) {
        return basic_.get(index);  } else {
        return basicBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public java.util.List 
         getBasicOrBuilderList() {
      if (basicBuilder_ != null) {
        return basicBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(basic_);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public com.volcengine.service.vod.model.business.TradeProduct.Builder addBasicBuilder() {
      return getBasicFieldBuilder().addBuilder(
          com.volcengine.service.vod.model.business.TradeProduct.getDefaultInstance());
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public com.volcengine.service.vod.model.business.TradeProduct.Builder addBasicBuilder(
        int index) {
      return getBasicFieldBuilder().addBuilder(
          index, com.volcengine.service.vod.model.business.TradeProduct.getDefaultInstance());
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Basic = 1;
     */
    public java.util.List 
         getBasicBuilderList() {
      return getBasicFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.volcengine.service.vod.model.business.TradeProduct, com.volcengine.service.vod.model.business.TradeProduct.Builder, com.volcengine.service.vod.model.business.TradeProductOrBuilder> 
        getBasicFieldBuilder() {
      if (basicBuilder_ == null) {
        basicBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.volcengine.service.vod.model.business.TradeProduct, com.volcengine.service.vod.model.business.TradeProduct.Builder, com.volcengine.service.vod.model.business.TradeProductOrBuilder>(
                basic_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        basic_ = null;
      }
      return basicBuilder_;
    }

    private java.util.List addition_ =
      java.util.Collections.emptyList();
    private void ensureAdditionIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        addition_ = new java.util.ArrayList(addition_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.volcengine.service.vod.model.business.TradeProduct, com.volcengine.service.vod.model.business.TradeProduct.Builder, com.volcengine.service.vod.model.business.TradeProductOrBuilder> additionBuilder_;

    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public java.util.List getAdditionList() {
      if (additionBuilder_ == null) {
        return java.util.Collections.unmodifiableList(addition_);
      } else {
        return additionBuilder_.getMessageList();
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public int getAdditionCount() {
      if (additionBuilder_ == null) {
        return addition_.size();
      } else {
        return additionBuilder_.getCount();
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public com.volcengine.service.vod.model.business.TradeProduct getAddition(int index) {
      if (additionBuilder_ == null) {
        return addition_.get(index);
      } else {
        return additionBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder setAddition(
        int index, com.volcengine.service.vod.model.business.TradeProduct value) {
      if (additionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAdditionIsMutable();
        addition_.set(index, value);
        onChanged();
      } else {
        additionBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder setAddition(
        int index, com.volcengine.service.vod.model.business.TradeProduct.Builder builderForValue) {
      if (additionBuilder_ == null) {
        ensureAdditionIsMutable();
        addition_.set(index, builderForValue.build());
        onChanged();
      } else {
        additionBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder addAddition(com.volcengine.service.vod.model.business.TradeProduct value) {
      if (additionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAdditionIsMutable();
        addition_.add(value);
        onChanged();
      } else {
        additionBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder addAddition(
        int index, com.volcengine.service.vod.model.business.TradeProduct value) {
      if (additionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAdditionIsMutable();
        addition_.add(index, value);
        onChanged();
      } else {
        additionBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder addAddition(
        com.volcengine.service.vod.model.business.TradeProduct.Builder builderForValue) {
      if (additionBuilder_ == null) {
        ensureAdditionIsMutable();
        addition_.add(builderForValue.build());
        onChanged();
      } else {
        additionBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder addAddition(
        int index, com.volcengine.service.vod.model.business.TradeProduct.Builder builderForValue) {
      if (additionBuilder_ == null) {
        ensureAdditionIsMutable();
        addition_.add(index, builderForValue.build());
        onChanged();
      } else {
        additionBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder addAllAddition(
        java.lang.Iterable values) {
      if (additionBuilder_ == null) {
        ensureAdditionIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, addition_);
        onChanged();
      } else {
        additionBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder clearAddition() {
      if (additionBuilder_ == null) {
        addition_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        additionBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public Builder removeAddition(int index) {
      if (additionBuilder_ == null) {
        ensureAdditionIsMutable();
        addition_.remove(index);
        onChanged();
      } else {
        additionBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public com.volcengine.service.vod.model.business.TradeProduct.Builder getAdditionBuilder(
        int index) {
      return getAdditionFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public com.volcengine.service.vod.model.business.TradeProductOrBuilder getAdditionOrBuilder(
        int index) {
      if (additionBuilder_ == null) {
        return addition_.get(index);  } else {
        return additionBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public java.util.List 
         getAdditionOrBuilderList() {
      if (additionBuilder_ != null) {
        return additionBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(addition_);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public com.volcengine.service.vod.model.business.TradeProduct.Builder addAdditionBuilder() {
      return getAdditionFieldBuilder().addBuilder(
          com.volcengine.service.vod.model.business.TradeProduct.getDefaultInstance());
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public com.volcengine.service.vod.model.business.TradeProduct.Builder addAdditionBuilder(
        int index) {
      return getAdditionFieldBuilder().addBuilder(
          index, com.volcengine.service.vod.model.business.TradeProduct.getDefaultInstance());
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.TradeProduct Addition = 2;
     */
    public java.util.List 
         getAdditionBuilderList() {
      return getAdditionFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.volcengine.service.vod.model.business.TradeProduct, com.volcengine.service.vod.model.business.TradeProduct.Builder, com.volcengine.service.vod.model.business.TradeProductOrBuilder> 
        getAdditionFieldBuilder() {
      if (additionBuilder_ == null) {
        additionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.volcengine.service.vod.model.business.TradeProduct, com.volcengine.service.vod.model.business.TradeProduct.Builder, com.volcengine.service.vod.model.business.TradeProductOrBuilder>(
                addition_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        addition_ = null;
      }
      return additionBuilder_;
    }
    @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.TradeConfigurationInfoResult)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TradeConfigurationInfoResult parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new TradeConfigurationInfoResult(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy