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

package com.ywt.gapi.nat;

/**
 * Protobuf type {@code com.ywt.gapi.nat.OrderDetail}
 */
public final class OrderDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.nat.OrderDetail)
    OrderDetailOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OrderDetail.newBuilder() to construct.
  private OrderDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private OrderDetail() {
    orderNo_ = "";
    patientName_ = "";
    idCard_ = "";
    mobile_ = "";
    regDate_ = "";
    address_ = "";
    paymentCode_ = "";
    vaccineCode_ = "";
    remark_ = "";
  }

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

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

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

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

            orderNo_ = s;
            break;
          }
          case 32: {

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

            createTime_ = input.readInt64();
            break;
          }
          case 48: {

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

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

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

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

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

            regDate_ = s;
            break;
          }
          case 96: {

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

            address_ = s;
            break;
          }
          case 112: {

            status_ = input.readInt32();
            break;
          }
          case 120: {

            paymentStatus_ = input.readInt32();
            break;
          }
          case 128: {

            payTime_ = input.readInt64();
            break;
          }
          case 136: {

            refundTime_ = input.readInt64();
            break;
          }
          case 146: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

            remark_ = s;
            break;
          }
          case 168: {

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

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.nat.NatProto.internal_static_com_ywt_gapi_nat_OrderDetail_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.nat.OrderDetail.class, com.ywt.gapi.nat.OrderDetail.Builder.class);
  }

  public static final int ID_FIELD_NUMBER = 1;
  private int id_;
  /**
   * <code>int32 id = 1;</code>
   * @return The id.
   */
  @java.lang.Override
  public int getId() {
    return id_;
  }

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

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

  public static final int HOSPITALID_FIELD_NUMBER = 4;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 4;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int CREATETIME_FIELD_NUMBER = 5;
  private long createTime_;
  /**
   * <code>int64 createTime = 5;</code>
   * @return The createTime.
   */
  @java.lang.Override
  public long getCreateTime() {
    return createTime_;
  }

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

  public static final int USERID_FIELD_NUMBER = 7;
  private int userId_;
  /**
   * <code>int32 userId = 7;</code>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 8;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 8;</code>
   * @return The patientName.
   */
  @java.lang.Override
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    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();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <code>string patientName = 8;</code>
   * @return The bytes for patientName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IDCARD_FIELD_NUMBER = 9;
  private volatile java.lang.Object idCard_;
  /**
   * <code>string idCard = 9;</code>
   * @return The idCard.
   */
  @java.lang.Override
  public java.lang.String getIdCard() {
    java.lang.Object ref = idCard_;
    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();
      idCard_ = s;
      return s;
    }
  }
  /**
   * <code>string idCard = 9;</code>
   * @return The bytes for idCard.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIdCardBytes() {
    java.lang.Object ref = idCard_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      idCard_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MOBILE_FIELD_NUMBER = 10;
  private volatile java.lang.Object mobile_;
  /**
   * <code>string mobile = 10;</code>
   * @return The mobile.
   */
  @java.lang.Override
  public java.lang.String getMobile() {
    java.lang.Object ref = mobile_;
    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();
      mobile_ = s;
      return s;
    }
  }
  /**
   * <code>string mobile = 10;</code>
   * @return The bytes for mobile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMobileBytes() {
    java.lang.Object ref = mobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGDATE_FIELD_NUMBER = 11;
  private volatile java.lang.Object regDate_;
  /**
   * <code>string regDate = 11;</code>
   * @return The regDate.
   */
  @java.lang.Override
  public java.lang.String getRegDate() {
    java.lang.Object ref = regDate_;
    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();
      regDate_ = s;
      return s;
    }
  }
  /**
   * <code>string regDate = 11;</code>
   * @return The bytes for regDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRegDateBytes() {
    java.lang.Object ref = regDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      regDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGTIMEPERIOD_FIELD_NUMBER = 12;
  private int regTimePeriod_;
  /**
   * <code>int32 regTimePeriod = 12;</code>
   * @return The regTimePeriod.
   */
  @java.lang.Override
  public int getRegTimePeriod() {
    return regTimePeriod_;
  }

  public static final int ADDRESS_FIELD_NUMBER = 13;
  private volatile java.lang.Object address_;
  /**
   * <code>string address = 13;</code>
   * @return The address.
   */
  @java.lang.Override
  public java.lang.String getAddress() {
    java.lang.Object ref = address_;
    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();
      address_ = s;
      return s;
    }
  }
  /**
   * <code>string address = 13;</code>
   * @return The bytes for address.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAddressBytes() {
    java.lang.Object ref = address_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      address_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUS_FIELD_NUMBER = 14;
  private int status_;
  /**
   * <code>int32 status = 14;</code>
   * @return The status.
   */
  @java.lang.Override
  public int getStatus() {
    return status_;
  }

  public static final int PAYMENTSTATUS_FIELD_NUMBER = 15;
  private int paymentStatus_;
  /**
   * <code>int32 paymentStatus = 15;</code>
   * @return The paymentStatus.
   */
  @java.lang.Override
  public int getPaymentStatus() {
    return paymentStatus_;
  }

  public static final int PAYTIME_FIELD_NUMBER = 16;
  private long payTime_;
  /**
   * <code>int64 payTime = 16;</code>
   * @return The payTime.
   */
  @java.lang.Override
  public long getPayTime() {
    return payTime_;
  }

  public static final int REFUNDTIME_FIELD_NUMBER = 17;
  private long refundTime_;
  /**
   * <code>int64 refundTime = 17;</code>
   * @return The refundTime.
   */
  @java.lang.Override
  public long getRefundTime() {
    return refundTime_;
  }

  public static final int PAYMENTCODE_FIELD_NUMBER = 18;
  private volatile java.lang.Object paymentCode_;
  /**
   * <code>string paymentCode = 18;</code>
   * @return The paymentCode.
   */
  @java.lang.Override
  public java.lang.String getPaymentCode() {
    java.lang.Object ref = paymentCode_;
    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();
      paymentCode_ = s;
      return s;
    }
  }
  /**
   * <code>string paymentCode = 18;</code>
   * @return The bytes for paymentCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPaymentCodeBytes() {
    java.lang.Object ref = paymentCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      paymentCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VACCINECODE_FIELD_NUMBER = 19;
  private volatile java.lang.Object vaccineCode_;
  /**
   * <code>string vaccineCode = 19;</code>
   * @return The vaccineCode.
   */
  @java.lang.Override
  public java.lang.String getVaccineCode() {
    java.lang.Object ref = vaccineCode_;
    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();
      vaccineCode_ = s;
      return s;
    }
  }
  /**
   * <code>string vaccineCode = 19;</code>
   * @return The bytes for vaccineCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getVaccineCodeBytes() {
    java.lang.Object ref = vaccineCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      vaccineCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REMARK_FIELD_NUMBER = 20;
  private volatile java.lang.Object remark_;
  /**
   * <code>string remark = 20;</code>
   * @return The remark.
   */
  @java.lang.Override
  public java.lang.String getRemark() {
    java.lang.Object ref = remark_;
    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();
      remark_ = s;
      return s;
    }
  }
  /**
   * <code>string remark = 20;</code>
   * @return The bytes for remark.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRemarkBytes() {
    java.lang.Object ref = remark_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      remark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EXTSTATUS_FIELD_NUMBER = 21;
  private int extStatus_;
  /**
   * <code>int32 extStatus = 21;</code>
   * @return The extStatus.
   */
  @java.lang.Override
  public int getExtStatus() {
    return extStatus_;
  }

  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 (id_ != 0) {
      output.writeInt32(1, id_);
    }
    if (orderId_ != 0) {
      output.writeInt32(2, orderId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, orderNo_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(4, hospitalId_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(5, createTime_);
    }
    if (amount_ != 0) {
      output.writeInt32(6, amount_);
    }
    if (userId_ != 0) {
      output.writeInt32(7, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idCard_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, idCard_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, mobile_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, regDate_);
    }
    if (regTimePeriod_ != 0) {
      output.writeInt32(12, regTimePeriod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, address_);
    }
    if (status_ != 0) {
      output.writeInt32(14, status_);
    }
    if (paymentStatus_ != 0) {
      output.writeInt32(15, paymentStatus_);
    }
    if (payTime_ != 0L) {
      output.writeInt64(16, payTime_);
    }
    if (refundTime_ != 0L) {
      output.writeInt64(17, refundTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, paymentCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaccineCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, vaccineCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, remark_);
    }
    if (extStatus_ != 0) {
      output.writeInt32(21, extStatus_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, id_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, orderId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderNo_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, hospitalId_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, createTime_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, amount_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idCard_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idCard_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, mobile_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, regDate_);
    }
    if (regTimePeriod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, regTimePeriod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, address_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, status_);
    }
    if (paymentStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, paymentStatus_);
    }
    if (payTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(16, payTime_);
    }
    if (refundTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(17, refundTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, paymentCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaccineCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, vaccineCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, remark_);
    }
    if (extStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(21, extStatus_);
    }
    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.nat.OrderDetail)) {
      return super.equals(obj);
    }
    com.ywt.gapi.nat.OrderDetail other = (com.ywt.gapi.nat.OrderDetail) obj;

    if (getId()
        != other.getId()) return false;
    if (getOrderId()
        != other.getOrderId()) return false;
    if (!getOrderNo()
        .equals(other.getOrderNo())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (getCreateTime()
        != other.getCreateTime()) return false;
    if (getAmount()
        != other.getAmount()) return false;
    if (getUserId()
        != other.getUserId()) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (!getIdCard()
        .equals(other.getIdCard())) return false;
    if (!getMobile()
        .equals(other.getMobile())) return false;
    if (!getRegDate()
        .equals(other.getRegDate())) return false;
    if (getRegTimePeriod()
        != other.getRegTimePeriod()) return false;
    if (!getAddress()
        .equals(other.getAddress())) return false;
    if (getStatus()
        != other.getStatus()) return false;
    if (getPaymentStatus()
        != other.getPaymentStatus()) return false;
    if (getPayTime()
        != other.getPayTime()) return false;
    if (getRefundTime()
        != other.getRefundTime()) return false;
    if (!getPaymentCode()
        .equals(other.getPaymentCode())) return false;
    if (!getVaccineCode()
        .equals(other.getVaccineCode())) return false;
    if (!getRemark()
        .equals(other.getRemark())) return false;
    if (getExtStatus()
        != other.getExtStatus()) 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) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + IDCARD_FIELD_NUMBER;
    hash = (53 * hash) + getIdCard().hashCode();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + REGDATE_FIELD_NUMBER;
    hash = (53 * hash) + getRegDate().hashCode();
    hash = (37 * hash) + REGTIMEPERIOD_FIELD_NUMBER;
    hash = (53 * hash) + getRegTimePeriod();
    hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + PAYMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentStatus();
    hash = (37 * hash) + PAYTIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPayTime());
    hash = (37 * hash) + REFUNDTIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRefundTime());
    hash = (37 * hash) + PAYMENTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentCode().hashCode();
    hash = (37 * hash) + VACCINECODE_FIELD_NUMBER;
    hash = (53 * hash) + getVaccineCode().hashCode();
    hash = (37 * hash) + REMARK_FIELD_NUMBER;
    hash = (53 * hash) + getRemark().hashCode();
    hash = (37 * hash) + EXTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getExtStatus();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.nat.NatProto.internal_static_com_ywt_gapi_nat_OrderDetail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.nat.OrderDetail.class, com.ywt.gapi.nat.OrderDetail.Builder.class);
    }

    // Construct using com.ywt.gapi.nat.OrderDetail.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();
      id_ = 0;

      orderId_ = 0;

      orderNo_ = "";

      hospitalId_ = 0;

      createTime_ = 0L;

      amount_ = 0;

      userId_ = 0;

      patientName_ = "";

      idCard_ = "";

      mobile_ = "";

      regDate_ = "";

      regTimePeriod_ = 0;

      address_ = "";

      status_ = 0;

      paymentStatus_ = 0;

      payTime_ = 0L;

      refundTime_ = 0L;

      paymentCode_ = "";

      vaccineCode_ = "";

      remark_ = "";

      extStatus_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.nat.NatProto.internal_static_com_ywt_gapi_nat_OrderDetail_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.nat.OrderDetail buildPartial() {
      com.ywt.gapi.nat.OrderDetail result = new com.ywt.gapi.nat.OrderDetail(this);
      result.id_ = id_;
      result.orderId_ = orderId_;
      result.orderNo_ = orderNo_;
      result.hospitalId_ = hospitalId_;
      result.createTime_ = createTime_;
      result.amount_ = amount_;
      result.userId_ = userId_;
      result.patientName_ = patientName_;
      result.idCard_ = idCard_;
      result.mobile_ = mobile_;
      result.regDate_ = regDate_;
      result.regTimePeriod_ = regTimePeriod_;
      result.address_ = address_;
      result.status_ = status_;
      result.paymentStatus_ = paymentStatus_;
      result.payTime_ = payTime_;
      result.refundTime_ = refundTime_;
      result.paymentCode_ = paymentCode_;
      result.vaccineCode_ = vaccineCode_;
      result.remark_ = remark_;
      result.extStatus_ = extStatus_;
      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.nat.OrderDetail) {
        return mergeFrom((com.ywt.gapi.nat.OrderDetail)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.nat.OrderDetail other) {
      if (other == com.ywt.gapi.nat.OrderDetail.getDefaultInstance()) return this;
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getIdCard().isEmpty()) {
        idCard_ = other.idCard_;
        onChanged();
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (!other.getRegDate().isEmpty()) {
        regDate_ = other.regDate_;
        onChanged();
      }
      if (other.getRegTimePeriod() != 0) {
        setRegTimePeriod(other.getRegTimePeriod());
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getPaymentStatus() != 0) {
        setPaymentStatus(other.getPaymentStatus());
      }
      if (other.getPayTime() != 0L) {
        setPayTime(other.getPayTime());
      }
      if (other.getRefundTime() != 0L) {
        setRefundTime(other.getRefundTime());
      }
      if (!other.getPaymentCode().isEmpty()) {
        paymentCode_ = other.paymentCode_;
        onChanged();
      }
      if (!other.getVaccineCode().isEmpty()) {
        vaccineCode_ = other.vaccineCode_;
        onChanged();
      }
      if (!other.getRemark().isEmpty()) {
        remark_ = other.remark_;
        onChanged();
      }
      if (other.getExtStatus() != 0) {
        setExtStatus(other.getExtStatus());
      }
      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.nat.OrderDetail parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.nat.OrderDetail) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int id_ ;
    /**
     * <code>int32 id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public int getId() {
      return id_;
    }
    /**
     * <code>int32 id = 1;</code>
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 id = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

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

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

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <code>int64 createTime = 5;</code>
     * @return The createTime.
     */
    @java.lang.Override
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <code>int64 createTime = 5;</code>
     * @param value The createTime to set.
     * @return This builder for chaining.
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createTime = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

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

    private int userId_ ;
    /**
     * <code>int32 userId = 7;</code>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 7;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 8;</code>
     * @return The patientName.
     */
    public java.lang.String getPatientName() {
      java.lang.Object ref = patientName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientName = 8;</code>
     * @return The bytes for patientName.
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      java.lang.Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientName = 8;</code>
     * @param value The patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 8;</code>
     * @param value The bytes for patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object idCard_ = "";
    /**
     * <code>string idCard = 9;</code>
     * @return The idCard.
     */
    public java.lang.String getIdCard() {
      java.lang.Object ref = idCard_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        idCard_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string idCard = 9;</code>
     * @return The bytes for idCard.
     */
    public com.google.protobuf.ByteString
        getIdCardBytes() {
      java.lang.Object ref = idCard_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        idCard_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string idCard = 9;</code>
     * @param value The idCard to set.
     * @return This builder for chaining.
     */
    public Builder setIdCard(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idCard_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string idCard = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearIdCard() {
      
      idCard_ = getDefaultInstance().getIdCard();
      onChanged();
      return this;
    }
    /**
     * <code>string idCard = 9;</code>
     * @param value The bytes for idCard to set.
     * @return This builder for chaining.
     */
    public Builder setIdCardBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idCard_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 10;</code>
     * @return The mobile.
     */
    public java.lang.String getMobile() {
      java.lang.Object ref = mobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string mobile = 10;</code>
     * @return The bytes for mobile.
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      java.lang.Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string mobile = 10;</code>
     * @param value The mobile to set.
     * @return This builder for chaining.
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 10;</code>
     * @param value The bytes for mobile to set.
     * @return This builder for chaining.
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object regDate_ = "";
    /**
     * <code>string regDate = 11;</code>
     * @return The regDate.
     */
    public java.lang.String getRegDate() {
      java.lang.Object ref = regDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        regDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string regDate = 11;</code>
     * @return The bytes for regDate.
     */
    public com.google.protobuf.ByteString
        getRegDateBytes() {
      java.lang.Object ref = regDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        regDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string regDate = 11;</code>
     * @param value The regDate to set.
     * @return This builder for chaining.
     */
    public Builder setRegDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      regDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string regDate = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegDate() {
      
      regDate_ = getDefaultInstance().getRegDate();
      onChanged();
      return this;
    }
    /**
     * <code>string regDate = 11;</code>
     * @param value The bytes for regDate to set.
     * @return This builder for chaining.
     */
    public Builder setRegDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      regDate_ = value;
      onChanged();
      return this;
    }

    private int regTimePeriod_ ;
    /**
     * <code>int32 regTimePeriod = 12;</code>
     * @return The regTimePeriod.
     */
    @java.lang.Override
    public int getRegTimePeriod() {
      return regTimePeriod_;
    }
    /**
     * <code>int32 regTimePeriod = 12;</code>
     * @param value The regTimePeriod to set.
     * @return This builder for chaining.
     */
    public Builder setRegTimePeriod(int value) {
      
      regTimePeriod_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 regTimePeriod = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegTimePeriod() {
      
      regTimePeriod_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object address_ = "";
    /**
     * <code>string address = 13;</code>
     * @return The address.
     */
    public java.lang.String getAddress() {
      java.lang.Object ref = address_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        address_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string address = 13;</code>
     * @return The bytes for address.
     */
    public com.google.protobuf.ByteString
        getAddressBytes() {
      java.lang.Object ref = address_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        address_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string address = 13;</code>
     * @param value The address to set.
     * @return This builder for chaining.
     */
    public Builder setAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      address_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string address = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearAddress() {
      
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * <code>string address = 13;</code>
     * @param value The bytes for address to set.
     * @return This builder for chaining.
     */
    public Builder setAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      address_ = value;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <code>int32 status = 14;</code>
     * @return The status.
     */
    @java.lang.Override
    public int getStatus() {
      return status_;
    }
    /**
     * <code>int32 status = 14;</code>
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private int paymentStatus_ ;
    /**
     * <code>int32 paymentStatus = 15;</code>
     * @return The paymentStatus.
     */
    @java.lang.Override
    public int getPaymentStatus() {
      return paymentStatus_;
    }
    /**
     * <code>int32 paymentStatus = 15;</code>
     * @param value The paymentStatus to set.
     * @return This builder for chaining.
     */
    public Builder setPaymentStatus(int value) {
      
      paymentStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 paymentStatus = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearPaymentStatus() {
      
      paymentStatus_ = 0;
      onChanged();
      return this;
    }

    private long payTime_ ;
    /**
     * <code>int64 payTime = 16;</code>
     * @return The payTime.
     */
    @java.lang.Override
    public long getPayTime() {
      return payTime_;
    }
    /**
     * <code>int64 payTime = 16;</code>
     * @param value The payTime to set.
     * @return This builder for chaining.
     */
    public Builder setPayTime(long value) {
      
      payTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 payTime = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayTime() {
      
      payTime_ = 0L;
      onChanged();
      return this;
    }

    private long refundTime_ ;
    /**
     * <code>int64 refundTime = 17;</code>
     * @return The refundTime.
     */
    @java.lang.Override
    public long getRefundTime() {
      return refundTime_;
    }
    /**
     * <code>int64 refundTime = 17;</code>
     * @param value The refundTime to set.
     * @return This builder for chaining.
     */
    public Builder setRefundTime(long value) {
      
      refundTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 refundTime = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundTime() {
      
      refundTime_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object paymentCode_ = "";
    /**
     * <code>string paymentCode = 18;</code>
     * @return The paymentCode.
     */
    public java.lang.String getPaymentCode() {
      java.lang.Object ref = paymentCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        paymentCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string paymentCode = 18;</code>
     * @return The bytes for paymentCode.
     */
    public com.google.protobuf.ByteString
        getPaymentCodeBytes() {
      java.lang.Object ref = paymentCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        paymentCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string paymentCode = 18;</code>
     * @param value The paymentCode to set.
     * @return This builder for chaining.
     */
    public Builder setPaymentCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      paymentCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string paymentCode = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearPaymentCode() {
      
      paymentCode_ = getDefaultInstance().getPaymentCode();
      onChanged();
      return this;
    }
    /**
     * <code>string paymentCode = 18;</code>
     * @param value The bytes for paymentCode to set.
     * @return This builder for chaining.
     */
    public Builder setPaymentCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      paymentCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object vaccineCode_ = "";
    /**
     * <code>string vaccineCode = 19;</code>
     * @return The vaccineCode.
     */
    public java.lang.String getVaccineCode() {
      java.lang.Object ref = vaccineCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        vaccineCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string vaccineCode = 19;</code>
     * @return The bytes for vaccineCode.
     */
    public com.google.protobuf.ByteString
        getVaccineCodeBytes() {
      java.lang.Object ref = vaccineCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        vaccineCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string vaccineCode = 19;</code>
     * @param value The vaccineCode to set.
     * @return This builder for chaining.
     */
    public Builder setVaccineCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      vaccineCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string vaccineCode = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearVaccineCode() {
      
      vaccineCode_ = getDefaultInstance().getVaccineCode();
      onChanged();
      return this;
    }
    /**
     * <code>string vaccineCode = 19;</code>
     * @param value The bytes for vaccineCode to set.
     * @return This builder for chaining.
     */
    public Builder setVaccineCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      vaccineCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object remark_ = "";
    /**
     * <code>string remark = 20;</code>
     * @return The remark.
     */
    public java.lang.String getRemark() {
      java.lang.Object ref = remark_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        remark_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string remark = 20;</code>
     * @return The bytes for remark.
     */
    public com.google.protobuf.ByteString
        getRemarkBytes() {
      java.lang.Object ref = remark_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        remark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string remark = 20;</code>
     * @param value The remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemark(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remark_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearRemark() {
      
      remark_ = getDefaultInstance().getRemark();
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 20;</code>
     * @param value The bytes for remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remark_ = value;
      onChanged();
      return this;
    }

    private int extStatus_ ;
    /**
     * <code>int32 extStatus = 21;</code>
     * @return The extStatus.
     */
    @java.lang.Override
    public int getExtStatus() {
      return extStatus_;
    }
    /**
     * <code>int32 extStatus = 21;</code>
     * @param value The extStatus to set.
     * @return This builder for chaining.
     */
    public Builder setExtStatus(int value) {
      
      extStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 extStatus = 21;</code>
     * @return This builder for chaining.
     */
    public Builder clearExtStatus() {
      
      extStatus_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.nat.OrderDetail)
  }

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

  public static com.ywt.gapi.nat.OrderDetail getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

