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

package com.ywt.gapi.drug;

/**
 * <pre>
 *处方简要信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.drug.PrescriptionInfoLess}
 */
public  final class PrescriptionInfoLess extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.PrescriptionInfoLess)
    PrescriptionInfoLessOrBuilder {
  // Use PrescriptionInfoLess.newBuilder() to construct.
  private PrescriptionInfoLess(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PrescriptionInfoLess() {
    bizNo_ = "";
    doctorName_ = "";
    patientName_ = "";
    patientAge_ = "";
    patientSex_ = "";
    patientNo_ = "";
    diagnose_ = "";
    totalPrice_ = 0;
    status_ = 0;
    statusStr_ = "";
    source_ = 0;
    createOn_ = 0L;
    payStatus_ = 0;
    prescriptionId_ = 0;
    extStatus_ = 0;
    cancelStatus_ = 0;
    cancelRemark_ = "";
    hisOeoriOrderId_ = "";
    medRecordId_ = 0;
    pharmacyId_ = 0;
    deptName_ = "";
    remark_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private PrescriptionInfoLess(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

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

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

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

            diagnose_ = s;
            break;
          }
          case 64: {

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

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

            statusStr_ = s;
            break;
          }
          case 88: {

            source_ = input.readInt32();
            break;
          }
          case 96: {

            createOn_ = input.readInt64();
            break;
          }
          case 104: {

            payStatus_ = input.readInt32();
            break;
          }
          case 112: {

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

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

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

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

            hisOeoriOrderId_ = s;
            break;
          }
          case 152: {

            medRecordId_ = input.readInt32();
            break;
          }
          case 160: {

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

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

            remark_ = s;
            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 {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfoLess_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfoLess_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.drug.PrescriptionInfoLess.class, com.ywt.gapi.drug.PrescriptionInfoLess.Builder.class);
  }

  public static final int BIZNO_FIELD_NUMBER = 1;
  private volatile java.lang.Object bizNo_;
  /**
   * <code>string bizNo = 1;</code>
   */
  public java.lang.String getBizNo() {
    java.lang.Object ref = bizNo_;
    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();
      bizNo_ = s;
      return s;
    }
  }
  /**
   * <code>string bizNo = 1;</code>
   */
  public com.google.protobuf.ByteString
      getBizNoBytes() {
    java.lang.Object ref = bizNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      bizNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 2;</code>
   */
  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 = 2;</code>
   */
  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 PATIENTNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 3;</code>
   */
  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 = 3;</code>
   */
  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 = 4;
  private volatile java.lang.Object patientAge_;
  /**
   * <code>string patientAge = 4;</code>
   */
  public java.lang.String getPatientAge() {
    java.lang.Object ref = patientAge_;
    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();
      patientAge_ = s;
      return s;
    }
  }
  /**
   * <code>string patientAge = 4;</code>
   */
  public com.google.protobuf.ByteString
      getPatientAgeBytes() {
    java.lang.Object ref = patientAge_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientAge_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 5;
  private volatile java.lang.Object patientSex_;
  /**
   * <code>string patientSex = 5;</code>
   */
  public java.lang.String getPatientSex() {
    java.lang.Object ref = patientSex_;
    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();
      patientSex_ = s;
      return s;
    }
  }
  /**
   * <code>string patientSex = 5;</code>
   */
  public com.google.protobuf.ByteString
      getPatientSexBytes() {
    java.lang.Object ref = patientSex_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientSex_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNO_FIELD_NUMBER = 6;
  private volatile java.lang.Object patientNo_;
  /**
   * <code>string patientNo = 6;</code>
   */
  public java.lang.String getPatientNo() {
    java.lang.Object ref = patientNo_;
    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();
      patientNo_ = s;
      return s;
    }
  }
  /**
   * <code>string patientNo = 6;</code>
   */
  public com.google.protobuf.ByteString
      getPatientNoBytes() {
    java.lang.Object ref = patientNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSE_FIELD_NUMBER = 7;
  private volatile java.lang.Object diagnose_;
  /**
   * <code>string diagnose = 7;</code>
   */
  public java.lang.String getDiagnose() {
    java.lang.Object ref = diagnose_;
    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();
      diagnose_ = s;
      return s;
    }
  }
  /**
   * <code>string diagnose = 7;</code>
   */
  public com.google.protobuf.ByteString
      getDiagnoseBytes() {
    java.lang.Object ref = diagnose_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnose_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTALPRICE_FIELD_NUMBER = 8;
  private int totalPrice_;
  /**
   * <code>int32 totalPrice = 8;</code>
   */
  public int getTotalPrice() {
    return totalPrice_;
  }

  public static final int STATUS_FIELD_NUMBER = 9;
  private int status_;
  /**
   * <code>int32 status = 9;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int STATUSSTR_FIELD_NUMBER = 10;
  private volatile java.lang.Object statusStr_;
  /**
   * <code>string statusStr = 10;</code>
   */
  public java.lang.String getStatusStr() {
    java.lang.Object ref = statusStr_;
    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();
      statusStr_ = s;
      return s;
    }
  }
  /**
   * <code>string statusStr = 10;</code>
   */
  public com.google.protobuf.ByteString
      getStatusStrBytes() {
    java.lang.Object ref = statusStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusStr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_FIELD_NUMBER = 11;
  private int source_;
  /**
   * <code>int32 source = 11;</code>
   */
  public int getSource() {
    return source_;
  }

  public static final int CREATEON_FIELD_NUMBER = 12;
  private long createOn_;
  /**
   * <code>int64 createOn = 12;</code>
   */
  public long getCreateOn() {
    return createOn_;
  }

  public static final int PAYSTATUS_FIELD_NUMBER = 13;
  private int payStatus_;
  /**
   * <code>int32 payStatus = 13;</code>
   */
  public int getPayStatus() {
    return payStatus_;
  }

  public static final int PRESCRIPTIONID_FIELD_NUMBER = 14;
  private int prescriptionId_;
  /**
   * <pre>
   *唯一标识
   * </pre>
   *
   * <code>int32 prescriptionId = 14;</code>
   */
  public int getPrescriptionId() {
    return prescriptionId_;
  }

  public static final int EXTSTATUS_FIELD_NUMBER = 15;
  private int extStatus_;
  /**
   * <code>int32 extStatus = 15;</code>
   */
  public int getExtStatus() {
    return extStatus_;
  }

  public static final int CANCELSTATUS_FIELD_NUMBER = 16;
  private int cancelStatus_;
  /**
   * <pre>
   * 作废状态
   * </pre>
   *
   * <code>int32 cancelStatus = 16;</code>
   */
  public int getCancelStatus() {
    return cancelStatus_;
  }

  public static final int CANCELREMARK_FIELD_NUMBER = 17;
  private volatile java.lang.Object cancelRemark_;
  /**
   * <pre>
   * 作废备注
   * </pre>
   *
   * <code>string cancelRemark = 17;</code>
   */
  public java.lang.String getCancelRemark() {
    java.lang.Object ref = cancelRemark_;
    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();
      cancelRemark_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 作废备注
   * </pre>
   *
   * <code>string cancelRemark = 17;</code>
   */
  public com.google.protobuf.ByteString
      getCancelRemarkBytes() {
    java.lang.Object ref = cancelRemark_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cancelRemark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISOEORIORDERID_FIELD_NUMBER = 18;
  private volatile java.lang.Object hisOeoriOrderId_;
  /**
   * <code>string hisOeoriOrderId = 18;</code>
   */
  public java.lang.String getHisOeoriOrderId() {
    java.lang.Object ref = hisOeoriOrderId_;
    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();
      hisOeoriOrderId_ = s;
      return s;
    }
  }
  /**
   * <code>string hisOeoriOrderId = 18;</code>
   */
  public com.google.protobuf.ByteString
      getHisOeoriOrderIdBytes() {
    java.lang.Object ref = hisOeoriOrderId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOeoriOrderId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MEDRECORDID_FIELD_NUMBER = 19;
  private int medRecordId_;
  /**
   * <code>int32 medRecordId = 19;</code>
   */
  public int getMedRecordId() {
    return medRecordId_;
  }

  public static final int PHARMACYID_FIELD_NUMBER = 20;
  private int pharmacyId_;
  /**
   * <code>int32 pharmacyId = 20;</code>
   */
  public int getPharmacyId() {
    return pharmacyId_;
  }

  public static final int DEPTNAME_FIELD_NUMBER = 21;
  private volatile java.lang.Object deptName_;
  /**
   * <code>string deptName = 21;</code>
   */
  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 = 21;</code>
   */
  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 REMARK_FIELD_NUMBER = 22;
  private volatile java.lang.Object remark_;
  /**
   * <code>string remark = 22;</code>
   */
  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 = 22;</code>
   */
  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;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getBizNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bizNo_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, doctorName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patientAge_);
    }
    if (!getPatientSexBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patientSex_);
    }
    if (!getPatientNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patientNo_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diagnose_);
    }
    if (totalPrice_ != 0) {
      output.writeInt32(8, totalPrice_);
    }
    if (status_ != 0) {
      output.writeInt32(9, status_);
    }
    if (!getStatusStrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, statusStr_);
    }
    if (source_ != 0) {
      output.writeInt32(11, source_);
    }
    if (createOn_ != 0L) {
      output.writeInt64(12, createOn_);
    }
    if (payStatus_ != 0) {
      output.writeInt32(13, payStatus_);
    }
    if (prescriptionId_ != 0) {
      output.writeInt32(14, prescriptionId_);
    }
    if (extStatus_ != 0) {
      output.writeInt32(15, extStatus_);
    }
    if (cancelStatus_ != 0) {
      output.writeInt32(16, cancelStatus_);
    }
    if (!getCancelRemarkBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, cancelRemark_);
    }
    if (!getHisOeoriOrderIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, hisOeoriOrderId_);
    }
    if (medRecordId_ != 0) {
      output.writeInt32(19, medRecordId_);
    }
    if (pharmacyId_ != 0) {
      output.writeInt32(20, pharmacyId_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, deptName_);
    }
    if (!getRemarkBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, remark_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getBizNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bizNo_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, doctorName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, patientAge_);
    }
    if (!getPatientSexBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patientSex_);
    }
    if (!getPatientNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patientNo_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diagnose_);
    }
    if (totalPrice_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, totalPrice_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, status_);
    }
    if (!getStatusStrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, statusStr_);
    }
    if (source_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, source_);
    }
    if (createOn_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(12, createOn_);
    }
    if (payStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, payStatus_);
    }
    if (prescriptionId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, prescriptionId_);
    }
    if (extStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, extStatus_);
    }
    if (cancelStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, cancelStatus_);
    }
    if (!getCancelRemarkBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, cancelRemark_);
    }
    if (!getHisOeoriOrderIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, hisOeoriOrderId_);
    }
    if (medRecordId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, medRecordId_);
    }
    if (pharmacyId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(20, pharmacyId_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, deptName_);
    }
    if (!getRemarkBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, remark_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.drug.PrescriptionInfoLess)) {
      return super.equals(obj);
    }
    com.ywt.gapi.drug.PrescriptionInfoLess other = (com.ywt.gapi.drug.PrescriptionInfoLess) obj;

    boolean result = true;
    result = result && getBizNo()
        .equals(other.getBizNo());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && getPatientAge()
        .equals(other.getPatientAge());
    result = result && getPatientSex()
        .equals(other.getPatientSex());
    result = result && getPatientNo()
        .equals(other.getPatientNo());
    result = result && getDiagnose()
        .equals(other.getDiagnose());
    result = result && (getTotalPrice()
        == other.getTotalPrice());
    result = result && (getStatus()
        == other.getStatus());
    result = result && getStatusStr()
        .equals(other.getStatusStr());
    result = result && (getSource()
        == other.getSource());
    result = result && (getCreateOn()
        == other.getCreateOn());
    result = result && (getPayStatus()
        == other.getPayStatus());
    result = result && (getPrescriptionId()
        == other.getPrescriptionId());
    result = result && (getExtStatus()
        == other.getExtStatus());
    result = result && (getCancelStatus()
        == other.getCancelStatus());
    result = result && getCancelRemark()
        .equals(other.getCancelRemark());
    result = result && getHisOeoriOrderId()
        .equals(other.getHisOeoriOrderId());
    result = result && (getMedRecordId()
        == other.getMedRecordId());
    result = result && (getPharmacyId()
        == other.getPharmacyId());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getRemark()
        .equals(other.getRemark());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + BIZNO_FIELD_NUMBER;
    hash = (53 * hash) + getBizNo().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge().hashCode();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex().hashCode();
    hash = (37 * hash) + PATIENTNO_FIELD_NUMBER;
    hash = (53 * hash) + getPatientNo().hashCode();
    hash = (37 * hash) + DIAGNOSE_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnose().hashCode();
    hash = (37 * hash) + TOTALPRICE_FIELD_NUMBER;
    hash = (53 * hash) + getTotalPrice();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + STATUSSTR_FIELD_NUMBER;
    hash = (53 * hash) + getStatusStr().hashCode();
    hash = (37 * hash) + SOURCE_FIELD_NUMBER;
    hash = (53 * hash) + getSource();
    hash = (37 * hash) + CREATEON_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateOn());
    hash = (37 * hash) + PAYSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPayStatus();
    hash = (37 * hash) + PRESCRIPTIONID_FIELD_NUMBER;
    hash = (53 * hash) + getPrescriptionId();
    hash = (37 * hash) + EXTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getExtStatus();
    hash = (37 * hash) + CANCELSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getCancelStatus();
    hash = (37 * hash) + CANCELREMARK_FIELD_NUMBER;
    hash = (53 * hash) + getCancelRemark().hashCode();
    hash = (37 * hash) + HISOEORIORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getHisOeoriOrderId().hashCode();
    hash = (37 * hash) + MEDRECORDID_FIELD_NUMBER;
    hash = (53 * hash) + getMedRecordId();
    hash = (37 * hash) + PHARMACYID_FIELD_NUMBER;
    hash = (53 * hash) + getPharmacyId();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + REMARK_FIELD_NUMBER;
    hash = (53 * hash) + getRemark().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.drug.PrescriptionInfoLess parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.PrescriptionInfoLess 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.drug.PrescriptionInfoLess parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.PrescriptionInfoLess 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.drug.PrescriptionInfoLess parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.PrescriptionInfoLess parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.PrescriptionInfoLess parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.PrescriptionInfoLess 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.drug.PrescriptionInfoLess parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.PrescriptionInfoLess 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.drug.PrescriptionInfoLess parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.PrescriptionInfoLess parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.drug.PrescriptionInfoLess prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *处方简要信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.drug.PrescriptionInfoLess}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.PrescriptionInfoLess)
      com.ywt.gapi.drug.PrescriptionInfoLessOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfoLess_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfoLess_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.drug.PrescriptionInfoLess.class, com.ywt.gapi.drug.PrescriptionInfoLess.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      bizNo_ = "";

      doctorName_ = "";

      patientName_ = "";

      patientAge_ = "";

      patientSex_ = "";

      patientNo_ = "";

      diagnose_ = "";

      totalPrice_ = 0;

      status_ = 0;

      statusStr_ = "";

      source_ = 0;

      createOn_ = 0L;

      payStatus_ = 0;

      prescriptionId_ = 0;

      extStatus_ = 0;

      cancelStatus_ = 0;

      cancelRemark_ = "";

      hisOeoriOrderId_ = "";

      medRecordId_ = 0;

      pharmacyId_ = 0;

      deptName_ = "";

      remark_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_PrescriptionInfoLess_descriptor;
    }

    public com.ywt.gapi.drug.PrescriptionInfoLess getDefaultInstanceForType() {
      return com.ywt.gapi.drug.PrescriptionInfoLess.getDefaultInstance();
    }

    public com.ywt.gapi.drug.PrescriptionInfoLess build() {
      com.ywt.gapi.drug.PrescriptionInfoLess result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ywt.gapi.drug.PrescriptionInfoLess buildPartial() {
      com.ywt.gapi.drug.PrescriptionInfoLess result = new com.ywt.gapi.drug.PrescriptionInfoLess(this);
      result.bizNo_ = bizNo_;
      result.doctorName_ = doctorName_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.patientNo_ = patientNo_;
      result.diagnose_ = diagnose_;
      result.totalPrice_ = totalPrice_;
      result.status_ = status_;
      result.statusStr_ = statusStr_;
      result.source_ = source_;
      result.createOn_ = createOn_;
      result.payStatus_ = payStatus_;
      result.prescriptionId_ = prescriptionId_;
      result.extStatus_ = extStatus_;
      result.cancelStatus_ = cancelStatus_;
      result.cancelRemark_ = cancelRemark_;
      result.hisOeoriOrderId_ = hisOeoriOrderId_;
      result.medRecordId_ = medRecordId_;
      result.pharmacyId_ = pharmacyId_;
      result.deptName_ = deptName_;
      result.remark_ = remark_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.drug.PrescriptionInfoLess) {
        return mergeFrom((com.ywt.gapi.drug.PrescriptionInfoLess)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.drug.PrescriptionInfoLess other) {
      if (other == com.ywt.gapi.drug.PrescriptionInfoLess.getDefaultInstance()) return this;
      if (!other.getBizNo().isEmpty()) {
        bizNo_ = other.bizNo_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getPatientAge().isEmpty()) {
        patientAge_ = other.patientAge_;
        onChanged();
      }
      if (!other.getPatientSex().isEmpty()) {
        patientSex_ = other.patientSex_;
        onChanged();
      }
      if (!other.getPatientNo().isEmpty()) {
        patientNo_ = other.patientNo_;
        onChanged();
      }
      if (!other.getDiagnose().isEmpty()) {
        diagnose_ = other.diagnose_;
        onChanged();
      }
      if (other.getTotalPrice() != 0) {
        setTotalPrice(other.getTotalPrice());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (!other.getStatusStr().isEmpty()) {
        statusStr_ = other.statusStr_;
        onChanged();
      }
      if (other.getSource() != 0) {
        setSource(other.getSource());
      }
      if (other.getCreateOn() != 0L) {
        setCreateOn(other.getCreateOn());
      }
      if (other.getPayStatus() != 0) {
        setPayStatus(other.getPayStatus());
      }
      if (other.getPrescriptionId() != 0) {
        setPrescriptionId(other.getPrescriptionId());
      }
      if (other.getExtStatus() != 0) {
        setExtStatus(other.getExtStatus());
      }
      if (other.getCancelStatus() != 0) {
        setCancelStatus(other.getCancelStatus());
      }
      if (!other.getCancelRemark().isEmpty()) {
        cancelRemark_ = other.cancelRemark_;
        onChanged();
      }
      if (!other.getHisOeoriOrderId().isEmpty()) {
        hisOeoriOrderId_ = other.hisOeoriOrderId_;
        onChanged();
      }
      if (other.getMedRecordId() != 0) {
        setMedRecordId(other.getMedRecordId());
      }
      if (other.getPharmacyId() != 0) {
        setPharmacyId(other.getPharmacyId());
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getRemark().isEmpty()) {
        remark_ = other.remark_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private java.lang.Object bizNo_ = "";
    /**
     * <code>string bizNo = 1;</code>
     */
    public java.lang.String getBizNo() {
      java.lang.Object ref = bizNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        bizNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string bizNo = 1;</code>
     */
    public com.google.protobuf.ByteString
        getBizNoBytes() {
      java.lang.Object ref = bizNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        bizNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string bizNo = 1;</code>
     */
    public Builder setBizNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      bizNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string bizNo = 1;</code>
     */
    public Builder clearBizNo() {
      
      bizNo_ = getDefaultInstance().getBizNo();
      onChanged();
      return this;
    }
    /**
     * <code>string bizNo = 1;</code>
     */
    public Builder setBizNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      bizNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 2;</code>
     */
    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 = 2;</code>
     */
    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 = 2;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 2;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 2;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 3;</code>
     */
    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 = 3;</code>
     */
    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 = 3;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 3;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 3;</code>
     */
    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 patientAge_ = "";
    /**
     * <code>string patientAge = 4;</code>
     */
    public java.lang.String getPatientAge() {
      java.lang.Object ref = patientAge_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientAge_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public com.google.protobuf.ByteString
        getPatientAgeBytes() {
      java.lang.Object ref = patientAge_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientAge_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public Builder setPatientAge(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = getDefaultInstance().getPatientAge();
      onChanged();
      return this;
    }
    /**
     * <code>string patientAge = 4;</code>
     */
    public Builder setPatientAgeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientAge_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientSex_ = "";
    /**
     * <code>string patientSex = 5;</code>
     */
    public java.lang.String getPatientSex() {
      java.lang.Object ref = patientSex_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientSex_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public com.google.protobuf.ByteString
        getPatientSexBytes() {
      java.lang.Object ref = patientSex_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientSex_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public Builder setPatientSex(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public Builder clearPatientSex() {
      
      patientSex_ = getDefaultInstance().getPatientSex();
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 5;</code>
     */
    public Builder setPatientSexBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientSex_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientNo_ = "";
    /**
     * <code>string patientNo = 6;</code>
     */
    public java.lang.String getPatientNo() {
      java.lang.Object ref = patientNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public com.google.protobuf.ByteString
        getPatientNoBytes() {
      java.lang.Object ref = patientNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public Builder setPatientNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public Builder clearPatientNo() {
      
      patientNo_ = getDefaultInstance().getPatientNo();
      onChanged();
      return this;
    }
    /**
     * <code>string patientNo = 6;</code>
     */
    public Builder setPatientNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnose_ = "";
    /**
     * <code>string diagnose = 7;</code>
     */
    public java.lang.String getDiagnose() {
      java.lang.Object ref = diagnose_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnose_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public com.google.protobuf.ByteString
        getDiagnoseBytes() {
      java.lang.Object ref = diagnose_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnose_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public Builder setDiagnose(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnose_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public Builder clearDiagnose() {
      
      diagnose_ = getDefaultInstance().getDiagnose();
      onChanged();
      return this;
    }
    /**
     * <code>string diagnose = 7;</code>
     */
    public Builder setDiagnoseBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnose_ = value;
      onChanged();
      return this;
    }

    private int totalPrice_ ;
    /**
     * <code>int32 totalPrice = 8;</code>
     */
    public int getTotalPrice() {
      return totalPrice_;
    }
    /**
     * <code>int32 totalPrice = 8;</code>
     */
    public Builder setTotalPrice(int value) {
      
      totalPrice_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 totalPrice = 8;</code>
     */
    public Builder clearTotalPrice() {
      
      totalPrice_ = 0;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <code>int32 status = 9;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <code>int32 status = 9;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status = 9;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object statusStr_ = "";
    /**
     * <code>string statusStr = 10;</code>
     */
    public java.lang.String getStatusStr() {
      java.lang.Object ref = statusStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string statusStr = 10;</code>
     */
    public com.google.protobuf.ByteString
        getStatusStrBytes() {
      java.lang.Object ref = statusStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string statusStr = 10;</code>
     */
    public Builder setStatusStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      statusStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string statusStr = 10;</code>
     */
    public Builder clearStatusStr() {
      
      statusStr_ = getDefaultInstance().getStatusStr();
      onChanged();
      return this;
    }
    /**
     * <code>string statusStr = 10;</code>
     */
    public Builder setStatusStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      statusStr_ = value;
      onChanged();
      return this;
    }

    private int source_ ;
    /**
     * <code>int32 source = 11;</code>
     */
    public int getSource() {
      return source_;
    }
    /**
     * <code>int32 source = 11;</code>
     */
    public Builder setSource(int value) {
      
      source_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 source = 11;</code>
     */
    public Builder clearSource() {
      
      source_ = 0;
      onChanged();
      return this;
    }

    private long createOn_ ;
    /**
     * <code>int64 createOn = 12;</code>
     */
    public long getCreateOn() {
      return createOn_;
    }
    /**
     * <code>int64 createOn = 12;</code>
     */
    public Builder setCreateOn(long value) {
      
      createOn_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createOn = 12;</code>
     */
    public Builder clearCreateOn() {
      
      createOn_ = 0L;
      onChanged();
      return this;
    }

    private int payStatus_ ;
    /**
     * <code>int32 payStatus = 13;</code>
     */
    public int getPayStatus() {
      return payStatus_;
    }
    /**
     * <code>int32 payStatus = 13;</code>
     */
    public Builder setPayStatus(int value) {
      
      payStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 payStatus = 13;</code>
     */
    public Builder clearPayStatus() {
      
      payStatus_ = 0;
      onChanged();
      return this;
    }

    private int prescriptionId_ ;
    /**
     * <pre>
     *唯一标识
     * </pre>
     *
     * <code>int32 prescriptionId = 14;</code>
     */
    public int getPrescriptionId() {
      return prescriptionId_;
    }
    /**
     * <pre>
     *唯一标识
     * </pre>
     *
     * <code>int32 prescriptionId = 14;</code>
     */
    public Builder setPrescriptionId(int value) {
      
      prescriptionId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *唯一标识
     * </pre>
     *
     * <code>int32 prescriptionId = 14;</code>
     */
    public Builder clearPrescriptionId() {
      
      prescriptionId_ = 0;
      onChanged();
      return this;
    }

    private int extStatus_ ;
    /**
     * <code>int32 extStatus = 15;</code>
     */
    public int getExtStatus() {
      return extStatus_;
    }
    /**
     * <code>int32 extStatus = 15;</code>
     */
    public Builder setExtStatus(int value) {
      
      extStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 extStatus = 15;</code>
     */
    public Builder clearExtStatus() {
      
      extStatus_ = 0;
      onChanged();
      return this;
    }

    private int cancelStatus_ ;
    /**
     * <pre>
     * 作废状态
     * </pre>
     *
     * <code>int32 cancelStatus = 16;</code>
     */
    public int getCancelStatus() {
      return cancelStatus_;
    }
    /**
     * <pre>
     * 作废状态
     * </pre>
     *
     * <code>int32 cancelStatus = 16;</code>
     */
    public Builder setCancelStatus(int value) {
      
      cancelStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 作废状态
     * </pre>
     *
     * <code>int32 cancelStatus = 16;</code>
     */
    public Builder clearCancelStatus() {
      
      cancelStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object cancelRemark_ = "";
    /**
     * <pre>
     * 作废备注
     * </pre>
     *
     * <code>string cancelRemark = 17;</code>
     */
    public java.lang.String getCancelRemark() {
      java.lang.Object ref = cancelRemark_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cancelRemark_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 作废备注
     * </pre>
     *
     * <code>string cancelRemark = 17;</code>
     */
    public com.google.protobuf.ByteString
        getCancelRemarkBytes() {
      java.lang.Object ref = cancelRemark_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cancelRemark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 作废备注
     * </pre>
     *
     * <code>string cancelRemark = 17;</code>
     */
    public Builder setCancelRemark(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cancelRemark_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 作废备注
     * </pre>
     *
     * <code>string cancelRemark = 17;</code>
     */
    public Builder clearCancelRemark() {
      
      cancelRemark_ = getDefaultInstance().getCancelRemark();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 作废备注
     * </pre>
     *
     * <code>string cancelRemark = 17;</code>
     */
    public Builder setCancelRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cancelRemark_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisOeoriOrderId_ = "";
    /**
     * <code>string hisOeoriOrderId = 18;</code>
     */
    public java.lang.String getHisOeoriOrderId() {
      java.lang.Object ref = hisOeoriOrderId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOeoriOrderId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisOeoriOrderId = 18;</code>
     */
    public com.google.protobuf.ByteString
        getHisOeoriOrderIdBytes() {
      java.lang.Object ref = hisOeoriOrderId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOeoriOrderId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisOeoriOrderId = 18;</code>
     */
    public Builder setHisOeoriOrderId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOeoriOrderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisOeoriOrderId = 18;</code>
     */
    public Builder clearHisOeoriOrderId() {
      
      hisOeoriOrderId_ = getDefaultInstance().getHisOeoriOrderId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisOeoriOrderId = 18;</code>
     */
    public Builder setHisOeoriOrderIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOeoriOrderId_ = value;
      onChanged();
      return this;
    }

    private int medRecordId_ ;
    /**
     * <code>int32 medRecordId = 19;</code>
     */
    public int getMedRecordId() {
      return medRecordId_;
    }
    /**
     * <code>int32 medRecordId = 19;</code>
     */
    public Builder setMedRecordId(int value) {
      
      medRecordId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 medRecordId = 19;</code>
     */
    public Builder clearMedRecordId() {
      
      medRecordId_ = 0;
      onChanged();
      return this;
    }

    private int pharmacyId_ ;
    /**
     * <code>int32 pharmacyId = 20;</code>
     */
    public int getPharmacyId() {
      return pharmacyId_;
    }
    /**
     * <code>int32 pharmacyId = 20;</code>
     */
    public Builder setPharmacyId(int value) {
      
      pharmacyId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 pharmacyId = 20;</code>
     */
    public Builder clearPharmacyId() {
      
      pharmacyId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 21;</code>
     */
    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 = 21;</code>
     */
    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 = 21;</code>
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 21;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 21;</code>
     */
    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 remark_ = "";
    /**
     * <code>string remark = 22;</code>
     */
    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 = 22;</code>
     */
    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 = 22;</code>
     */
    public Builder setRemark(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remark_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 22;</code>
     */
    public Builder clearRemark() {
      
      remark_ = getDefaultInstance().getRemark();
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 22;</code>
     */
    public Builder setRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remark_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.drug.PrescriptionInfoLess)
  }

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

  public static com.ywt.gapi.drug.PrescriptionInfoLess getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.drug.PrescriptionInfoLess getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

