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

package com.ywt.gapi.third.sinopharm;

/**
 * <pre>
 * 发送发票请求
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.sinopharm.PushInvoiceRequest}
 */
public final class PushInvoiceRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.sinopharm.PushInvoiceRequest)
    PushInvoiceRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PushInvoiceRequest.newBuilder() to construct.
  private PushInvoiceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PushInvoiceRequest() {
    invoices_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PushInvoiceRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              invoices_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo>();
              mutable_bitField0_ |= 0x00000001;
            }
            invoices_.add(
                input.readMessage(com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.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)) {
        invoices_ = java.util.Collections.unmodifiableList(invoices_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.sinopharm.PushInvoiceRequest.class, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.Builder.class);
  }

  public interface InvoiceInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * 订单总金额
     * </pre>
     *
     * <code>double amount = 1;</code>
     * @return The amount.
     */
    double getAmount();

    /**
     * <pre>
     * 购方名称(发票抬头)
     * </pre>
     *
     * <code>string custName = 2;</code>
     * @return The custName.
     */
    java.lang.String getCustName();
    /**
     * <pre>
     * 购方名称(发票抬头)
     * </pre>
     *
     * <code>string custName = 2;</code>
     * @return The bytes for custName.
     */
    com.google.protobuf.ByteString
        getCustNameBytes();

    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    java.util.List<com.ywt.gapi.third.sinopharm.InvoiceDetail> 
        getInvoiceDetailsList();
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    com.ywt.gapi.third.sinopharm.InvoiceDetail getInvoiceDetails(int index);
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    int getInvoiceDetailsCount();
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    java.util.List<? extends com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder> 
        getInvoiceDetailsOrBuilderList();
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder getInvoiceDetailsOrBuilder(
        int index);
  }
  /**
   * <pre>
   * 发票信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo}
   */
  public static final class InvoiceInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo)
      InvoiceInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use InvoiceInfo.newBuilder() to construct.
    private InvoiceInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private InvoiceInfo() {
      custName_ = "";
      invoiceDetails_ = java.util.Collections.emptyList();
    }

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

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

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

              custName_ = s;
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                invoiceDetails_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.InvoiceDetail>();
                mutable_bitField0_ |= 0x00000001;
              }
              invoiceDetails_.add(
                  input.readMessage(com.ywt.gapi.third.sinopharm.InvoiceDetail.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)) {
          invoiceDetails_ = java.util.Collections.unmodifiableList(invoiceDetails_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_InvoiceInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_InvoiceInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.class, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder.class);
    }

    public static final int AMOUNT_FIELD_NUMBER = 1;
    private double amount_;
    /**
     * <pre>
     * 订单总金额
     * </pre>
     *
     * <code>double amount = 1;</code>
     * @return The amount.
     */
    @java.lang.Override
    public double getAmount() {
      return amount_;
    }

    public static final int CUSTNAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object custName_;
    /**
     * <pre>
     * 购方名称(发票抬头)
     * </pre>
     *
     * <code>string custName = 2;</code>
     * @return The custName.
     */
    @java.lang.Override
    public java.lang.String getCustName() {
      java.lang.Object ref = custName_;
      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();
        custName_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * 购方名称(发票抬头)
     * </pre>
     *
     * <code>string custName = 2;</code>
     * @return The bytes for custName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getCustNameBytes() {
      java.lang.Object ref = custName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        custName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int INVOICEDETAILS_FIELD_NUMBER = 3;
    private java.util.List<com.ywt.gapi.third.sinopharm.InvoiceDetail> invoiceDetails_;
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    @java.lang.Override
    public java.util.List<com.ywt.gapi.third.sinopharm.InvoiceDetail> getInvoiceDetailsList() {
      return invoiceDetails_;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder> 
        getInvoiceDetailsOrBuilderList() {
      return invoiceDetails_;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    @java.lang.Override
    public int getInvoiceDetailsCount() {
      return invoiceDetails_.size();
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.InvoiceDetail getInvoiceDetails(int index) {
      return invoiceDetails_.get(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
     */
    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder getInvoiceDetailsOrBuilder(
        int index) {
      return invoiceDetails_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (java.lang.Double.doubleToRawLongBits(amount_) != 0) {
        output.writeDouble(1, amount_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(custName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, custName_);
      }
      for (int i = 0; i < invoiceDetails_.size(); i++) {
        output.writeMessage(3, invoiceDetails_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (java.lang.Double.doubleToRawLongBits(amount_) != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, amount_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(custName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, custName_);
      }
      for (int i = 0; i < invoiceDetails_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, invoiceDetails_.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.third.sinopharm.PushInvoiceRequest.InvoiceInfo)) {
        return super.equals(obj);
      }
      com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo other = (com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo) obj;

      if (java.lang.Double.doubleToLongBits(getAmount())
          != java.lang.Double.doubleToLongBits(
              other.getAmount())) return false;
      if (!getCustName()
          .equals(other.getCustName())) return false;
      if (!getInvoiceDetailsList()
          .equals(other.getInvoiceDetailsList())) 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) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getAmount()));
      hash = (37 * hash) + CUSTNAME_FIELD_NUMBER;
      hash = (53 * hash) + getCustName().hashCode();
      if (getInvoiceDetailsCount() > 0) {
        hash = (37 * hash) + INVOICEDETAILS_FIELD_NUMBER;
        hash = (53 * hash) + getInvoiceDetailsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo 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.third.sinopharm.PushInvoiceRequest.InvoiceInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo 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.third.sinopharm.PushInvoiceRequest.InvoiceInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo 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.third.sinopharm.PushInvoiceRequest.InvoiceInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo 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.third.sinopharm.PushInvoiceRequest.InvoiceInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo 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.third.sinopharm.PushInvoiceRequest.InvoiceInfo 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.third.sinopharm.PushInvoiceRequest.InvoiceInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo)
        com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_InvoiceInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_InvoiceInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.class, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder.class);
      }

      // Construct using com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        custName_ = "";

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_InvoiceInfo_descriptor;
      }

      @java.lang.Override
      public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo getDefaultInstanceForType() {
        return com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.getDefaultInstance();
      }

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

      @java.lang.Override
      public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo buildPartial() {
        com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo result = new com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo(this);
        int from_bitField0_ = bitField0_;
        result.amount_ = amount_;
        result.custName_ = custName_;
        if (invoiceDetailsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            invoiceDetails_ = java.util.Collections.unmodifiableList(invoiceDetails_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.invoiceDetails_ = invoiceDetails_;
        } else {
          result.invoiceDetails_ = invoiceDetailsBuilder_.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.third.sinopharm.PushInvoiceRequest.InvoiceInfo) {
          return mergeFrom((com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo other) {
        if (other == com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.getDefaultInstance()) return this;
        if (other.getAmount() != 0D) {
          setAmount(other.getAmount());
        }
        if (!other.getCustName().isEmpty()) {
          custName_ = other.custName_;
          onChanged();
        }
        if (invoiceDetailsBuilder_ == null) {
          if (!other.invoiceDetails_.isEmpty()) {
            if (invoiceDetails_.isEmpty()) {
              invoiceDetails_ = other.invoiceDetails_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureInvoiceDetailsIsMutable();
              invoiceDetails_.addAll(other.invoiceDetails_);
            }
            onChanged();
          }
        } else {
          if (!other.invoiceDetails_.isEmpty()) {
            if (invoiceDetailsBuilder_.isEmpty()) {
              invoiceDetailsBuilder_.dispose();
              invoiceDetailsBuilder_ = null;
              invoiceDetails_ = other.invoiceDetails_;
              bitField0_ = (bitField0_ & ~0x00000001);
              invoiceDetailsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getInvoiceDetailsFieldBuilder() : null;
            } else {
              invoiceDetailsBuilder_.addAllMessages(other.invoiceDetails_);
            }
          }
        }
        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.third.sinopharm.PushInvoiceRequest.InvoiceInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private double amount_ ;
      /**
       * <pre>
       * 订单总金额
       * </pre>
       *
       * <code>double amount = 1;</code>
       * @return The amount.
       */
      @java.lang.Override
      public double getAmount() {
        return amount_;
      }
      /**
       * <pre>
       * 订单总金额
       * </pre>
       *
       * <code>double amount = 1;</code>
       * @param value The amount to set.
       * @return This builder for chaining.
       */
      public Builder setAmount(double value) {
        
        amount_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 订单总金额
       * </pre>
       *
       * <code>double amount = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAmount() {
        
        amount_ = 0D;
        onChanged();
        return this;
      }

      private java.lang.Object custName_ = "";
      /**
       * <pre>
       * 购方名称(发票抬头)
       * </pre>
       *
       * <code>string custName = 2;</code>
       * @return The custName.
       */
      public java.lang.String getCustName() {
        java.lang.Object ref = custName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          custName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * 购方名称(发票抬头)
       * </pre>
       *
       * <code>string custName = 2;</code>
       * @return The bytes for custName.
       */
      public com.google.protobuf.ByteString
          getCustNameBytes() {
        java.lang.Object ref = custName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          custName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * 购方名称(发票抬头)
       * </pre>
       *
       * <code>string custName = 2;</code>
       * @param value The custName to set.
       * @return This builder for chaining.
       */
      public Builder setCustName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        custName_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 购方名称(发票抬头)
       * </pre>
       *
       * <code>string custName = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearCustName() {
        
        custName_ = getDefaultInstance().getCustName();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 购方名称(发票抬头)
       * </pre>
       *
       * <code>string custName = 2;</code>
       * @param value The bytes for custName to set.
       * @return This builder for chaining.
       */
      public Builder setCustNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        custName_ = value;
        onChanged();
        return this;
      }

      private java.util.List<com.ywt.gapi.third.sinopharm.InvoiceDetail> invoiceDetails_ =
        java.util.Collections.emptyList();
      private void ensureInvoiceDetailsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          invoiceDetails_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.InvoiceDetail>(invoiceDetails_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.ywt.gapi.third.sinopharm.InvoiceDetail, com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder, com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder> invoiceDetailsBuilder_;

      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public java.util.List<com.ywt.gapi.third.sinopharm.InvoiceDetail> getInvoiceDetailsList() {
        if (invoiceDetailsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(invoiceDetails_);
        } else {
          return invoiceDetailsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public int getInvoiceDetailsCount() {
        if (invoiceDetailsBuilder_ == null) {
          return invoiceDetails_.size();
        } else {
          return invoiceDetailsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public com.ywt.gapi.third.sinopharm.InvoiceDetail getInvoiceDetails(int index) {
        if (invoiceDetailsBuilder_ == null) {
          return invoiceDetails_.get(index);
        } else {
          return invoiceDetailsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder setInvoiceDetails(
          int index, com.ywt.gapi.third.sinopharm.InvoiceDetail value) {
        if (invoiceDetailsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInvoiceDetailsIsMutable();
          invoiceDetails_.set(index, value);
          onChanged();
        } else {
          invoiceDetailsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder setInvoiceDetails(
          int index, com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder builderForValue) {
        if (invoiceDetailsBuilder_ == null) {
          ensureInvoiceDetailsIsMutable();
          invoiceDetails_.set(index, builderForValue.build());
          onChanged();
        } else {
          invoiceDetailsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder addInvoiceDetails(com.ywt.gapi.third.sinopharm.InvoiceDetail value) {
        if (invoiceDetailsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInvoiceDetailsIsMutable();
          invoiceDetails_.add(value);
          onChanged();
        } else {
          invoiceDetailsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder addInvoiceDetails(
          int index, com.ywt.gapi.third.sinopharm.InvoiceDetail value) {
        if (invoiceDetailsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInvoiceDetailsIsMutable();
          invoiceDetails_.add(index, value);
          onChanged();
        } else {
          invoiceDetailsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder addInvoiceDetails(
          com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder builderForValue) {
        if (invoiceDetailsBuilder_ == null) {
          ensureInvoiceDetailsIsMutable();
          invoiceDetails_.add(builderForValue.build());
          onChanged();
        } else {
          invoiceDetailsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder addInvoiceDetails(
          int index, com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder builderForValue) {
        if (invoiceDetailsBuilder_ == null) {
          ensureInvoiceDetailsIsMutable();
          invoiceDetails_.add(index, builderForValue.build());
          onChanged();
        } else {
          invoiceDetailsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder addAllInvoiceDetails(
          java.lang.Iterable<? extends com.ywt.gapi.third.sinopharm.InvoiceDetail> values) {
        if (invoiceDetailsBuilder_ == null) {
          ensureInvoiceDetailsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, invoiceDetails_);
          onChanged();
        } else {
          invoiceDetailsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder clearInvoiceDetails() {
        if (invoiceDetailsBuilder_ == null) {
          invoiceDetails_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          invoiceDetailsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public Builder removeInvoiceDetails(int index) {
        if (invoiceDetailsBuilder_ == null) {
          ensureInvoiceDetailsIsMutable();
          invoiceDetails_.remove(index);
          onChanged();
        } else {
          invoiceDetailsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder getInvoiceDetailsBuilder(
          int index) {
        return getInvoiceDetailsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder getInvoiceDetailsOrBuilder(
          int index) {
        if (invoiceDetailsBuilder_ == null) {
          return invoiceDetails_.get(index);  } else {
          return invoiceDetailsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public java.util.List<? extends com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder> 
           getInvoiceDetailsOrBuilderList() {
        if (invoiceDetailsBuilder_ != null) {
          return invoiceDetailsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(invoiceDetails_);
        }
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder addInvoiceDetailsBuilder() {
        return getInvoiceDetailsFieldBuilder().addBuilder(
            com.ywt.gapi.third.sinopharm.InvoiceDetail.getDefaultInstance());
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder addInvoiceDetailsBuilder(
          int index) {
        return getInvoiceDetailsFieldBuilder().addBuilder(
            index, com.ywt.gapi.third.sinopharm.InvoiceDetail.getDefaultInstance());
      }
      /**
       * <code>repeated .com.ywt.gapi.third.sinopharm.InvoiceDetail invoiceDetails = 3;</code>
       */
      public java.util.List<com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder> 
           getInvoiceDetailsBuilderList() {
        return getInvoiceDetailsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.ywt.gapi.third.sinopharm.InvoiceDetail, com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder, com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder> 
          getInvoiceDetailsFieldBuilder() {
        if (invoiceDetailsBuilder_ == null) {
          invoiceDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.ywt.gapi.third.sinopharm.InvoiceDetail, com.ywt.gapi.third.sinopharm.InvoiceDetail.Builder, com.ywt.gapi.third.sinopharm.InvoiceDetailOrBuilder>(
                  invoiceDetails_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          invoiceDetails_ = null;
        }
        return invoiceDetailsBuilder_;
      }
      @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.third.sinopharm.PushInvoiceRequest.InvoiceInfo)
    }

    // @@protoc_insertion_point(class_scope:com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo)
    private static final com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo();
    }

    public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public static final int INVOICES_FIELD_NUMBER = 1;
  private java.util.List<com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo> invoices_;
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo> getInvoicesList() {
    return invoices_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder> 
      getInvoicesOrBuilderList() {
    return invoices_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
   */
  @java.lang.Override
  public int getInvoicesCount() {
    return invoices_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo getInvoices(int index) {
    return invoices_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder getInvoicesOrBuilder(
      int index) {
    return invoices_.get(index);
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < invoices_.size(); i++) {
      output.writeMessage(1, invoices_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < invoices_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, invoices_.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.third.sinopharm.PushInvoiceRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.sinopharm.PushInvoiceRequest other = (com.ywt.gapi.third.sinopharm.PushInvoiceRequest) obj;

    if (!getInvoicesList()
        .equals(other.getInvoicesList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getInvoicesCount() > 0) {
      hash = (37 * hash) + INVOICES_FIELD_NUMBER;
      hash = (53 * hash) + getInvoicesList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest 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.third.sinopharm.PushInvoiceRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest 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.third.sinopharm.PushInvoiceRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest 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.third.sinopharm.PushInvoiceRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest 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.third.sinopharm.PushInvoiceRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest 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.third.sinopharm.PushInvoiceRequest 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.third.sinopharm.PushInvoiceRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.sinopharm.PushInvoiceRequest)
      com.ywt.gapi.third.sinopharm.PushInvoiceRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.sinopharm.PushInvoiceRequest.class, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.third.sinopharm.PushInvoiceRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getInvoicesFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (invoicesBuilder_ == null) {
        invoices_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        invoicesBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PushInvoiceRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest getDefaultInstanceForType() {
      return com.ywt.gapi.third.sinopharm.PushInvoiceRequest.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest buildPartial() {
      com.ywt.gapi.third.sinopharm.PushInvoiceRequest result = new com.ywt.gapi.third.sinopharm.PushInvoiceRequest(this);
      int from_bitField0_ = bitField0_;
      if (invoicesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          invoices_ = java.util.Collections.unmodifiableList(invoices_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.invoices_ = invoices_;
      } else {
        result.invoices_ = invoicesBuilder_.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.third.sinopharm.PushInvoiceRequest) {
        return mergeFrom((com.ywt.gapi.third.sinopharm.PushInvoiceRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.sinopharm.PushInvoiceRequest other) {
      if (other == com.ywt.gapi.third.sinopharm.PushInvoiceRequest.getDefaultInstance()) return this;
      if (invoicesBuilder_ == null) {
        if (!other.invoices_.isEmpty()) {
          if (invoices_.isEmpty()) {
            invoices_ = other.invoices_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureInvoicesIsMutable();
            invoices_.addAll(other.invoices_);
          }
          onChanged();
        }
      } else {
        if (!other.invoices_.isEmpty()) {
          if (invoicesBuilder_.isEmpty()) {
            invoicesBuilder_.dispose();
            invoicesBuilder_ = null;
            invoices_ = other.invoices_;
            bitField0_ = (bitField0_ & ~0x00000001);
            invoicesBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getInvoicesFieldBuilder() : null;
          } else {
            invoicesBuilder_.addAllMessages(other.invoices_);
          }
        }
      }
      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.third.sinopharm.PushInvoiceRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.sinopharm.PushInvoiceRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo> invoices_ =
      java.util.Collections.emptyList();
    private void ensureInvoicesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        invoices_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo>(invoices_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder> invoicesBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public java.util.List<com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo> getInvoicesList() {
      if (invoicesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(invoices_);
      } else {
        return invoicesBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public int getInvoicesCount() {
      if (invoicesBuilder_ == null) {
        return invoices_.size();
      } else {
        return invoicesBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo getInvoices(int index) {
      if (invoicesBuilder_ == null) {
        return invoices_.get(index);
      } else {
        return invoicesBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder setInvoices(
        int index, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo value) {
      if (invoicesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInvoicesIsMutable();
        invoices_.set(index, value);
        onChanged();
      } else {
        invoicesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder setInvoices(
        int index, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder builderForValue) {
      if (invoicesBuilder_ == null) {
        ensureInvoicesIsMutable();
        invoices_.set(index, builderForValue.build());
        onChanged();
      } else {
        invoicesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder addInvoices(com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo value) {
      if (invoicesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInvoicesIsMutable();
        invoices_.add(value);
        onChanged();
      } else {
        invoicesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder addInvoices(
        int index, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo value) {
      if (invoicesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInvoicesIsMutable();
        invoices_.add(index, value);
        onChanged();
      } else {
        invoicesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder addInvoices(
        com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder builderForValue) {
      if (invoicesBuilder_ == null) {
        ensureInvoicesIsMutable();
        invoices_.add(builderForValue.build());
        onChanged();
      } else {
        invoicesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder addInvoices(
        int index, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder builderForValue) {
      if (invoicesBuilder_ == null) {
        ensureInvoicesIsMutable();
        invoices_.add(index, builderForValue.build());
        onChanged();
      } else {
        invoicesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder addAllInvoices(
        java.lang.Iterable<? extends com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo> values) {
      if (invoicesBuilder_ == null) {
        ensureInvoicesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, invoices_);
        onChanged();
      } else {
        invoicesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder clearInvoices() {
      if (invoicesBuilder_ == null) {
        invoices_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        invoicesBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public Builder removeInvoices(int index) {
      if (invoicesBuilder_ == null) {
        ensureInvoicesIsMutable();
        invoices_.remove(index);
        onChanged();
      } else {
        invoicesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder getInvoicesBuilder(
        int index) {
      return getInvoicesFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder getInvoicesOrBuilder(
        int index) {
      if (invoicesBuilder_ == null) {
        return invoices_.get(index);  } else {
        return invoicesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder> 
         getInvoicesOrBuilderList() {
      if (invoicesBuilder_ != null) {
        return invoicesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(invoices_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder addInvoicesBuilder() {
      return getInvoicesFieldBuilder().addBuilder(
          com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder addInvoicesBuilder(
        int index) {
      return getInvoicesFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo invoices = 1;</code>
     */
    public java.util.List<com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder> 
         getInvoicesBuilderList() {
      return getInvoicesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder> 
        getInvoicesFieldBuilder() {
      if (invoicesBuilder_ == null) {
        invoicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfo.Builder, com.ywt.gapi.third.sinopharm.PushInvoiceRequest.InvoiceInfoOrBuilder>(
                invoices_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        invoices_ = null;
      }
      return invoicesBuilder_;
    }
    @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.third.sinopharm.PushInvoiceRequest)
  }

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

  public static com.ywt.gapi.third.sinopharm.PushInvoiceRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.PushInvoiceRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

