// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ordercenter.proto

package com.ywt.gapi.ordercenter;

/**
 * <pre>
 *ICBC支付方式支付订单请求消息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCPaymentRequest}
 */
public final class ICBCPaymentRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.ICBCPaymentRequest)
    ICBCPaymentRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ICBCPaymentRequest.newBuilder() to construct.
  private ICBCPaymentRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ICBCPaymentRequest() {
    payCode_ = "";
    body_ = "";
    spbillCreateIp_ = "";
    openid_ = "";
    subOrder_ = java.util.Collections.emptyList();
  }

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

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

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

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

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

            openid_ = s;
            break;
          }
          case 40: {

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

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

            orderId_ = input.readInt32();
            break;
          }
          case 64: {

            userId_ = input.readInt32();
            break;
          }
          case 72: {

            payType_ = input.readInt32();
            break;
          }
          case 82: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              subOrder_ = new java.util.ArrayList<com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder>();
              mutable_bitField0_ |= 0x00000001;
            }
            subOrder_.add(
                input.readMessage(com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.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)) {
        subOrder_ = java.util.Collections.unmodifiableList(subOrder_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.ordercenter.ICBCPaymentRequest.class, com.ywt.gapi.ordercenter.ICBCPaymentRequest.Builder.class);
  }

  public interface SubOrderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 1;</code>
     * @return The amount.
     */
    int getAmount();

    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 2;</code>
     * @return The orderId.
     */
    int getOrderId();
  }
  /**
   * <pre>
   * 子订单
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder}
   */
  public static final class SubOrder extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder)
      SubOrderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SubOrder.newBuilder() to construct.
    private SubOrder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SubOrder() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SubOrder(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              amount_ = input.readInt32();
              break;
            }
            case 16: {

              orderId_ = input.readInt32();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_SubOrder_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_SubOrder_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.class, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder.class);
    }

    public static final int AMOUNT_FIELD_NUMBER = 1;
    private int amount_;
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 1;</code>
     * @return The amount.
     */
    @java.lang.Override
    public int getAmount() {
      return amount_;
    }

    public static final int ORDERID_FIELD_NUMBER = 2;
    private int orderId_;
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 2;</code>
     * @return The orderId.
     */
    @java.lang.Override
    public int getOrderId() {
      return orderId_;
    }

    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 (amount_ != 0) {
        output.writeInt32(1, amount_);
      }
      if (orderId_ != 0) {
        output.writeInt32(2, orderId_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (amount_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, amount_);
      }
      if (orderId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, orderId_);
      }
      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.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder)) {
        return super.equals(obj);
      }
      com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder other = (com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder) obj;

      if (getAmount()
          != other.getAmount()) return false;
      if (getOrderId()
          != other.getOrderId()) 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) + AMOUNT_FIELD_NUMBER;
      hash = (53 * hash) + getAmount();
      hash = (37 * hash) + ORDERID_FIELD_NUMBER;
      hash = (53 * hash) + getOrderId();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder 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.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder 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.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder 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.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder 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;
    }
    /**
     * <pre>
     * 子订单
     * </pre>
     *
     * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder)
        com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_SubOrder_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_SubOrder_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.class, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder.class);
      }

      // Construct using com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        orderId_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_SubOrder_descriptor;
      }

      @java.lang.Override
      public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder getDefaultInstanceForType() {
        return com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.getDefaultInstance();
      }

      @java.lang.Override
      public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder build() {
        com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder buildPartial() {
        com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder result = new com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder(this);
        result.amount_ = amount_;
        result.orderId_ = orderId_;
        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.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder) {
          return mergeFrom((com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder other) {
        if (other == com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.getDefaultInstance()) return this;
        if (other.getAmount() != 0) {
          setAmount(other.getAmount());
        }
        if (other.getOrderId() != 0) {
          setOrderId(other.getOrderId());
        }
        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.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int amount_ ;
      /**
       * <pre>
       *单位：分
       * </pre>
       *
       * <code>int32 amount = 1;</code>
       * @return The amount.
       */
      @java.lang.Override
      public int getAmount() {
        return amount_;
      }
      /**
       * <pre>
       *单位：分
       * </pre>
       *
       * <code>int32 amount = 1;</code>
       * @param value The amount to set.
       * @return This builder for chaining.
       */
      public Builder setAmount(int value) {
        
        amount_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *单位：分
       * </pre>
       *
       * <code>int32 amount = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAmount() {
        
        amount_ = 0;
        onChanged();
        return this;
      }

      private int orderId_ ;
      /**
       * <pre>
       *订单ID
       * </pre>
       *
       * <code>int32 orderId = 2;</code>
       * @return The orderId.
       */
      @java.lang.Override
      public int getOrderId() {
        return orderId_;
      }
      /**
       * <pre>
       *订单ID
       * </pre>
       *
       * <code>int32 orderId = 2;</code>
       * @param value The orderId to set.
       * @return This builder for chaining.
       */
      public Builder setOrderId(int value) {
        
        orderId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *订单ID
       * </pre>
       *
       * <code>int32 orderId = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearOrderId() {
        
        orderId_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder)
    }

    // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder)
    private static final com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder();
    }

    public static com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public static final int PAYCODE_FIELD_NUMBER = 1;
  private volatile java.lang.Object payCode_;
  /**
   * <pre>
   *支付代码--支付中心统一编码
   * </pre>
   *
   * <code>string payCode = 1;</code>
   * @return The payCode.
   */
  @java.lang.Override
  public java.lang.String getPayCode() {
    java.lang.Object ref = payCode_;
    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();
      payCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *支付代码--支付中心统一编码
   * </pre>
   *
   * <code>string payCode = 1;</code>
   * @return The bytes for payCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPayCodeBytes() {
    java.lang.Object ref = payCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BODY_FIELD_NUMBER = 2;
  private volatile java.lang.Object body_;
  /**
   * <pre>
   *商品描述
   * </pre>
   *
   * <code>string body = 2;</code>
   * @return The body.
   */
  @java.lang.Override
  public java.lang.String getBody() {
    java.lang.Object ref = body_;
    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();
      body_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *商品描述
   * </pre>
   *
   * <code>string body = 2;</code>
   * @return The bytes for body.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getBodyBytes() {
    java.lang.Object ref = body_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      body_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SPBILLCREATEIP_FIELD_NUMBER = 3;
  private volatile java.lang.Object spbillCreateIp_;
  /**
   * <pre>
   *发起支付IP
   * </pre>
   *
   * <code>string spbillCreateIp = 3;</code>
   * @return The spbillCreateIp.
   */
  @java.lang.Override
  public java.lang.String getSpbillCreateIp() {
    java.lang.Object ref = spbillCreateIp_;
    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();
      spbillCreateIp_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *发起支付IP
   * </pre>
   *
   * <code>string spbillCreateIp = 3;</code>
   * @return The bytes for spbillCreateIp.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSpbillCreateIpBytes() {
    java.lang.Object ref = spbillCreateIp_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      spbillCreateIp_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OPENID_FIELD_NUMBER = 4;
  private volatile java.lang.Object openid_;
  /**
   * <pre>
   *用户openid
   * </pre>
   *
   * <code>string openid = 4;</code>
   * @return The openid.
   */
  @java.lang.Override
  public java.lang.String getOpenid() {
    java.lang.Object ref = openid_;
    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();
      openid_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *用户openid
   * </pre>
   *
   * <code>string openid = 4;</code>
   * @return The bytes for openid.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOpenidBytes() {
    java.lang.Object ref = openid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      openid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AMOUNT_FIELD_NUMBER = 5;
  private int amount_;
  /**
   * <pre>
   *单位：分
   * </pre>
   *
   * <code>int32 amount = 5;</code>
   * @return The amount.
   */
  @java.lang.Override
  public int getAmount() {
    return amount_;
  }

  public static final int TERMINAL_FIELD_NUMBER = 6;
  private int terminal_;
  /**
   * <pre>
   *发起支付终端
   * </pre>
   *
   * <code>int32 terminal = 6;</code>
   * @return The terminal.
   */
  @java.lang.Override
  public int getTerminal() {
    return terminal_;
  }

  public static final int ORDERID_FIELD_NUMBER = 7;
  private int orderId_;
  /**
   * <pre>
   *订单ID
   * </pre>
   *
   * <code>int32 orderId = 7;</code>
   * @return The orderId.
   */
  @java.lang.Override
  public int getOrderId() {
    return orderId_;
  }

  public static final int USERID_FIELD_NUMBER = 8;
  private int userId_;
  /**
   * <pre>
   *发起支付用户ID
   * </pre>
   *
   * <code>int32 userId = 8;</code>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int PAYTYPE_FIELD_NUMBER = 9;
  private int payType_;
  /**
   * <pre>
   *合并支付标识：1-单订单, 2-多订单合并支付
   * </pre>
   *
   * <code>int32 payType = 9;</code>
   * @return The payType.
   */
  @java.lang.Override
  public int getPayType() {
    return payType_;
  }

  public static final int SUBORDER_FIELD_NUMBER = 10;
  private java.util.List<com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder> subOrder_;
  /**
   * <pre>
   * 子订单(用于多订单合并支付)
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder> getSubOrderList() {
    return subOrder_;
  }
  /**
   * <pre>
   * 子订单(用于多订单合并支付)
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder> 
      getSubOrderOrBuilderList() {
    return subOrder_;
  }
  /**
   * <pre>
   * 子订单(用于多订单合并支付)
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
   */
  @java.lang.Override
  public int getSubOrderCount() {
    return subOrder_.size();
  }
  /**
   * <pre>
   * 子订单(用于多订单合并支付)
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder getSubOrder(int index) {
    return subOrder_.get(index);
  }
  /**
   * <pre>
   * 子订单(用于多订单合并支付)
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder getSubOrderOrBuilder(
      int index) {
    return subOrder_.get(index);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, body_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spbillCreateIp_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, spbillCreateIp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, openid_);
    }
    if (amount_ != 0) {
      output.writeInt32(5, amount_);
    }
    if (terminal_ != 0) {
      output.writeInt32(6, terminal_);
    }
    if (orderId_ != 0) {
      output.writeInt32(7, orderId_);
    }
    if (userId_ != 0) {
      output.writeInt32(8, userId_);
    }
    if (payType_ != 0) {
      output.writeInt32(9, payType_);
    }
    for (int i = 0; i < subOrder_.size(); i++) {
      output.writeMessage(10, subOrder_.get(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, payCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, body_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spbillCreateIp_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, spbillCreateIp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, openid_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, amount_);
    }
    if (terminal_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, terminal_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, orderId_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, userId_);
    }
    if (payType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, payType_);
    }
    for (int i = 0; i < subOrder_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(10, subOrder_.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.ywt.gapi.ordercenter.ICBCPaymentRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.ordercenter.ICBCPaymentRequest other = (com.ywt.gapi.ordercenter.ICBCPaymentRequest) obj;

    if (!getPayCode()
        .equals(other.getPayCode())) return false;
    if (!getBody()
        .equals(other.getBody())) return false;
    if (!getSpbillCreateIp()
        .equals(other.getSpbillCreateIp())) return false;
    if (!getOpenid()
        .equals(other.getOpenid())) return false;
    if (getAmount()
        != other.getAmount()) return false;
    if (getTerminal()
        != other.getTerminal()) return false;
    if (getOrderId()
        != other.getOrderId()) return false;
    if (getUserId()
        != other.getUserId()) return false;
    if (getPayType()
        != other.getPayType()) return false;
    if (!getSubOrderList()
        .equals(other.getSubOrderList())) 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) + PAYCODE_FIELD_NUMBER;
    hash = (53 * hash) + getPayCode().hashCode();
    hash = (37 * hash) + BODY_FIELD_NUMBER;
    hash = (53 * hash) + getBody().hashCode();
    hash = (37 * hash) + SPBILLCREATEIP_FIELD_NUMBER;
    hash = (53 * hash) + getSpbillCreateIp().hashCode();
    hash = (37 * hash) + OPENID_FIELD_NUMBER;
    hash = (53 * hash) + getOpenid().hashCode();
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + TERMINAL_FIELD_NUMBER;
    hash = (53 * hash) + getTerminal();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + PAYTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPayType();
    if (getSubOrderCount() > 0) {
      hash = (37 * hash) + SUBORDER_FIELD_NUMBER;
      hash = (53 * hash) + getSubOrderList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest 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.ywt.gapi.ordercenter.ICBCPaymentRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest 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.ywt.gapi.ordercenter.ICBCPaymentRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest 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.ywt.gapi.ordercenter.ICBCPaymentRequest 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;
  }
  /**
   * <pre>
   *ICBC支付方式支付订单请求消息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCPaymentRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.ICBCPaymentRequest)
      com.ywt.gapi.ordercenter.ICBCPaymentRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.ordercenter.ICBCPaymentRequest.class, com.ywt.gapi.ordercenter.ICBCPaymentRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.ordercenter.ICBCPaymentRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

      body_ = "";

      spbillCreateIp_ = "";

      openid_ = "";

      amount_ = 0;

      terminal_ = 0;

      orderId_ = 0;

      userId_ = 0;

      payType_ = 0;

      if (subOrderBuilder_ == null) {
        subOrder_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        subOrderBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_ICBCPaymentRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest getDefaultInstanceForType() {
      return com.ywt.gapi.ordercenter.ICBCPaymentRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest build() {
      com.ywt.gapi.ordercenter.ICBCPaymentRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest buildPartial() {
      com.ywt.gapi.ordercenter.ICBCPaymentRequest result = new com.ywt.gapi.ordercenter.ICBCPaymentRequest(this);
      int from_bitField0_ = bitField0_;
      result.payCode_ = payCode_;
      result.body_ = body_;
      result.spbillCreateIp_ = spbillCreateIp_;
      result.openid_ = openid_;
      result.amount_ = amount_;
      result.terminal_ = terminal_;
      result.orderId_ = orderId_;
      result.userId_ = userId_;
      result.payType_ = payType_;
      if (subOrderBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          subOrder_ = java.util.Collections.unmodifiableList(subOrder_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.subOrder_ = subOrder_;
      } else {
        result.subOrder_ = subOrderBuilder_.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.ywt.gapi.ordercenter.ICBCPaymentRequest) {
        return mergeFrom((com.ywt.gapi.ordercenter.ICBCPaymentRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.ordercenter.ICBCPaymentRequest other) {
      if (other == com.ywt.gapi.ordercenter.ICBCPaymentRequest.getDefaultInstance()) return this;
      if (!other.getPayCode().isEmpty()) {
        payCode_ = other.payCode_;
        onChanged();
      }
      if (!other.getBody().isEmpty()) {
        body_ = other.body_;
        onChanged();
      }
      if (!other.getSpbillCreateIp().isEmpty()) {
        spbillCreateIp_ = other.spbillCreateIp_;
        onChanged();
      }
      if (!other.getOpenid().isEmpty()) {
        openid_ = other.openid_;
        onChanged();
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (other.getTerminal() != 0) {
        setTerminal(other.getTerminal());
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getPayType() != 0) {
        setPayType(other.getPayType());
      }
      if (subOrderBuilder_ == null) {
        if (!other.subOrder_.isEmpty()) {
          if (subOrder_.isEmpty()) {
            subOrder_ = other.subOrder_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureSubOrderIsMutable();
            subOrder_.addAll(other.subOrder_);
          }
          onChanged();
        }
      } else {
        if (!other.subOrder_.isEmpty()) {
          if (subOrderBuilder_.isEmpty()) {
            subOrderBuilder_.dispose();
            subOrderBuilder_ = null;
            subOrder_ = other.subOrder_;
            bitField0_ = (bitField0_ & ~0x00000001);
            subOrderBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getSubOrderFieldBuilder() : null;
          } else {
            subOrderBuilder_.addAllMessages(other.subOrder_);
          }
        }
      }
      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.ywt.gapi.ordercenter.ICBCPaymentRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.ordercenter.ICBCPaymentRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object payCode_ = "";
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 1;</code>
     * @return The payCode.
     */
    public java.lang.String getPayCode() {
      java.lang.Object ref = payCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 1;</code>
     * @return The bytes for payCode.
     */
    public com.google.protobuf.ByteString
        getPayCodeBytes() {
      java.lang.Object ref = payCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 1;</code>
     * @param value The payCode to set.
     * @return This builder for chaining.
     */
    public Builder setPayCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayCode() {
      
      payCode_ = getDefaultInstance().getPayCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 1;</code>
     * @param value The bytes for payCode to set.
     * @return This builder for chaining.
     */
    public Builder setPayCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object body_ = "";
    /**
     * <pre>
     *商品描述
     * </pre>
     *
     * <code>string body = 2;</code>
     * @return The body.
     */
    public java.lang.String getBody() {
      java.lang.Object ref = body_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        body_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *商品描述
     * </pre>
     *
     * <code>string body = 2;</code>
     * @return The bytes for body.
     */
    public com.google.protobuf.ByteString
        getBodyBytes() {
      java.lang.Object ref = body_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        body_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *商品描述
     * </pre>
     *
     * <code>string body = 2;</code>
     * @param value The body to set.
     * @return This builder for chaining.
     */
    public Builder setBody(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      body_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商品描述
     * </pre>
     *
     * <code>string body = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearBody() {
      
      body_ = getDefaultInstance().getBody();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商品描述
     * </pre>
     *
     * <code>string body = 2;</code>
     * @param value The bytes for body to set.
     * @return This builder for chaining.
     */
    public Builder setBodyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      body_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object spbillCreateIp_ = "";
    /**
     * <pre>
     *发起支付IP
     * </pre>
     *
     * <code>string spbillCreateIp = 3;</code>
     * @return The spbillCreateIp.
     */
    public java.lang.String getSpbillCreateIp() {
      java.lang.Object ref = spbillCreateIp_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        spbillCreateIp_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *发起支付IP
     * </pre>
     *
     * <code>string spbillCreateIp = 3;</code>
     * @return The bytes for spbillCreateIp.
     */
    public com.google.protobuf.ByteString
        getSpbillCreateIpBytes() {
      java.lang.Object ref = spbillCreateIp_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        spbillCreateIp_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *发起支付IP
     * </pre>
     *
     * <code>string spbillCreateIp = 3;</code>
     * @param value The spbillCreateIp to set.
     * @return This builder for chaining.
     */
    public Builder setSpbillCreateIp(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      spbillCreateIp_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发起支付IP
     * </pre>
     *
     * <code>string spbillCreateIp = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearSpbillCreateIp() {
      
      spbillCreateIp_ = getDefaultInstance().getSpbillCreateIp();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发起支付IP
     * </pre>
     *
     * <code>string spbillCreateIp = 3;</code>
     * @param value The bytes for spbillCreateIp to set.
     * @return This builder for chaining.
     */
    public Builder setSpbillCreateIpBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      spbillCreateIp_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object openid_ = "";
    /**
     * <pre>
     *用户openid
     * </pre>
     *
     * <code>string openid = 4;</code>
     * @return The openid.
     */
    public java.lang.String getOpenid() {
      java.lang.Object ref = openid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        openid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *用户openid
     * </pre>
     *
     * <code>string openid = 4;</code>
     * @return The bytes for openid.
     */
    public com.google.protobuf.ByteString
        getOpenidBytes() {
      java.lang.Object ref = openid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        openid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *用户openid
     * </pre>
     *
     * <code>string openid = 4;</code>
     * @param value The openid to set.
     * @return This builder for chaining.
     */
    public Builder setOpenid(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      openid_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用户openid
     * </pre>
     *
     * <code>string openid = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearOpenid() {
      
      openid_ = getDefaultInstance().getOpenid();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用户openid
     * </pre>
     *
     * <code>string openid = 4;</code>
     * @param value The bytes for openid to set.
     * @return This builder for chaining.
     */
    public Builder setOpenidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      openid_ = value;
      onChanged();
      return this;
    }

    private int amount_ ;
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 5;</code>
     * @return The amount.
     */
    @java.lang.Override
    public int getAmount() {
      return amount_;
    }
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 5;</code>
     * @param value The amount to set.
     * @return This builder for chaining.
     */
    public Builder setAmount(int value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearAmount() {
      
      amount_ = 0;
      onChanged();
      return this;
    }

    private int terminal_ ;
    /**
     * <pre>
     *发起支付终端
     * </pre>
     *
     * <code>int32 terminal = 6;</code>
     * @return The terminal.
     */
    @java.lang.Override
    public int getTerminal() {
      return terminal_;
    }
    /**
     * <pre>
     *发起支付终端
     * </pre>
     *
     * <code>int32 terminal = 6;</code>
     * @param value The terminal to set.
     * @return This builder for chaining.
     */
    public Builder setTerminal(int value) {
      
      terminal_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发起支付终端
     * </pre>
     *
     * <code>int32 terminal = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearTerminal() {
      
      terminal_ = 0;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 7;</code>
     * @return The orderId.
     */
    @java.lang.Override
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 7;</code>
     * @param value The orderId to set.
     * @return This builder for chaining.
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <pre>
     *发起支付用户ID
     * </pre>
     *
     * <code>int32 userId = 8;</code>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <pre>
     *发起支付用户ID
     * </pre>
     *
     * <code>int32 userId = 8;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发起支付用户ID
     * </pre>
     *
     * <code>int32 userId = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private int payType_ ;
    /**
     * <pre>
     *合并支付标识：1-单订单, 2-多订单合并支付
     * </pre>
     *
     * <code>int32 payType = 9;</code>
     * @return The payType.
     */
    @java.lang.Override
    public int getPayType() {
      return payType_;
    }
    /**
     * <pre>
     *合并支付标识：1-单订单, 2-多订单合并支付
     * </pre>
     *
     * <code>int32 payType = 9;</code>
     * @param value The payType to set.
     * @return This builder for chaining.
     */
    public Builder setPayType(int value) {
      
      payType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *合并支付标识：1-单订单, 2-多订单合并支付
     * </pre>
     *
     * <code>int32 payType = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayType() {
      
      payType_ = 0;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder> subOrder_ =
      java.util.Collections.emptyList();
    private void ensureSubOrderIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        subOrder_ = new java.util.ArrayList<com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder>(subOrder_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder> subOrderBuilder_;

    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public java.util.List<com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder> getSubOrderList() {
      if (subOrderBuilder_ == null) {
        return java.util.Collections.unmodifiableList(subOrder_);
      } else {
        return subOrderBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public int getSubOrderCount() {
      if (subOrderBuilder_ == null) {
        return subOrder_.size();
      } else {
        return subOrderBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder getSubOrder(int index) {
      if (subOrderBuilder_ == null) {
        return subOrder_.get(index);
      } else {
        return subOrderBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder setSubOrder(
        int index, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder value) {
      if (subOrderBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSubOrderIsMutable();
        subOrder_.set(index, value);
        onChanged();
      } else {
        subOrderBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder setSubOrder(
        int index, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder builderForValue) {
      if (subOrderBuilder_ == null) {
        ensureSubOrderIsMutable();
        subOrder_.set(index, builderForValue.build());
        onChanged();
      } else {
        subOrderBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder addSubOrder(com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder value) {
      if (subOrderBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSubOrderIsMutable();
        subOrder_.add(value);
        onChanged();
      } else {
        subOrderBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder addSubOrder(
        int index, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder value) {
      if (subOrderBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSubOrderIsMutable();
        subOrder_.add(index, value);
        onChanged();
      } else {
        subOrderBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder addSubOrder(
        com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder builderForValue) {
      if (subOrderBuilder_ == null) {
        ensureSubOrderIsMutable();
        subOrder_.add(builderForValue.build());
        onChanged();
      } else {
        subOrderBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder addSubOrder(
        int index, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder builderForValue) {
      if (subOrderBuilder_ == null) {
        ensureSubOrderIsMutable();
        subOrder_.add(index, builderForValue.build());
        onChanged();
      } else {
        subOrderBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder addAllSubOrder(
        java.lang.Iterable<? extends com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder> values) {
      if (subOrderBuilder_ == null) {
        ensureSubOrderIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, subOrder_);
        onChanged();
      } else {
        subOrderBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder clearSubOrder() {
      if (subOrderBuilder_ == null) {
        subOrder_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        subOrderBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public Builder removeSubOrder(int index) {
      if (subOrderBuilder_ == null) {
        ensureSubOrderIsMutable();
        subOrder_.remove(index);
        onChanged();
      } else {
        subOrderBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder getSubOrderBuilder(
        int index) {
      return getSubOrderFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder getSubOrderOrBuilder(
        int index) {
      if (subOrderBuilder_ == null) {
        return subOrder_.get(index);  } else {
        return subOrderBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public java.util.List<? extends com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder> 
         getSubOrderOrBuilderList() {
      if (subOrderBuilder_ != null) {
        return subOrderBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(subOrder_);
      }
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder addSubOrderBuilder() {
      return getSubOrderFieldBuilder().addBuilder(
          com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.getDefaultInstance());
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder addSubOrderBuilder(
        int index) {
      return getSubOrderFieldBuilder().addBuilder(
          index, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.getDefaultInstance());
    }
    /**
     * <pre>
     * 子订单(用于多订单合并支付)
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder subOrder = 10;</code>
     */
    public java.util.List<com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder> 
         getSubOrderBuilderList() {
      return getSubOrderFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder> 
        getSubOrderFieldBuilder() {
      if (subOrderBuilder_ == null) {
        subOrderBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrder.Builder, com.ywt.gapi.ordercenter.ICBCPaymentRequest.SubOrderOrBuilder>(
                subOrder_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        subOrder_ = null;
      }
      return subOrderBuilder_;
    }
    @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:com.ywt.gapi.ordercenter.ICBCPaymentRequest)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.ICBCPaymentRequest)
  private static final com.ywt.gapi.ordercenter.ICBCPaymentRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.ordercenter.ICBCPaymentRequest();
  }

  public static com.ywt.gapi.ordercenter.ICBCPaymentRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.ordercenter.ICBCPaymentRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

