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

package com.ywt.gapi.taihe.outpaitent;

/**
 * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest}
 */
public final class CreateOutpatientRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest)
    CreateOutpatientRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CreateOutpatientRequest.newBuilder() to construct.
  private CreateOutpatientRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateOutpatientRequest() {
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    hisPatientId_ = "";
    hisClinicCode_ = "";
    hisOrderNo_ = "";
    payName_ = "";
    patientName_ = "";
    idNo_ = "";
  }

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

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

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

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

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

            doctorName_ = s;
            break;
          }
          case 40: {

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

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

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

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

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

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

            payName_ = s;
            break;
          }
          case 96: {

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

            patientName_ = s;
            break;
          }
          case 112: {

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

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

            idNo_ = 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.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_CreateOutpatientRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_CreateOutpatientRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest.class, com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest.Builder.class);
  }

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

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

  public static final int DOCTORNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 4;</code>
   * @return The doctorName.
   */
  @java.lang.Override
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    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();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorName = 4;</code>
   * @return The bytes for doctorName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTAL_FIELD_NUMBER = 5;
  private int total_;
  /**
   * <code>int32 total = 5;</code>
   * @return The total.
   */
  @java.lang.Override
  public int getTotal() {
    return total_;
  }

  public static final int REIMBURSEMENT_FIELD_NUMBER = 6;
  private int reimbursement_;
  /**
   * <code>int32 reimbursement = 6;</code>
   * @return The reimbursement.
   */
  @java.lang.Override
  public int getReimbursement() {
    return reimbursement_;
  }

  public static final int INDIVIDUAL_FIELD_NUMBER = 7;
  private int individual_;
  /**
   * <code>int32 individual = 7;</code>
   * @return The individual.
   */
  @java.lang.Override
  public int getIndividual() {
    return individual_;
  }

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

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

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

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

  public static final int PRESCRIPTIONDATE_FIELD_NUMBER = 12;
  private long prescriptionDate_;
  /**
   * <code>int64 prescriptionDate = 12;</code>
   * @return The prescriptionDate.
   */
  @java.lang.Override
  public long getPrescriptionDate() {
    return prescriptionDate_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 13;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 13;</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 = 13;</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 PATIENTAGE_FIELD_NUMBER = 14;
  private int patientAge_;
  /**
   * <code>int32 patientAge = 14;</code>
   * @return The patientAge.
   */
  @java.lang.Override
  public int getPatientAge() {
    return patientAge_;
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 15;
  private int patientSex_;
  /**
   * <code>int32 patientSex = 15;</code>
   * @return The patientSex.
   */
  @java.lang.Override
  public int getPatientSex() {
    return patientSex_;
  }

  public static final int IDNO_FIELD_NUMBER = 16;
  private volatile java.lang.Object idNo_;
  /**
   * <code>string idNo = 16;</code>
   * @return The idNo.
   */
  @java.lang.Override
  public java.lang.String getIdNo() {
    java.lang.Object ref = idNo_;
    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();
      idNo_ = s;
      return s;
    }
  }
  /**
   * <code>string idNo = 16;</code>
   * @return The bytes for idNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIdNoBytes() {
    java.lang.Object ref = idNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      idNo_ = 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(deptCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doctorName_);
    }
    if (total_ != 0) {
      output.writeInt32(5, total_);
    }
    if (reimbursement_ != 0) {
      output.writeInt32(6, reimbursement_);
    }
    if (individual_ != 0) {
      output.writeInt32(7, individual_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hisPatientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisClinicCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, hisClinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrderNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, hisOrderNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, payName_);
    }
    if (prescriptionDate_ != 0L) {
      output.writeInt64(12, prescriptionDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, patientName_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(14, patientAge_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(15, patientSex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, idNo_);
    }
    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(deptCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doctorName_);
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, total_);
    }
    if (reimbursement_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, reimbursement_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, individual_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hisPatientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisClinicCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, hisClinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrderNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, hisOrderNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, payName_);
    }
    if (prescriptionDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(12, prescriptionDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, patientName_);
    }
    if (patientAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, patientAge_);
    }
    if (patientSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, patientSex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, idNo_);
    }
    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.taihe.outpaitent.CreateOutpatientRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest other = (com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest) obj;

    if (!getDeptCode()
        .equals(other.getDeptCode())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (!getDoctorCode()
        .equals(other.getDoctorCode())) return false;
    if (!getDoctorName()
        .equals(other.getDoctorName())) return false;
    if (getTotal()
        != other.getTotal()) return false;
    if (getReimbursement()
        != other.getReimbursement()) return false;
    if (getIndividual()
        != other.getIndividual()) return false;
    if (!getHisPatientId()
        .equals(other.getHisPatientId())) return false;
    if (!getHisClinicCode()
        .equals(other.getHisClinicCode())) return false;
    if (!getHisOrderNo()
        .equals(other.getHisOrderNo())) return false;
    if (!getPayName()
        .equals(other.getPayName())) return false;
    if (getPrescriptionDate()
        != other.getPrescriptionDate()) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (getPatientAge()
        != other.getPatientAge()) return false;
    if (getPatientSex()
        != other.getPatientSex()) return false;
    if (!getIdNo()
        .equals(other.getIdNo())) 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) + DEPTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDeptCode().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + getTotal();
    hash = (37 * hash) + REIMBURSEMENT_FIELD_NUMBER;
    hash = (53 * hash) + getReimbursement();
    hash = (37 * hash) + INDIVIDUAL_FIELD_NUMBER;
    hash = (53 * hash) + getIndividual();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (37 * hash) + HISCLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getHisClinicCode().hashCode();
    hash = (37 * hash) + HISORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrderNo().hashCode();
    hash = (37 * hash) + PAYNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPayName().hashCode();
    hash = (37 * hash) + PRESCRIPTIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPrescriptionDate());
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex();
    hash = (37 * hash) + IDNO_FIELD_NUMBER;
    hash = (53 * hash) + getIdNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_CreateOutpatientRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest.class, com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest.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();
      deptCode_ = "";

      deptName_ = "";

      doctorCode_ = "";

      doctorName_ = "";

      total_ = 0;

      reimbursement_ = 0;

      individual_ = 0;

      hisPatientId_ = "";

      hisClinicCode_ = "";

      hisOrderNo_ = "";

      payName_ = "";

      prescriptionDate_ = 0L;

      patientName_ = "";

      patientAge_ = 0;

      patientSex_ = 0;

      idNo_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_CreateOutpatientRequest_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest buildPartial() {
      com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest result = new com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest(this);
      result.deptCode_ = deptCode_;
      result.deptName_ = deptName_;
      result.doctorCode_ = doctorCode_;
      result.doctorName_ = doctorName_;
      result.total_ = total_;
      result.reimbursement_ = reimbursement_;
      result.individual_ = individual_;
      result.hisPatientId_ = hisPatientId_;
      result.hisClinicCode_ = hisClinicCode_;
      result.hisOrderNo_ = hisOrderNo_;
      result.payName_ = payName_;
      result.prescriptionDate_ = prescriptionDate_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.idNo_ = idNo_;
      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.taihe.outpaitent.CreateOutpatientRequest) {
        return mergeFrom((com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest other) {
      if (other == com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest.getDefaultInstance()) return this;
      if (!other.getDeptCode().isEmpty()) {
        deptCode_ = other.deptCode_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (other.getTotal() != 0) {
        setTotal(other.getTotal());
      }
      if (other.getReimbursement() != 0) {
        setReimbursement(other.getReimbursement());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (!other.getHisClinicCode().isEmpty()) {
        hisClinicCode_ = other.hisClinicCode_;
        onChanged();
      }
      if (!other.getHisOrderNo().isEmpty()) {
        hisOrderNo_ = other.hisOrderNo_;
        onChanged();
      }
      if (!other.getPayName().isEmpty()) {
        payName_ = other.payName_;
        onChanged();
      }
      if (other.getPrescriptionDate() != 0L) {
        setPrescriptionDate(other.getPrescriptionDate());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getPatientAge() != 0) {
        setPatientAge(other.getPatientAge());
      }
      if (other.getPatientSex() != 0) {
        setPatientSex(other.getPatientSex());
      }
      if (!other.getIdNo().isEmpty()) {
        idNo_ = other.idNo_;
        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.taihe.outpaitent.CreateOutpatientRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

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

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 2;</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 = 2;</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 = 2;</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 = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 2;</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 java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 3;</code>
     * @return The doctorCode.
     */
    public java.lang.String getDoctorCode() {
      java.lang.Object ref = doctorCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @return The bytes for doctorCode.
     */
    public com.google.protobuf.ByteString
        getDoctorCodeBytes() {
      java.lang.Object ref = doctorCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @param value The doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @param value The bytes for doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 4;</code>
     * @return The doctorName.
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorName = 4;</code>
     * @return The bytes for doctorName.
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorName = 4;</code>
     * @param value The doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 4;</code>
     * @param value The bytes for doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private int total_ ;
    /**
     * <code>int32 total = 5;</code>
     * @return The total.
     */
    @java.lang.Override
    public int getTotal() {
      return total_;
    }
    /**
     * <code>int32 total = 5;</code>
     * @param value The total to set.
     * @return This builder for chaining.
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

    private int reimbursement_ ;
    /**
     * <code>int32 reimbursement = 6;</code>
     * @return The reimbursement.
     */
    @java.lang.Override
    public int getReimbursement() {
      return reimbursement_;
    }
    /**
     * <code>int32 reimbursement = 6;</code>
     * @param value The reimbursement to set.
     * @return This builder for chaining.
     */
    public Builder setReimbursement(int value) {
      
      reimbursement_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 reimbursement = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearReimbursement() {
      
      reimbursement_ = 0;
      onChanged();
      return this;
    }

    private int individual_ ;
    /**
     * <code>int32 individual = 7;</code>
     * @return The individual.
     */
    @java.lang.Override
    public int getIndividual() {
      return individual_;
    }
    /**
     * <code>int32 individual = 7;</code>
     * @param value The individual to set.
     * @return This builder for chaining.
     */
    public Builder setIndividual(int value) {
      
      individual_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 individual = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearIndividual() {
      
      individual_ = 0;
      onChanged();
      return this;
    }

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

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

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

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

    private long prescriptionDate_ ;
    /**
     * <code>int64 prescriptionDate = 12;</code>
     * @return The prescriptionDate.
     */
    @java.lang.Override
    public long getPrescriptionDate() {
      return prescriptionDate_;
    }
    /**
     * <code>int64 prescriptionDate = 12;</code>
     * @param value The prescriptionDate to set.
     * @return This builder for chaining.
     */
    public Builder setPrescriptionDate(long value) {
      
      prescriptionDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 prescriptionDate = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearPrescriptionDate() {
      
      prescriptionDate_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 13;</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 = 13;</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 = 13;</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 = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 13;</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 int patientAge_ ;
    /**
     * <code>int32 patientAge = 14;</code>
     * @return The patientAge.
     */
    @java.lang.Override
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <code>int32 patientAge = 14;</code>
     * @param value The patientAge to set.
     * @return This builder for chaining.
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAge = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

    private int patientSex_ ;
    /**
     * <code>int32 patientSex = 15;</code>
     * @return The patientSex.
     */
    @java.lang.Override
    public int getPatientSex() {
      return patientSex_;
    }
    /**
     * <code>int32 patientSex = 15;</code>
     * @param value The patientSex to set.
     * @return This builder for chaining.
     */
    public Builder setPatientSex(int value) {
      
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientSex = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientSex() {
      
      patientSex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object idNo_ = "";
    /**
     * <code>string idNo = 16;</code>
     * @return The idNo.
     */
    public java.lang.String getIdNo() {
      java.lang.Object ref = idNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        idNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string idNo = 16;</code>
     * @return The bytes for idNo.
     */
    public com.google.protobuf.ByteString
        getIdNoBytes() {
      java.lang.Object ref = idNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        idNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string idNo = 16;</code>
     * @param value The idNo to set.
     * @return This builder for chaining.
     */
    public Builder setIdNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string idNo = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearIdNo() {
      
      idNo_ = getDefaultInstance().getIdNo();
      onChanged();
      return this;
    }
    /**
     * <code>string idNo = 16;</code>
     * @param value The bytes for idNo to set.
     * @return This builder for chaining.
     */
    public Builder setIdNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idNo_ = 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.taihe.outpaitent.CreateOutpatientRequest)
  }

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

  public static com.ywt.gapi.taihe.outpaitent.CreateOutpatientRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

