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

com.volcengine.service.vod.model.business.TradeProduct 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.TradeProduct}
 */
public final class TradeProduct extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.TradeProduct)
    TradeProductOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TradeProduct.newBuilder() to construct.
  private TradeProduct(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TradeProduct() {
    configuration_ = "";
    configurationName_ = "";
    product_ = "";
    chargeItems_ = java.util.Collections.emptyList();
    instanceID_ = "";
    instanceCreateTime_ = "";
    nextEventEffectiveTime_ = "";
    nextEventType_ = "";
  }

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

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

            configuration_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

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

            product_ = s;
            break;
          }
          case 32: {

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

            canPrePay_ = input.readInt32();
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              chargeItems_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            chargeItems_.add(
                input.readMessage(com.volcengine.service.vod.model.business.ChargeItem.parser(), extensionRegistry));
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            instanceID_ = s;
            break;
          }
          case 64: {

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

            instanceCreateTime_ = s;
            break;
          }
          case 82: {
            java.lang.String s = input.readStringRequireUtf8();

            nextEventEffectiveTime_ = s;
            break;
          }
          case 90: {
            java.lang.String s = input.readStringRequireUtf8();

            nextEventType_ = 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)) {
        chargeItems_ = java.util.Collections.unmodifiableList(chargeItems_);
      }
      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_TradeProduct_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_TradeProduct_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.volcengine.service.vod.model.business.TradeProduct.class, com.volcengine.service.vod.model.business.TradeProduct.Builder.class);
  }

  public static final int CONFIGURATION_FIELD_NUMBER = 1;
  private volatile java.lang.Object configuration_;
  /**
   * string Configuration = 1;
   * @return The configuration.
   */
  @java.lang.Override
  public java.lang.String getConfiguration() {
    java.lang.Object ref = configuration_;
    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();
      configuration_ = s;
      return s;
    }
  }
  /**
   * string Configuration = 1;
   * @return The bytes for configuration.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getConfigurationBytes() {
    java.lang.Object ref = configuration_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      configuration_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONFIGURATIONNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object configurationName_;
  /**
   * string ConfigurationName = 2;
   * @return The configurationName.
   */
  @java.lang.Override
  public java.lang.String getConfigurationName() {
    java.lang.Object ref = configurationName_;
    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();
      configurationName_ = s;
      return s;
    }
  }
  /**
   * string ConfigurationName = 2;
   * @return The bytes for configurationName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getConfigurationNameBytes() {
    java.lang.Object ref = configurationName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      configurationName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRODUCT_FIELD_NUMBER = 3;
  private volatile java.lang.Object product_;
  /**
   * string Product = 3;
   * @return The product.
   */
  @java.lang.Override
  public java.lang.String getProduct() {
    java.lang.Object ref = product_;
    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();
      product_ = s;
      return s;
    }
  }
  /**
   * string Product = 3;
   * @return The bytes for product.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getProductBytes() {
    java.lang.Object ref = product_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      product_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SETTLEMENTPERIOD_FIELD_NUMBER = 4;
  private int settlementPeriod_;
  /**
   * int32 SettlementPeriod = 4;
   * @return The settlementPeriod.
   */
  @java.lang.Override
  public int getSettlementPeriod() {
    return settlementPeriod_;
  }

  public static final int CANPREPAY_FIELD_NUMBER = 5;
  private int canPrePay_;
  /**
   * int32 CanPrePay = 5;
   * @return The canPrePay.
   */
  @java.lang.Override
  public int getCanPrePay() {
    return canPrePay_;
  }

  public static final int CHARGEITEMS_FIELD_NUMBER = 6;
  private java.util.List chargeItems_;
  /**
   * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
   */
  @java.lang.Override
  public java.util.List getChargeItemsList() {
    return chargeItems_;
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
   */
  @java.lang.Override
  public java.util.List 
      getChargeItemsOrBuilderList() {
    return chargeItems_;
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
   */
  @java.lang.Override
  public int getChargeItemsCount() {
    return chargeItems_.size();
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.ChargeItem getChargeItems(int index) {
    return chargeItems_.get(index);
  }
  /**
   * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.ChargeItemOrBuilder getChargeItemsOrBuilder(
      int index) {
    return chargeItems_.get(index);
  }

  public static final int INSTANCEID_FIELD_NUMBER = 7;
  private volatile java.lang.Object instanceID_;
  /**
   * string InstanceID = 7;
   * @return The instanceID.
   */
  @java.lang.Override
  public java.lang.String getInstanceID() {
    java.lang.Object ref = instanceID_;
    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();
      instanceID_ = s;
      return s;
    }
  }
  /**
   * string InstanceID = 7;
   * @return The bytes for instanceID.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInstanceIDBytes() {
    java.lang.Object ref = instanceID_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      instanceID_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSTANCESTATUS_FIELD_NUMBER = 8;
  private int instanceStatus_;
  /**
   * int32 InstanceStatus = 8;
   * @return The instanceStatus.
   */
  @java.lang.Override
  public int getInstanceStatus() {
    return instanceStatus_;
  }

  public static final int INSTANCECREATETIME_FIELD_NUMBER = 9;
  private volatile java.lang.Object instanceCreateTime_;
  /**
   * string InstanceCreateTime = 9;
   * @return The instanceCreateTime.
   */
  @java.lang.Override
  public java.lang.String getInstanceCreateTime() {
    java.lang.Object ref = instanceCreateTime_;
    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();
      instanceCreateTime_ = s;
      return s;
    }
  }
  /**
   * string InstanceCreateTime = 9;
   * @return The bytes for instanceCreateTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInstanceCreateTimeBytes() {
    java.lang.Object ref = instanceCreateTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      instanceCreateTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NEXTEVENTEFFECTIVETIME_FIELD_NUMBER = 10;
  private volatile java.lang.Object nextEventEffectiveTime_;
  /**
   * string NextEventEffectiveTime = 10;
   * @return The nextEventEffectiveTime.
   */
  @java.lang.Override
  public java.lang.String getNextEventEffectiveTime() {
    java.lang.Object ref = nextEventEffectiveTime_;
    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();
      nextEventEffectiveTime_ = s;
      return s;
    }
  }
  /**
   * string NextEventEffectiveTime = 10;
   * @return The bytes for nextEventEffectiveTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNextEventEffectiveTimeBytes() {
    java.lang.Object ref = nextEventEffectiveTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      nextEventEffectiveTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NEXTEVENTTYPE_FIELD_NUMBER = 11;
  private volatile java.lang.Object nextEventType_;
  /**
   * string NextEventType = 11;
   * @return The nextEventType.
   */
  @java.lang.Override
  public java.lang.String getNextEventType() {
    java.lang.Object ref = nextEventType_;
    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();
      nextEventType_ = s;
      return s;
    }
  }
  /**
   * string NextEventType = 11;
   * @return The bytes for nextEventType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNextEventTypeBytes() {
    java.lang.Object ref = nextEventType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      nextEventType_ = 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(configuration_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configuration_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, configurationName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(product_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, product_);
    }
    if (settlementPeriod_ != 0) {
      output.writeInt32(4, settlementPeriod_);
    }
    if (canPrePay_ != 0) {
      output.writeInt32(5, canPrePay_);
    }
    for (int i = 0; i < chargeItems_.size(); i++) {
      output.writeMessage(6, chargeItems_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceID_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, instanceID_);
    }
    if (instanceStatus_ != 0) {
      output.writeInt32(8, instanceStatus_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceCreateTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, instanceCreateTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextEventEffectiveTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nextEventEffectiveTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextEventType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, nextEventType_);
    }
    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(configuration_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configuration_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configurationName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(product_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, product_);
    }
    if (settlementPeriod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, settlementPeriod_);
    }
    if (canPrePay_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, canPrePay_);
    }
    for (int i = 0; i < chargeItems_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, chargeItems_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceID_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, instanceID_);
    }
    if (instanceStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, instanceStatus_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceCreateTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, instanceCreateTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextEventEffectiveTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nextEventEffectiveTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextEventType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, nextEventType_);
    }
    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.TradeProduct)) {
      return super.equals(obj);
    }
    com.volcengine.service.vod.model.business.TradeProduct other = (com.volcengine.service.vod.model.business.TradeProduct) obj;

    if (!getConfiguration()
        .equals(other.getConfiguration())) return false;
    if (!getConfigurationName()
        .equals(other.getConfigurationName())) return false;
    if (!getProduct()
        .equals(other.getProduct())) return false;
    if (getSettlementPeriod()
        != other.getSettlementPeriod()) return false;
    if (getCanPrePay()
        != other.getCanPrePay()) return false;
    if (!getChargeItemsList()
        .equals(other.getChargeItemsList())) return false;
    if (!getInstanceID()
        .equals(other.getInstanceID())) return false;
    if (getInstanceStatus()
        != other.getInstanceStatus()) return false;
    if (!getInstanceCreateTime()
        .equals(other.getInstanceCreateTime())) return false;
    if (!getNextEventEffectiveTime()
        .equals(other.getNextEventEffectiveTime())) return false;
    if (!getNextEventType()
        .equals(other.getNextEventType())) 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) + CONFIGURATION_FIELD_NUMBER;
    hash = (53 * hash) + getConfiguration().hashCode();
    hash = (37 * hash) + CONFIGURATIONNAME_FIELD_NUMBER;
    hash = (53 * hash) + getConfigurationName().hashCode();
    hash = (37 * hash) + PRODUCT_FIELD_NUMBER;
    hash = (53 * hash) + getProduct().hashCode();
    hash = (37 * hash) + SETTLEMENTPERIOD_FIELD_NUMBER;
    hash = (53 * hash) + getSettlementPeriod();
    hash = (37 * hash) + CANPREPAY_FIELD_NUMBER;
    hash = (53 * hash) + getCanPrePay();
    if (getChargeItemsCount() > 0) {
      hash = (37 * hash) + CHARGEITEMS_FIELD_NUMBER;
      hash = (53 * hash) + getChargeItemsList().hashCode();
    }
    hash = (37 * hash) + INSTANCEID_FIELD_NUMBER;
    hash = (53 * hash) + getInstanceID().hashCode();
    hash = (37 * hash) + INSTANCESTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getInstanceStatus();
    hash = (37 * hash) + INSTANCECREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + getInstanceCreateTime().hashCode();
    hash = (37 * hash) + NEXTEVENTEFFECTIVETIME_FIELD_NUMBER;
    hash = (53 * hash) + getNextEventEffectiveTime().hashCode();
    hash = (37 * hash) + NEXTEVENTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getNextEventType().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getChargeItemsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      configuration_ = "";

      configurationName_ = "";

      product_ = "";

      settlementPeriod_ = 0;

      canPrePay_ = 0;

      if (chargeItemsBuilder_ == null) {
        chargeItems_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        chargeItemsBuilder_.clear();
      }
      instanceID_ = "";

      instanceStatus_ = 0;

      instanceCreateTime_ = "";

      nextEventEffectiveTime_ = "";

      nextEventType_ = "";

      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_TradeProduct_descriptor;
    }

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

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

    @java.lang.Override
    public com.volcengine.service.vod.model.business.TradeProduct buildPartial() {
      com.volcengine.service.vod.model.business.TradeProduct result = new com.volcengine.service.vod.model.business.TradeProduct(this);
      int from_bitField0_ = bitField0_;
      result.configuration_ = configuration_;
      result.configurationName_ = configurationName_;
      result.product_ = product_;
      result.settlementPeriod_ = settlementPeriod_;
      result.canPrePay_ = canPrePay_;
      if (chargeItemsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          chargeItems_ = java.util.Collections.unmodifiableList(chargeItems_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.chargeItems_ = chargeItems_;
      } else {
        result.chargeItems_ = chargeItemsBuilder_.build();
      }
      result.instanceID_ = instanceID_;
      result.instanceStatus_ = instanceStatus_;
      result.instanceCreateTime_ = instanceCreateTime_;
      result.nextEventEffectiveTime_ = nextEventEffectiveTime_;
      result.nextEventType_ = nextEventType_;
      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.TradeProduct) {
        return mergeFrom((com.volcengine.service.vod.model.business.TradeProduct)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.volcengine.service.vod.model.business.TradeProduct other) {
      if (other == com.volcengine.service.vod.model.business.TradeProduct.getDefaultInstance()) return this;
      if (!other.getConfiguration().isEmpty()) {
        configuration_ = other.configuration_;
        onChanged();
      }
      if (!other.getConfigurationName().isEmpty()) {
        configurationName_ = other.configurationName_;
        onChanged();
      }
      if (!other.getProduct().isEmpty()) {
        product_ = other.product_;
        onChanged();
      }
      if (other.getSettlementPeriod() != 0) {
        setSettlementPeriod(other.getSettlementPeriod());
      }
      if (other.getCanPrePay() != 0) {
        setCanPrePay(other.getCanPrePay());
      }
      if (chargeItemsBuilder_ == null) {
        if (!other.chargeItems_.isEmpty()) {
          if (chargeItems_.isEmpty()) {
            chargeItems_ = other.chargeItems_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureChargeItemsIsMutable();
            chargeItems_.addAll(other.chargeItems_);
          }
          onChanged();
        }
      } else {
        if (!other.chargeItems_.isEmpty()) {
          if (chargeItemsBuilder_.isEmpty()) {
            chargeItemsBuilder_.dispose();
            chargeItemsBuilder_ = null;
            chargeItems_ = other.chargeItems_;
            bitField0_ = (bitField0_ & ~0x00000001);
            chargeItemsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getChargeItemsFieldBuilder() : null;
          } else {
            chargeItemsBuilder_.addAllMessages(other.chargeItems_);
          }
        }
      }
      if (!other.getInstanceID().isEmpty()) {
        instanceID_ = other.instanceID_;
        onChanged();
      }
      if (other.getInstanceStatus() != 0) {
        setInstanceStatus(other.getInstanceStatus());
      }
      if (!other.getInstanceCreateTime().isEmpty()) {
        instanceCreateTime_ = other.instanceCreateTime_;
        onChanged();
      }
      if (!other.getNextEventEffectiveTime().isEmpty()) {
        nextEventEffectiveTime_ = other.nextEventEffectiveTime_;
        onChanged();
      }
      if (!other.getNextEventType().isEmpty()) {
        nextEventType_ = other.nextEventType_;
        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.TradeProduct parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.volcengine.service.vod.model.business.TradeProduct) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object configuration_ = "";
    /**
     * string Configuration = 1;
     * @return The configuration.
     */
    public java.lang.String getConfiguration() {
      java.lang.Object ref = configuration_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        configuration_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Configuration = 1;
     * @return The bytes for configuration.
     */
    public com.google.protobuf.ByteString
        getConfigurationBytes() {
      java.lang.Object ref = configuration_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        configuration_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Configuration = 1;
     * @param value The configuration to set.
     * @return This builder for chaining.
     */
    public Builder setConfiguration(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      configuration_ = value;
      onChanged();
      return this;
    }
    /**
     * string Configuration = 1;
     * @return This builder for chaining.
     */
    public Builder clearConfiguration() {
      
      configuration_ = getDefaultInstance().getConfiguration();
      onChanged();
      return this;
    }
    /**
     * string Configuration = 1;
     * @param value The bytes for configuration to set.
     * @return This builder for chaining.
     */
    public Builder setConfigurationBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      configuration_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object configurationName_ = "";
    /**
     * string ConfigurationName = 2;
     * @return The configurationName.
     */
    public java.lang.String getConfigurationName() {
      java.lang.Object ref = configurationName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        configurationName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string ConfigurationName = 2;
     * @return The bytes for configurationName.
     */
    public com.google.protobuf.ByteString
        getConfigurationNameBytes() {
      java.lang.Object ref = configurationName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        configurationName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string ConfigurationName = 2;
     * @param value The configurationName to set.
     * @return This builder for chaining.
     */
    public Builder setConfigurationName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      configurationName_ = value;
      onChanged();
      return this;
    }
    /**
     * string ConfigurationName = 2;
     * @return This builder for chaining.
     */
    public Builder clearConfigurationName() {
      
      configurationName_ = getDefaultInstance().getConfigurationName();
      onChanged();
      return this;
    }
    /**
     * string ConfigurationName = 2;
     * @param value The bytes for configurationName to set.
     * @return This builder for chaining.
     */
    public Builder setConfigurationNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      configurationName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object product_ = "";
    /**
     * string Product = 3;
     * @return The product.
     */
    public java.lang.String getProduct() {
      java.lang.Object ref = product_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        product_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Product = 3;
     * @return The bytes for product.
     */
    public com.google.protobuf.ByteString
        getProductBytes() {
      java.lang.Object ref = product_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        product_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Product = 3;
     * @param value The product to set.
     * @return This builder for chaining.
     */
    public Builder setProduct(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      product_ = value;
      onChanged();
      return this;
    }
    /**
     * string Product = 3;
     * @return This builder for chaining.
     */
    public Builder clearProduct() {
      
      product_ = getDefaultInstance().getProduct();
      onChanged();
      return this;
    }
    /**
     * string Product = 3;
     * @param value The bytes for product to set.
     * @return This builder for chaining.
     */
    public Builder setProductBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      product_ = value;
      onChanged();
      return this;
    }

    private int settlementPeriod_ ;
    /**
     * int32 SettlementPeriod = 4;
     * @return The settlementPeriod.
     */
    @java.lang.Override
    public int getSettlementPeriod() {
      return settlementPeriod_;
    }
    /**
     * int32 SettlementPeriod = 4;
     * @param value The settlementPeriod to set.
     * @return This builder for chaining.
     */
    public Builder setSettlementPeriod(int value) {
      
      settlementPeriod_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 SettlementPeriod = 4;
     * @return This builder for chaining.
     */
    public Builder clearSettlementPeriod() {
      
      settlementPeriod_ = 0;
      onChanged();
      return this;
    }

    private int canPrePay_ ;
    /**
     * int32 CanPrePay = 5;
     * @return The canPrePay.
     */
    @java.lang.Override
    public int getCanPrePay() {
      return canPrePay_;
    }
    /**
     * int32 CanPrePay = 5;
     * @param value The canPrePay to set.
     * @return This builder for chaining.
     */
    public Builder setCanPrePay(int value) {
      
      canPrePay_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 CanPrePay = 5;
     * @return This builder for chaining.
     */
    public Builder clearCanPrePay() {
      
      canPrePay_ = 0;
      onChanged();
      return this;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.volcengine.service.vod.model.business.ChargeItem, com.volcengine.service.vod.model.business.ChargeItem.Builder, com.volcengine.service.vod.model.business.ChargeItemOrBuilder> chargeItemsBuilder_;

    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public java.util.List getChargeItemsList() {
      if (chargeItemsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(chargeItems_);
      } else {
        return chargeItemsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public int getChargeItemsCount() {
      if (chargeItemsBuilder_ == null) {
        return chargeItems_.size();
      } else {
        return chargeItemsBuilder_.getCount();
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public com.volcengine.service.vod.model.business.ChargeItem getChargeItems(int index) {
      if (chargeItemsBuilder_ == null) {
        return chargeItems_.get(index);
      } else {
        return chargeItemsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder setChargeItems(
        int index, com.volcengine.service.vod.model.business.ChargeItem value) {
      if (chargeItemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChargeItemsIsMutable();
        chargeItems_.set(index, value);
        onChanged();
      } else {
        chargeItemsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder setChargeItems(
        int index, com.volcengine.service.vod.model.business.ChargeItem.Builder builderForValue) {
      if (chargeItemsBuilder_ == null) {
        ensureChargeItemsIsMutable();
        chargeItems_.set(index, builderForValue.build());
        onChanged();
      } else {
        chargeItemsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder addChargeItems(com.volcengine.service.vod.model.business.ChargeItem value) {
      if (chargeItemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChargeItemsIsMutable();
        chargeItems_.add(value);
        onChanged();
      } else {
        chargeItemsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder addChargeItems(
        int index, com.volcengine.service.vod.model.business.ChargeItem value) {
      if (chargeItemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChargeItemsIsMutable();
        chargeItems_.add(index, value);
        onChanged();
      } else {
        chargeItemsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder addChargeItems(
        com.volcengine.service.vod.model.business.ChargeItem.Builder builderForValue) {
      if (chargeItemsBuilder_ == null) {
        ensureChargeItemsIsMutable();
        chargeItems_.add(builderForValue.build());
        onChanged();
      } else {
        chargeItemsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder addChargeItems(
        int index, com.volcengine.service.vod.model.business.ChargeItem.Builder builderForValue) {
      if (chargeItemsBuilder_ == null) {
        ensureChargeItemsIsMutable();
        chargeItems_.add(index, builderForValue.build());
        onChanged();
      } else {
        chargeItemsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder addAllChargeItems(
        java.lang.Iterable values) {
      if (chargeItemsBuilder_ == null) {
        ensureChargeItemsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, chargeItems_);
        onChanged();
      } else {
        chargeItemsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder clearChargeItems() {
      if (chargeItemsBuilder_ == null) {
        chargeItems_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        chargeItemsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public Builder removeChargeItems(int index) {
      if (chargeItemsBuilder_ == null) {
        ensureChargeItemsIsMutable();
        chargeItems_.remove(index);
        onChanged();
      } else {
        chargeItemsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public com.volcengine.service.vod.model.business.ChargeItem.Builder getChargeItemsBuilder(
        int index) {
      return getChargeItemsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public com.volcengine.service.vod.model.business.ChargeItemOrBuilder getChargeItemsOrBuilder(
        int index) {
      if (chargeItemsBuilder_ == null) {
        return chargeItems_.get(index);  } else {
        return chargeItemsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public java.util.List 
         getChargeItemsOrBuilderList() {
      if (chargeItemsBuilder_ != null) {
        return chargeItemsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(chargeItems_);
      }
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public com.volcengine.service.vod.model.business.ChargeItem.Builder addChargeItemsBuilder() {
      return getChargeItemsFieldBuilder().addBuilder(
          com.volcengine.service.vod.model.business.ChargeItem.getDefaultInstance());
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public com.volcengine.service.vod.model.business.ChargeItem.Builder addChargeItemsBuilder(
        int index) {
      return getChargeItemsFieldBuilder().addBuilder(
          index, com.volcengine.service.vod.model.business.ChargeItem.getDefaultInstance());
    }
    /**
     * repeated .Volcengine.Vod.Models.Business.ChargeItem ChargeItems = 6;
     */
    public java.util.List 
         getChargeItemsBuilderList() {
      return getChargeItemsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.volcengine.service.vod.model.business.ChargeItem, com.volcengine.service.vod.model.business.ChargeItem.Builder, com.volcengine.service.vod.model.business.ChargeItemOrBuilder> 
        getChargeItemsFieldBuilder() {
      if (chargeItemsBuilder_ == null) {
        chargeItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.volcengine.service.vod.model.business.ChargeItem, com.volcengine.service.vod.model.business.ChargeItem.Builder, com.volcengine.service.vod.model.business.ChargeItemOrBuilder>(
                chargeItems_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        chargeItems_ = null;
      }
      return chargeItemsBuilder_;
    }

    private java.lang.Object instanceID_ = "";
    /**
     * string InstanceID = 7;
     * @return The instanceID.
     */
    public java.lang.String getInstanceID() {
      java.lang.Object ref = instanceID_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        instanceID_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string InstanceID = 7;
     * @return The bytes for instanceID.
     */
    public com.google.protobuf.ByteString
        getInstanceIDBytes() {
      java.lang.Object ref = instanceID_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        instanceID_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string InstanceID = 7;
     * @param value The instanceID to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceID(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      instanceID_ = value;
      onChanged();
      return this;
    }
    /**
     * string InstanceID = 7;
     * @return This builder for chaining.
     */
    public Builder clearInstanceID() {
      
      instanceID_ = getDefaultInstance().getInstanceID();
      onChanged();
      return this;
    }
    /**
     * string InstanceID = 7;
     * @param value The bytes for instanceID to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceIDBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      instanceID_ = value;
      onChanged();
      return this;
    }

    private int instanceStatus_ ;
    /**
     * int32 InstanceStatus = 8;
     * @return The instanceStatus.
     */
    @java.lang.Override
    public int getInstanceStatus() {
      return instanceStatus_;
    }
    /**
     * int32 InstanceStatus = 8;
     * @param value The instanceStatus to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceStatus(int value) {
      
      instanceStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 InstanceStatus = 8;
     * @return This builder for chaining.
     */
    public Builder clearInstanceStatus() {
      
      instanceStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object instanceCreateTime_ = "";
    /**
     * string InstanceCreateTime = 9;
     * @return The instanceCreateTime.
     */
    public java.lang.String getInstanceCreateTime() {
      java.lang.Object ref = instanceCreateTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        instanceCreateTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string InstanceCreateTime = 9;
     * @return The bytes for instanceCreateTime.
     */
    public com.google.protobuf.ByteString
        getInstanceCreateTimeBytes() {
      java.lang.Object ref = instanceCreateTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        instanceCreateTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string InstanceCreateTime = 9;
     * @param value The instanceCreateTime to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceCreateTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      instanceCreateTime_ = value;
      onChanged();
      return this;
    }
    /**
     * string InstanceCreateTime = 9;
     * @return This builder for chaining.
     */
    public Builder clearInstanceCreateTime() {
      
      instanceCreateTime_ = getDefaultInstance().getInstanceCreateTime();
      onChanged();
      return this;
    }
    /**
     * string InstanceCreateTime = 9;
     * @param value The bytes for instanceCreateTime to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceCreateTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      instanceCreateTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object nextEventEffectiveTime_ = "";
    /**
     * string NextEventEffectiveTime = 10;
     * @return The nextEventEffectiveTime.
     */
    public java.lang.String getNextEventEffectiveTime() {
      java.lang.Object ref = nextEventEffectiveTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        nextEventEffectiveTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string NextEventEffectiveTime = 10;
     * @return The bytes for nextEventEffectiveTime.
     */
    public com.google.protobuf.ByteString
        getNextEventEffectiveTimeBytes() {
      java.lang.Object ref = nextEventEffectiveTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nextEventEffectiveTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string NextEventEffectiveTime = 10;
     * @param value The nextEventEffectiveTime to set.
     * @return This builder for chaining.
     */
    public Builder setNextEventEffectiveTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      nextEventEffectiveTime_ = value;
      onChanged();
      return this;
    }
    /**
     * string NextEventEffectiveTime = 10;
     * @return This builder for chaining.
     */
    public Builder clearNextEventEffectiveTime() {
      
      nextEventEffectiveTime_ = getDefaultInstance().getNextEventEffectiveTime();
      onChanged();
      return this;
    }
    /**
     * string NextEventEffectiveTime = 10;
     * @param value The bytes for nextEventEffectiveTime to set.
     * @return This builder for chaining.
     */
    public Builder setNextEventEffectiveTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      nextEventEffectiveTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object nextEventType_ = "";
    /**
     * string NextEventType = 11;
     * @return The nextEventType.
     */
    public java.lang.String getNextEventType() {
      java.lang.Object ref = nextEventType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        nextEventType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string NextEventType = 11;
     * @return The bytes for nextEventType.
     */
    public com.google.protobuf.ByteString
        getNextEventTypeBytes() {
      java.lang.Object ref = nextEventType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nextEventType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string NextEventType = 11;
     * @param value The nextEventType to set.
     * @return This builder for chaining.
     */
    public Builder setNextEventType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      nextEventType_ = value;
      onChanged();
      return this;
    }
    /**
     * string NextEventType = 11;
     * @return This builder for chaining.
     */
    public Builder clearNextEventType() {
      
      nextEventType_ = getDefaultInstance().getNextEventType();
      onChanged();
      return this;
    }
    /**
     * string NextEventType = 11;
     * @param value The bytes for nextEventType to set.
     * @return This builder for chaining.
     */
    public Builder setNextEventTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      nextEventType_ = 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.TradeProduct)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TradeProduct parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new TradeProduct(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.TradeProduct getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy