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

package com.ywt.gapi.third.taihe;

/**
 * Protobuf type {@code com.ywt.gapi.third.taihe.InPayInfo}
 */
public final class InPayInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.InPayInfo)
    InPayInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use InPayInfo.newBuilder() to construct.
  private InPayInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private InPayInfo() {
    startDate_ = "";
    endDate_ = "";
    deptName_ = "";
    chargeFlag_ = "";
    invoiceNo_ = "";
    invoiceType_ = "";
    invoiceTypeName_ = "";
  }

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

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

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

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

            deptName_ = s;
            break;
          }
          case 32: {

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

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

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

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

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

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_InPayInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.InPayInfo.class, com.ywt.gapi.third.taihe.InPayInfo.Builder.class);
  }

  public static final int STARTDATE_FIELD_NUMBER = 1;
  private volatile java.lang.Object startDate_;
  /**
   * <code>string startDate = 1;</code>
   * @return The startDate.
   */
  @java.lang.Override
  public java.lang.String getStartDate() {
    java.lang.Object ref = startDate_;
    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();
      startDate_ = s;
      return s;
    }
  }
  /**
   * <code>string startDate = 1;</code>
   * @return The bytes for startDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStartDateBytes() {
    java.lang.Object ref = startDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      startDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENDDATE_FIELD_NUMBER = 2;
  private volatile java.lang.Object endDate_;
  /**
   * <code>string endDate = 2;</code>
   * @return The endDate.
   */
  @java.lang.Override
  public java.lang.String getEndDate() {
    java.lang.Object ref = endDate_;
    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();
      endDate_ = s;
      return s;
    }
  }
  /**
   * <code>string endDate = 2;</code>
   * @return The bytes for endDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEndDateBytes() {
    java.lang.Object ref = endDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      endDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object deptName_;
  /**
   * <code>string deptName = 3;</code>
   * @return The deptName.
   */
  @java.lang.Override
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    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();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <code>string deptName = 3;</code>
   * @return The bytes for deptName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTALFEE_FIELD_NUMBER = 4;
  private int totalFee_;
  /**
   * <pre>
   * 金额，单位：分
   * </pre>
   *
   * <code>int32 totalFee = 4;</code>
   * @return The totalFee.
   */
  @java.lang.Override
  public int getTotalFee() {
    return totalFee_;
  }

  public static final int CHARGEFLAG_FIELD_NUMBER = 5;
  private volatile java.lang.Object chargeFlag_;
  /**
   * <code>string chargeFlag = 5;</code>
   * @return The chargeFlag.
   */
  @java.lang.Override
  public java.lang.String getChargeFlag() {
    java.lang.Object ref = chargeFlag_;
    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();
      chargeFlag_ = s;
      return s;
    }
  }
  /**
   * <code>string chargeFlag = 5;</code>
   * @return The bytes for chargeFlag.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getChargeFlagBytes() {
    java.lang.Object ref = chargeFlag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      chargeFlag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICENO_FIELD_NUMBER = 6;
  private volatile java.lang.Object invoiceNo_;
  /**
   * <pre>
   * 发票号
   * </pre>
   *
   * <code>string invoiceNo = 6;</code>
   * @return The invoiceNo.
   */
  @java.lang.Override
  public java.lang.String getInvoiceNo() {
    java.lang.Object ref = invoiceNo_;
    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();
      invoiceNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 发票号
   * </pre>
   *
   * <code>string invoiceNo = 6;</code>
   * @return The bytes for invoiceNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInvoiceNoBytes() {
    java.lang.Object ref = invoiceNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICETYPE_FIELD_NUMBER = 7;
  private volatile java.lang.Object invoiceType_;
  /**
   * <pre>
   * 发票类型代号
   * </pre>
   *
   * <code>string invoiceType = 7;</code>
   * @return The invoiceType.
   */
  @java.lang.Override
  public java.lang.String getInvoiceType() {
    java.lang.Object ref = invoiceType_;
    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();
      invoiceType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 发票类型代号
   * </pre>
   *
   * <code>string invoiceType = 7;</code>
   * @return The bytes for invoiceType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInvoiceTypeBytes() {
    java.lang.Object ref = invoiceType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICETYPENAME_FIELD_NUMBER = 8;
  private volatile java.lang.Object invoiceTypeName_;
  /**
   * <pre>
   * 发票类型名称
   * </pre>
   *
   * <code>string invoiceTypeName = 8;</code>
   * @return The invoiceTypeName.
   */
  @java.lang.Override
  public java.lang.String getInvoiceTypeName() {
    java.lang.Object ref = invoiceTypeName_;
    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();
      invoiceTypeName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 发票类型名称
   * </pre>
   *
   * <code>string invoiceTypeName = 8;</code>
   * @return The bytes for invoiceTypeName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInvoiceTypeNameBytes() {
    java.lang.Object ref = invoiceTypeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceTypeName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deptName_);
    }
    if (totalFee_ != 0) {
      output.writeInt32(4, totalFee_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chargeFlag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, chargeFlag_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, invoiceType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceTypeName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, invoiceTypeName_);
    }
    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(startDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deptName_);
    }
    if (totalFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, totalFee_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chargeFlag_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, chargeFlag_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, invoiceType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceTypeName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, invoiceTypeName_);
    }
    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.taihe.InPayInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.InPayInfo other = (com.ywt.gapi.third.taihe.InPayInfo) obj;

    if (!getStartDate()
        .equals(other.getStartDate())) return false;
    if (!getEndDate()
        .equals(other.getEndDate())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (getTotalFee()
        != other.getTotalFee()) return false;
    if (!getChargeFlag()
        .equals(other.getChargeFlag())) return false;
    if (!getInvoiceNo()
        .equals(other.getInvoiceNo())) return false;
    if (!getInvoiceType()
        .equals(other.getInvoiceType())) return false;
    if (!getInvoiceTypeName()
        .equals(other.getInvoiceTypeName())) 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) + STARTDATE_FIELD_NUMBER;
    hash = (53 * hash) + getStartDate().hashCode();
    hash = (37 * hash) + ENDDATE_FIELD_NUMBER;
    hash = (53 * hash) + getEndDate().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + TOTALFEE_FIELD_NUMBER;
    hash = (53 * hash) + getTotalFee();
    hash = (37 * hash) + CHARGEFLAG_FIELD_NUMBER;
    hash = (53 * hash) + getChargeFlag().hashCode();
    hash = (37 * hash) + INVOICENO_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceNo().hashCode();
    hash = (37 * hash) + INVOICETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceType().hashCode();
    hash = (37 * hash) + INVOICETYPENAME_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceTypeName().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.InPayInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.InPayInfo 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.taihe.InPayInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.InPayInfo 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.taihe.InPayInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.InPayInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.InPayInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.InPayInfo 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.taihe.InPayInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.InPayInfo 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.taihe.InPayInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.InPayInfo 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.taihe.InPayInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.third.taihe.InPayInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.InPayInfo)
      com.ywt.gapi.third.taihe.InPayInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_InPayInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_InPayInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.InPayInfo.class, com.ywt.gapi.third.taihe.InPayInfo.Builder.class);
    }

    // Construct using com.ywt.gapi.third.taihe.InPayInfo.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();
      startDate_ = "";

      endDate_ = "";

      deptName_ = "";

      totalFee_ = 0;

      chargeFlag_ = "";

      invoiceNo_ = "";

      invoiceType_ = "";

      invoiceTypeName_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_InPayInfo_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.InPayInfo buildPartial() {
      com.ywt.gapi.third.taihe.InPayInfo result = new com.ywt.gapi.third.taihe.InPayInfo(this);
      result.startDate_ = startDate_;
      result.endDate_ = endDate_;
      result.deptName_ = deptName_;
      result.totalFee_ = totalFee_;
      result.chargeFlag_ = chargeFlag_;
      result.invoiceNo_ = invoiceNo_;
      result.invoiceType_ = invoiceType_;
      result.invoiceTypeName_ = invoiceTypeName_;
      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.taihe.InPayInfo) {
        return mergeFrom((com.ywt.gapi.third.taihe.InPayInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.InPayInfo other) {
      if (other == com.ywt.gapi.third.taihe.InPayInfo.getDefaultInstance()) return this;
      if (!other.getStartDate().isEmpty()) {
        startDate_ = other.startDate_;
        onChanged();
      }
      if (!other.getEndDate().isEmpty()) {
        endDate_ = other.endDate_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (other.getTotalFee() != 0) {
        setTotalFee(other.getTotalFee());
      }
      if (!other.getChargeFlag().isEmpty()) {
        chargeFlag_ = other.chargeFlag_;
        onChanged();
      }
      if (!other.getInvoiceNo().isEmpty()) {
        invoiceNo_ = other.invoiceNo_;
        onChanged();
      }
      if (!other.getInvoiceType().isEmpty()) {
        invoiceType_ = other.invoiceType_;
        onChanged();
      }
      if (!other.getInvoiceTypeName().isEmpty()) {
        invoiceTypeName_ = other.invoiceTypeName_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.third.taihe.InPayInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.InPayInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object startDate_ = "";
    /**
     * <code>string startDate = 1;</code>
     * @return The startDate.
     */
    public java.lang.String getStartDate() {
      java.lang.Object ref = startDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        startDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string startDate = 1;</code>
     * @return The bytes for startDate.
     */
    public com.google.protobuf.ByteString
        getStartDateBytes() {
      java.lang.Object ref = startDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        startDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string startDate = 1;</code>
     * @param value The startDate to set.
     * @return This builder for chaining.
     */
    public Builder setStartDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      startDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string startDate = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartDate() {
      
      startDate_ = getDefaultInstance().getStartDate();
      onChanged();
      return this;
    }
    /**
     * <code>string startDate = 1;</code>
     * @param value The bytes for startDate to set.
     * @return This builder for chaining.
     */
    public Builder setStartDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      startDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object endDate_ = "";
    /**
     * <code>string endDate = 2;</code>
     * @return The endDate.
     */
    public java.lang.String getEndDate() {
      java.lang.Object ref = endDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        endDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string endDate = 2;</code>
     * @return The bytes for endDate.
     */
    public com.google.protobuf.ByteString
        getEndDateBytes() {
      java.lang.Object ref = endDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        endDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string endDate = 2;</code>
     * @param value The endDate to set.
     * @return This builder for chaining.
     */
    public Builder setEndDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      endDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string endDate = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearEndDate() {
      
      endDate_ = getDefaultInstance().getEndDate();
      onChanged();
      return this;
    }
    /**
     * <code>string endDate = 2;</code>
     * @param value The bytes for endDate to set.
     * @return This builder for chaining.
     */
    public Builder setEndDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      endDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 3;</code>
     * @return The deptName.
     */
    public java.lang.String getDeptName() {
      java.lang.Object ref = deptName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptName = 3;</code>
     * @return The bytes for deptName.
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      java.lang.Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptName = 3;</code>
     * @param value The deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 3;</code>
     * @param value The bytes for deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private int totalFee_ ;
    /**
     * <pre>
     * 金额，单位：分
     * </pre>
     *
     * <code>int32 totalFee = 4;</code>
     * @return The totalFee.
     */
    @java.lang.Override
    public int getTotalFee() {
      return totalFee_;
    }
    /**
     * <pre>
     * 金额，单位：分
     * </pre>
     *
     * <code>int32 totalFee = 4;</code>
     * @param value The totalFee to set.
     * @return This builder for chaining.
     */
    public Builder setTotalFee(int value) {
      
      totalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 金额，单位：分
     * </pre>
     *
     * <code>int32 totalFee = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotalFee() {
      
      totalFee_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object chargeFlag_ = "";
    /**
     * <code>string chargeFlag = 5;</code>
     * @return The chargeFlag.
     */
    public java.lang.String getChargeFlag() {
      java.lang.Object ref = chargeFlag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        chargeFlag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string chargeFlag = 5;</code>
     * @return The bytes for chargeFlag.
     */
    public com.google.protobuf.ByteString
        getChargeFlagBytes() {
      java.lang.Object ref = chargeFlag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        chargeFlag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string chargeFlag = 5;</code>
     * @param value The chargeFlag to set.
     * @return This builder for chaining.
     */
    public Builder setChargeFlag(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      chargeFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string chargeFlag = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearChargeFlag() {
      
      chargeFlag_ = getDefaultInstance().getChargeFlag();
      onChanged();
      return this;
    }
    /**
     * <code>string chargeFlag = 5;</code>
     * @param value The bytes for chargeFlag to set.
     * @return This builder for chaining.
     */
    public Builder setChargeFlagBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      chargeFlag_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceNo_ = "";
    /**
     * <pre>
     * 发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @return The invoiceNo.
     */
    public java.lang.String getInvoiceNo() {
      java.lang.Object ref = invoiceNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @return The bytes for invoiceNo.
     */
    public com.google.protobuf.ByteString
        getInvoiceNoBytes() {
      java.lang.Object ref = invoiceNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @param value The invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @param value The bytes for invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceType_ = "";
    /**
     * <pre>
     * 发票类型代号
     * </pre>
     *
     * <code>string invoiceType = 7;</code>
     * @return The invoiceType.
     */
    public java.lang.String getInvoiceType() {
      java.lang.Object ref = invoiceType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 发票类型代号
     * </pre>
     *
     * <code>string invoiceType = 7;</code>
     * @return The bytes for invoiceType.
     */
    public com.google.protobuf.ByteString
        getInvoiceTypeBytes() {
      java.lang.Object ref = invoiceType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 发票类型代号
     * </pre>
     *
     * <code>string invoiceType = 7;</code>
     * @param value The invoiceType to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票类型代号
     * </pre>
     *
     * <code>string invoiceType = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceType() {
      
      invoiceType_ = getDefaultInstance().getInvoiceType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票类型代号
     * </pre>
     *
     * <code>string invoiceType = 7;</code>
     * @param value The bytes for invoiceType to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceTypeName_ = "";
    /**
     * <pre>
     * 发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 8;</code>
     * @return The invoiceTypeName.
     */
    public java.lang.String getInvoiceTypeName() {
      java.lang.Object ref = invoiceTypeName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceTypeName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 8;</code>
     * @return The bytes for invoiceTypeName.
     */
    public com.google.protobuf.ByteString
        getInvoiceTypeNameBytes() {
      java.lang.Object ref = invoiceTypeName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceTypeName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 8;</code>
     * @param value The invoiceTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceTypeName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceTypeName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceTypeName() {
      
      invoiceTypeName_ = getDefaultInstance().getInvoiceTypeName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 8;</code>
     * @param value The bytes for invoiceTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceTypeNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceTypeName_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.third.taihe.InPayInfo)
  }

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

  public static com.ywt.gapi.third.taihe.InPayInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

