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

package com.ywt.gapi.third.taihe;

/**
 * <pre>
 *处方信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.taihe.PrescriptionInfo}
 */
public  final class PrescriptionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PrescriptionInfo)
    PrescriptionInfoOrBuilder {
  // Use PrescriptionInfo.newBuilder() to construct.
  private PrescriptionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PrescriptionInfo() {
    preBizNo_ = "";
    doctorName_ = "";
    doctorCode_ = "";
    patientName_ = "";
    patientAge_ = "";
    patientSex_ = "";
    patientNo_ = "";
    diagnose_ = "";
    dept_ = "";
    createOn_ = 0L;
    status_ = 0;
    totalPrice_ = 0;
    patientMobile_ = "";
    allergicHistory_ = "";
    description_ = "";
    doctorId_ = 0;
    hospitalId_ = 0;
    deliveryMethod_ = 0;
    address_ = "";
    drugs_ = java.util.Collections.emptyList();
    createOnStr_ = "";
  }

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

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

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

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

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

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

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

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

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

            dept_ = s;
            break;
          }
          case 80: {

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

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

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

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

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

            description_ = s;
            break;
          }
          case 128: {

            doctorId_ = input.readInt32();
            break;
          }
          case 136: {

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

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

            address_ = s;
            break;
          }
          case 162: {
            if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
              drugs_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo>();
              mutable_bitField0_ |= 0x00080000;
            }
            drugs_.add(
                input.readMessage(com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.parser(), extensionRegistry));
            break;
          }
          case 170: {
            java.lang.String s = input.readStringRequireUtf8();

            createOnStr_ = 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 {
      if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
        drugs_ = java.util.Collections.unmodifiableList(drugs_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.PrescriptionInfo.class, com.ywt.gapi.third.taihe.PrescriptionInfo.Builder.class);
  }

  public interface PrescriptionDrugInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string preBizNo = 1;</code>
     */
    java.lang.String getPreBizNo();
    /**
     * <code>string preBizNo = 1;</code>
     */
    com.google.protobuf.ByteString
        getPreBizNoBytes();

    /**
     * <code>int32 preId = 2;</code>
     */
    int getPreId();

    /**
     * <code>string drugCode = 3;</code>
     */
    java.lang.String getDrugCode();
    /**
     * <code>string drugCode = 3;</code>
     */
    com.google.protobuf.ByteString
        getDrugCodeBytes();

    /**
     * <code>string drugName = 4;</code>
     */
    java.lang.String getDrugName();
    /**
     * <code>string drugName = 4;</code>
     */
    com.google.protobuf.ByteString
        getDrugNameBytes();

    /**
     * <code>string drugSpec = 5;</code>
     */
    java.lang.String getDrugSpec();
    /**
     * <code>string drugSpec = 5;</code>
     */
    com.google.protobuf.ByteString
        getDrugSpecBytes();

    /**
     * <code>double oneDosage = 6;</code>
     */
    double getOneDosage();

    /**
     * <code>string oneDosageUnit = 7;</code>
     */
    java.lang.String getOneDosageUnit();
    /**
     * <code>string oneDosageUnit = 7;</code>
     */
    com.google.protobuf.ByteString
        getOneDosageUnitBytes();

    /**
     * <code>int32 amount = 8;</code>
     */
    int getAmount();

    /**
     * <code>string units = 9;</code>
     */
    java.lang.String getUnits();
    /**
     * <code>string units = 9;</code>
     */
    com.google.protobuf.ByteString
        getUnitsBytes();

    /**
     * <code>string frequencyCode = 10;</code>
     */
    java.lang.String getFrequencyCode();
    /**
     * <code>string frequencyCode = 10;</code>
     */
    com.google.protobuf.ByteString
        getFrequencyCodeBytes();

    /**
     * <code>string frequency = 11;</code>
     */
    java.lang.String getFrequency();
    /**
     * <code>string frequency = 11;</code>
     */
    com.google.protobuf.ByteString
        getFrequencyBytes();

    /**
     * <code>int32 frequencyQty = 12;</code>
     */
    int getFrequencyQty();

    /**
     * <code>string usageCode = 13;</code>
     */
    java.lang.String getUsageCode();
    /**
     * <code>string usageCode = 13;</code>
     */
    com.google.protobuf.ByteString
        getUsageCodeBytes();

    /**
     * <code>string usageDetail = 14;</code>
     */
    java.lang.String getUsageDetail();
    /**
     * <code>string usageDetail = 14;</code>
     */
    com.google.protobuf.ByteString
        getUsageDetailBytes();

    /**
     * <code>int32 price = 15;</code>
     */
    int getPrice();

    /**
     * <code>int32 total = 16;</code>
     */
    int getTotal();

    /**
     * <code>string remark = 17;</code>
     */
    java.lang.String getRemark();
    /**
     * <code>string remark = 17;</code>
     */
    com.google.protobuf.ByteString
        getRemarkBytes();

    /**
     * <code>int32 course = 18;</code>
     */
    int getCourse();

    /**
     * <code>int32 drugId = 19;</code>
     */
    int getDrugId();

    /**
     * <code>int32 quantity = 20;</code>
     */
    int getQuantity();

    /**
     * <code>int32 groups = 21;</code>
     */
    int getGroups();

    /**
     * <code>int32 orderIndex = 22;</code>
     */
    int getOrderIndex();

    /**
     * <code>bool combination = 23;</code>
     */
    boolean getCombination();

    /**
     * <code>string producer = 24;</code>
     */
    java.lang.String getProducer();
    /**
     * <code>string producer = 24;</code>
     */
    com.google.protobuf.ByteString
        getProducerBytes();
  }
  /**
   * <pre>
   *处方药品信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo}
   */
  public  static final class PrescriptionDrugInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo)
      PrescriptionDrugInfoOrBuilder {
    // Use PrescriptionDrugInfo.newBuilder() to construct.
    private PrescriptionDrugInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PrescriptionDrugInfo() {
      preBizNo_ = "";
      preId_ = 0;
      drugCode_ = "";
      drugName_ = "";
      drugSpec_ = "";
      oneDosage_ = 0D;
      oneDosageUnit_ = "";
      amount_ = 0;
      units_ = "";
      frequencyCode_ = "";
      frequency_ = "";
      frequencyQty_ = 0;
      usageCode_ = "";
      usageDetail_ = "";
      price_ = 0;
      total_ = 0;
      remark_ = "";
      course_ = 0;
      drugId_ = 0;
      quantity_ = 0;
      groups_ = 0;
      orderIndex_ = 0;
      combination_ = false;
      producer_ = "";
    }

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

              preBizNo_ = s;
              break;
            }
            case 16: {

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

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

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

              drugSpec_ = s;
              break;
            }
            case 49: {

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

              oneDosageUnit_ = s;
              break;
            }
            case 64: {

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

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

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

              frequency_ = s;
              break;
            }
            case 96: {

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

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

              usageDetail_ = s;
              break;
            }
            case 120: {

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

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

              remark_ = s;
              break;
            }
            case 144: {

              course_ = input.readInt32();
              break;
            }
            case 152: {

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

              quantity_ = input.readInt32();
              break;
            }
            case 168: {

              groups_ = input.readInt32();
              break;
            }
            case 176: {

              orderIndex_ = input.readInt32();
              break;
            }
            case 184: {

              combination_ = input.readBool();
              break;
            }
            case 194: {
              java.lang.String s = input.readStringRequireUtf8();

              producer_ = 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.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_PrescriptionDrugInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_PrescriptionDrugInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.class, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder.class);
    }

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

    public static final int PREID_FIELD_NUMBER = 2;
    private int preId_;
    /**
     * <code>int32 preId = 2;</code>
     */
    public int getPreId() {
      return preId_;
    }

    public static final int DRUGCODE_FIELD_NUMBER = 3;
    private volatile java.lang.Object drugCode_;
    /**
     * <code>string drugCode = 3;</code>
     */
    public java.lang.String getDrugCode() {
      java.lang.Object ref = drugCode_;
      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();
        drugCode_ = s;
        return s;
      }
    }
    /**
     * <code>string drugCode = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDrugCodeBytes() {
      java.lang.Object ref = drugCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DRUGNAME_FIELD_NUMBER = 4;
    private volatile java.lang.Object drugName_;
    /**
     * <code>string drugName = 4;</code>
     */
    public java.lang.String getDrugName() {
      java.lang.Object ref = drugName_;
      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();
        drugName_ = s;
        return s;
      }
    }
    /**
     * <code>string drugName = 4;</code>
     */
    public com.google.protobuf.ByteString
        getDrugNameBytes() {
      java.lang.Object ref = drugName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

    public static final int ONEDOSAGE_FIELD_NUMBER = 6;
    private double oneDosage_;
    /**
     * <code>double oneDosage = 6;</code>
     */
    public double getOneDosage() {
      return oneDosage_;
    }

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

    public static final int AMOUNT_FIELD_NUMBER = 8;
    private int amount_;
    /**
     * <code>int32 amount = 8;</code>
     */
    public int getAmount() {
      return amount_;
    }

    public static final int UNITS_FIELD_NUMBER = 9;
    private volatile java.lang.Object units_;
    /**
     * <code>string units = 9;</code>
     */
    public java.lang.String getUnits() {
      java.lang.Object ref = units_;
      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();
        units_ = s;
        return s;
      }
    }
    /**
     * <code>string units = 9;</code>
     */
    public com.google.protobuf.ByteString
        getUnitsBytes() {
      java.lang.Object ref = units_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        units_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

    public static final int FREQUENCY_FIELD_NUMBER = 11;
    private volatile java.lang.Object frequency_;
    /**
     * <code>string frequency = 11;</code>
     */
    public java.lang.String getFrequency() {
      java.lang.Object ref = frequency_;
      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();
        frequency_ = s;
        return s;
      }
    }
    /**
     * <code>string frequency = 11;</code>
     */
    public com.google.protobuf.ByteString
        getFrequencyBytes() {
      java.lang.Object ref = frequency_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        frequency_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FREQUENCYQTY_FIELD_NUMBER = 12;
    private int frequencyQty_;
    /**
     * <code>int32 frequencyQty = 12;</code>
     */
    public int getFrequencyQty() {
      return frequencyQty_;
    }

    public static final int USAGECODE_FIELD_NUMBER = 13;
    private volatile java.lang.Object usageCode_;
    /**
     * <code>string usageCode = 13;</code>
     */
    public java.lang.String getUsageCode() {
      java.lang.Object ref = usageCode_;
      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();
        usageCode_ = s;
        return s;
      }
    }
    /**
     * <code>string usageCode = 13;</code>
     */
    public com.google.protobuf.ByteString
        getUsageCodeBytes() {
      java.lang.Object ref = usageCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        usageCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int USAGEDETAIL_FIELD_NUMBER = 14;
    private volatile java.lang.Object usageDetail_;
    /**
     * <code>string usageDetail = 14;</code>
     */
    public java.lang.String getUsageDetail() {
      java.lang.Object ref = usageDetail_;
      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();
        usageDetail_ = s;
        return s;
      }
    }
    /**
     * <code>string usageDetail = 14;</code>
     */
    public com.google.protobuf.ByteString
        getUsageDetailBytes() {
      java.lang.Object ref = usageDetail_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        usageDetail_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PRICE_FIELD_NUMBER = 15;
    private int price_;
    /**
     * <code>int32 price = 15;</code>
     */
    public int getPrice() {
      return price_;
    }

    public static final int TOTAL_FIELD_NUMBER = 16;
    private int total_;
    /**
     * <code>int32 total = 16;</code>
     */
    public int getTotal() {
      return total_;
    }

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

    public static final int COURSE_FIELD_NUMBER = 18;
    private int course_;
    /**
     * <code>int32 course = 18;</code>
     */
    public int getCourse() {
      return course_;
    }

    public static final int DRUGID_FIELD_NUMBER = 19;
    private int drugId_;
    /**
     * <code>int32 drugId = 19;</code>
     */
    public int getDrugId() {
      return drugId_;
    }

    public static final int QUANTITY_FIELD_NUMBER = 20;
    private int quantity_;
    /**
     * <code>int32 quantity = 20;</code>
     */
    public int getQuantity() {
      return quantity_;
    }

    public static final int GROUPS_FIELD_NUMBER = 21;
    private int groups_;
    /**
     * <code>int32 groups = 21;</code>
     */
    public int getGroups() {
      return groups_;
    }

    public static final int ORDERINDEX_FIELD_NUMBER = 22;
    private int orderIndex_;
    /**
     * <code>int32 orderIndex = 22;</code>
     */
    public int getOrderIndex() {
      return orderIndex_;
    }

    public static final int COMBINATION_FIELD_NUMBER = 23;
    private boolean combination_;
    /**
     * <code>bool combination = 23;</code>
     */
    public boolean getCombination() {
      return combination_;
    }

    public static final int PRODUCER_FIELD_NUMBER = 24;
    private volatile java.lang.Object producer_;
    /**
     * <code>string producer = 24;</code>
     */
    public java.lang.String getProducer() {
      java.lang.Object ref = producer_;
      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();
        producer_ = s;
        return s;
      }
    }
    /**
     * <code>string producer = 24;</code>
     */
    public com.google.protobuf.ByteString
        getProducerBytes() {
      java.lang.Object ref = producer_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        producer_ = 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 (!getPreBizNoBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, preBizNo_);
      }
      if (preId_ != 0) {
        output.writeInt32(2, preId_);
      }
      if (!getDrugCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, drugCode_);
      }
      if (!getDrugNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, drugName_);
      }
      if (!getDrugSpecBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, drugSpec_);
      }
      if (oneDosage_ != 0D) {
        output.writeDouble(6, oneDosage_);
      }
      if (!getOneDosageUnitBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, oneDosageUnit_);
      }
      if (amount_ != 0) {
        output.writeInt32(8, amount_);
      }
      if (!getUnitsBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 9, units_);
      }
      if (!getFrequencyCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 10, frequencyCode_);
      }
      if (!getFrequencyBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 11, frequency_);
      }
      if (frequencyQty_ != 0) {
        output.writeInt32(12, frequencyQty_);
      }
      if (!getUsageCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 13, usageCode_);
      }
      if (!getUsageDetailBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 14, usageDetail_);
      }
      if (price_ != 0) {
        output.writeInt32(15, price_);
      }
      if (total_ != 0) {
        output.writeInt32(16, total_);
      }
      if (!getRemarkBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 17, remark_);
      }
      if (course_ != 0) {
        output.writeInt32(18, course_);
      }
      if (drugId_ != 0) {
        output.writeInt32(19, drugId_);
      }
      if (quantity_ != 0) {
        output.writeInt32(20, quantity_);
      }
      if (groups_ != 0) {
        output.writeInt32(21, groups_);
      }
      if (orderIndex_ != 0) {
        output.writeInt32(22, orderIndex_);
      }
      if (combination_ != false) {
        output.writeBool(23, combination_);
      }
      if (!getProducerBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 24, producer_);
      }
    }

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

      size = 0;
      if (!getPreBizNoBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, preBizNo_);
      }
      if (preId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, preId_);
      }
      if (!getDrugCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, drugCode_);
      }
      if (!getDrugNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, drugName_);
      }
      if (!getDrugSpecBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, drugSpec_);
      }
      if (oneDosage_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(6, oneDosage_);
      }
      if (!getOneDosageUnitBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, oneDosageUnit_);
      }
      if (amount_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(8, amount_);
      }
      if (!getUnitsBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, units_);
      }
      if (!getFrequencyCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, frequencyCode_);
      }
      if (!getFrequencyBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, frequency_);
      }
      if (frequencyQty_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(12, frequencyQty_);
      }
      if (!getUsageCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, usageCode_);
      }
      if (!getUsageDetailBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, usageDetail_);
      }
      if (price_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(15, price_);
      }
      if (total_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(16, total_);
      }
      if (!getRemarkBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, remark_);
      }
      if (course_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(18, course_);
      }
      if (drugId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(19, drugId_);
      }
      if (quantity_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(20, quantity_);
      }
      if (groups_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(21, groups_);
      }
      if (orderIndex_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(22, orderIndex_);
      }
      if (combination_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(23, combination_);
      }
      if (!getProducerBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, producer_);
      }
      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.third.taihe.PrescriptionInfo.PrescriptionDrugInfo)) {
        return super.equals(obj);
      }
      com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo other = (com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo) obj;

      boolean result = true;
      result = result && getPreBizNo()
          .equals(other.getPreBizNo());
      result = result && (getPreId()
          == other.getPreId());
      result = result && getDrugCode()
          .equals(other.getDrugCode());
      result = result && getDrugName()
          .equals(other.getDrugName());
      result = result && getDrugSpec()
          .equals(other.getDrugSpec());
      result = result && (
          java.lang.Double.doubleToLongBits(getOneDosage())
          == java.lang.Double.doubleToLongBits(
              other.getOneDosage()));
      result = result && getOneDosageUnit()
          .equals(other.getOneDosageUnit());
      result = result && (getAmount()
          == other.getAmount());
      result = result && getUnits()
          .equals(other.getUnits());
      result = result && getFrequencyCode()
          .equals(other.getFrequencyCode());
      result = result && getFrequency()
          .equals(other.getFrequency());
      result = result && (getFrequencyQty()
          == other.getFrequencyQty());
      result = result && getUsageCode()
          .equals(other.getUsageCode());
      result = result && getUsageDetail()
          .equals(other.getUsageDetail());
      result = result && (getPrice()
          == other.getPrice());
      result = result && (getTotal()
          == other.getTotal());
      result = result && getRemark()
          .equals(other.getRemark());
      result = result && (getCourse()
          == other.getCourse());
      result = result && (getDrugId()
          == other.getDrugId());
      result = result && (getQuantity()
          == other.getQuantity());
      result = result && (getGroups()
          == other.getGroups());
      result = result && (getOrderIndex()
          == other.getOrderIndex());
      result = result && (getCombination()
          == other.getCombination());
      result = result && getProducer()
          .equals(other.getProducer());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + PREBIZNO_FIELD_NUMBER;
      hash = (53 * hash) + getPreBizNo().hashCode();
      hash = (37 * hash) + PREID_FIELD_NUMBER;
      hash = (53 * hash) + getPreId();
      hash = (37 * hash) + DRUGCODE_FIELD_NUMBER;
      hash = (53 * hash) + getDrugCode().hashCode();
      hash = (37 * hash) + DRUGNAME_FIELD_NUMBER;
      hash = (53 * hash) + getDrugName().hashCode();
      hash = (37 * hash) + DRUGSPEC_FIELD_NUMBER;
      hash = (53 * hash) + getDrugSpec().hashCode();
      hash = (37 * hash) + ONEDOSAGE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getOneDosage()));
      hash = (37 * hash) + ONEDOSAGEUNIT_FIELD_NUMBER;
      hash = (53 * hash) + getOneDosageUnit().hashCode();
      hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
      hash = (53 * hash) + getAmount();
      hash = (37 * hash) + UNITS_FIELD_NUMBER;
      hash = (53 * hash) + getUnits().hashCode();
      hash = (37 * hash) + FREQUENCYCODE_FIELD_NUMBER;
      hash = (53 * hash) + getFrequencyCode().hashCode();
      hash = (37 * hash) + FREQUENCY_FIELD_NUMBER;
      hash = (53 * hash) + getFrequency().hashCode();
      hash = (37 * hash) + FREQUENCYQTY_FIELD_NUMBER;
      hash = (53 * hash) + getFrequencyQty();
      hash = (37 * hash) + USAGECODE_FIELD_NUMBER;
      hash = (53 * hash) + getUsageCode().hashCode();
      hash = (37 * hash) + USAGEDETAIL_FIELD_NUMBER;
      hash = (53 * hash) + getUsageDetail().hashCode();
      hash = (37 * hash) + PRICE_FIELD_NUMBER;
      hash = (53 * hash) + getPrice();
      hash = (37 * hash) + TOTAL_FIELD_NUMBER;
      hash = (53 * hash) + getTotal();
      hash = (37 * hash) + REMARK_FIELD_NUMBER;
      hash = (53 * hash) + getRemark().hashCode();
      hash = (37 * hash) + COURSE_FIELD_NUMBER;
      hash = (53 * hash) + getCourse();
      hash = (37 * hash) + DRUGID_FIELD_NUMBER;
      hash = (53 * hash) + getDrugId();
      hash = (37 * hash) + QUANTITY_FIELD_NUMBER;
      hash = (53 * hash) + getQuantity();
      hash = (37 * hash) + GROUPS_FIELD_NUMBER;
      hash = (53 * hash) + getGroups();
      hash = (37 * hash) + ORDERINDEX_FIELD_NUMBER;
      hash = (53 * hash) + getOrderIndex();
      hash = (37 * hash) + COMBINATION_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getCombination());
      hash = (37 * hash) + PRODUCER_FIELD_NUMBER;
      hash = (53 * hash) + getProducer().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_PrescriptionDrugInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.class, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder.class);
      }

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

        preId_ = 0;

        drugCode_ = "";

        drugName_ = "";

        drugSpec_ = "";

        oneDosage_ = 0D;

        oneDosageUnit_ = "";

        amount_ = 0;

        units_ = "";

        frequencyCode_ = "";

        frequency_ = "";

        frequencyQty_ = 0;

        usageCode_ = "";

        usageDetail_ = "";

        price_ = 0;

        total_ = 0;

        remark_ = "";

        course_ = 0;

        drugId_ = 0;

        quantity_ = 0;

        groups_ = 0;

        orderIndex_ = 0;

        combination_ = false;

        producer_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_PrescriptionDrugInfo_descriptor;
      }

      public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo getDefaultInstanceForType() {
        return com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance();
      }

      public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo build() {
        com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo buildPartial() {
        com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo result = new com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo(this);
        result.preBizNo_ = preBizNo_;
        result.preId_ = preId_;
        result.drugCode_ = drugCode_;
        result.drugName_ = drugName_;
        result.drugSpec_ = drugSpec_;
        result.oneDosage_ = oneDosage_;
        result.oneDosageUnit_ = oneDosageUnit_;
        result.amount_ = amount_;
        result.units_ = units_;
        result.frequencyCode_ = frequencyCode_;
        result.frequency_ = frequency_;
        result.frequencyQty_ = frequencyQty_;
        result.usageCode_ = usageCode_;
        result.usageDetail_ = usageDetail_;
        result.price_ = price_;
        result.total_ = total_;
        result.remark_ = remark_;
        result.course_ = course_;
        result.drugId_ = drugId_;
        result.quantity_ = quantity_;
        result.groups_ = groups_;
        result.orderIndex_ = orderIndex_;
        result.combination_ = combination_;
        result.producer_ = producer_;
        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.third.taihe.PrescriptionInfo.PrescriptionDrugInfo) {
          return mergeFrom((com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo other) {
        if (other == com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance()) return this;
        if (!other.getPreBizNo().isEmpty()) {
          preBizNo_ = other.preBizNo_;
          onChanged();
        }
        if (other.getPreId() != 0) {
          setPreId(other.getPreId());
        }
        if (!other.getDrugCode().isEmpty()) {
          drugCode_ = other.drugCode_;
          onChanged();
        }
        if (!other.getDrugName().isEmpty()) {
          drugName_ = other.drugName_;
          onChanged();
        }
        if (!other.getDrugSpec().isEmpty()) {
          drugSpec_ = other.drugSpec_;
          onChanged();
        }
        if (other.getOneDosage() != 0D) {
          setOneDosage(other.getOneDosage());
        }
        if (!other.getOneDosageUnit().isEmpty()) {
          oneDosageUnit_ = other.oneDosageUnit_;
          onChanged();
        }
        if (other.getAmount() != 0) {
          setAmount(other.getAmount());
        }
        if (!other.getUnits().isEmpty()) {
          units_ = other.units_;
          onChanged();
        }
        if (!other.getFrequencyCode().isEmpty()) {
          frequencyCode_ = other.frequencyCode_;
          onChanged();
        }
        if (!other.getFrequency().isEmpty()) {
          frequency_ = other.frequency_;
          onChanged();
        }
        if (other.getFrequencyQty() != 0) {
          setFrequencyQty(other.getFrequencyQty());
        }
        if (!other.getUsageCode().isEmpty()) {
          usageCode_ = other.usageCode_;
          onChanged();
        }
        if (!other.getUsageDetail().isEmpty()) {
          usageDetail_ = other.usageDetail_;
          onChanged();
        }
        if (other.getPrice() != 0) {
          setPrice(other.getPrice());
        }
        if (other.getTotal() != 0) {
          setTotal(other.getTotal());
        }
        if (!other.getRemark().isEmpty()) {
          remark_ = other.remark_;
          onChanged();
        }
        if (other.getCourse() != 0) {
          setCourse(other.getCourse());
        }
        if (other.getDrugId() != 0) {
          setDrugId(other.getDrugId());
        }
        if (other.getQuantity() != 0) {
          setQuantity(other.getQuantity());
        }
        if (other.getGroups() != 0) {
          setGroups(other.getGroups());
        }
        if (other.getOrderIndex() != 0) {
          setOrderIndex(other.getOrderIndex());
        }
        if (other.getCombination() != false) {
          setCombination(other.getCombination());
        }
        if (!other.getProducer().isEmpty()) {
          producer_ = other.producer_;
          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.third.taihe.PrescriptionInfo.PrescriptionDrugInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object preBizNo_ = "";
      /**
       * <code>string preBizNo = 1;</code>
       */
      public java.lang.String getPreBizNo() {
        java.lang.Object ref = preBizNo_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          preBizNo_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string preBizNo = 1;</code>
       */
      public com.google.protobuf.ByteString
          getPreBizNoBytes() {
        java.lang.Object ref = preBizNo_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          preBizNo_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string preBizNo = 1;</code>
       */
      public Builder setPreBizNo(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        preBizNo_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string preBizNo = 1;</code>
       */
      public Builder clearPreBizNo() {
        
        preBizNo_ = getDefaultInstance().getPreBizNo();
        onChanged();
        return this;
      }
      /**
       * <code>string preBizNo = 1;</code>
       */
      public Builder setPreBizNoBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        preBizNo_ = value;
        onChanged();
        return this;
      }

      private int preId_ ;
      /**
       * <code>int32 preId = 2;</code>
       */
      public int getPreId() {
        return preId_;
      }
      /**
       * <code>int32 preId = 2;</code>
       */
      public Builder setPreId(int value) {
        
        preId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 preId = 2;</code>
       */
      public Builder clearPreId() {
        
        preId_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object drugCode_ = "";
      /**
       * <code>string drugCode = 3;</code>
       */
      public java.lang.String getDrugCode() {
        java.lang.Object ref = drugCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string drugCode = 3;</code>
       */
      public com.google.protobuf.ByteString
          getDrugCodeBytes() {
        java.lang.Object ref = drugCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string drugCode = 3;</code>
       */
      public Builder setDrugCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string drugCode = 3;</code>
       */
      public Builder clearDrugCode() {
        
        drugCode_ = getDefaultInstance().getDrugCode();
        onChanged();
        return this;
      }
      /**
       * <code>string drugCode = 3;</code>
       */
      public Builder setDrugCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugCode_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object drugName_ = "";
      /**
       * <code>string drugName = 4;</code>
       */
      public java.lang.String getDrugName() {
        java.lang.Object ref = drugName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string drugName = 4;</code>
       */
      public com.google.protobuf.ByteString
          getDrugNameBytes() {
        java.lang.Object ref = drugName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string drugName = 4;</code>
       */
      public Builder setDrugName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugName_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string drugName = 4;</code>
       */
      public Builder clearDrugName() {
        
        drugName_ = getDefaultInstance().getDrugName();
        onChanged();
        return this;
      }
      /**
       * <code>string drugName = 4;</code>
       */
      public Builder setDrugNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugName_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object drugSpec_ = "";
      /**
       * <code>string drugSpec = 5;</code>
       */
      public java.lang.String getDrugSpec() {
        java.lang.Object ref = drugSpec_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          drugSpec_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string drugSpec = 5;</code>
       */
      public com.google.protobuf.ByteString
          getDrugSpecBytes() {
        java.lang.Object ref = drugSpec_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          drugSpec_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string drugSpec = 5;</code>
       */
      public Builder setDrugSpec(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        drugSpec_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string drugSpec = 5;</code>
       */
      public Builder clearDrugSpec() {
        
        drugSpec_ = getDefaultInstance().getDrugSpec();
        onChanged();
        return this;
      }
      /**
       * <code>string drugSpec = 5;</code>
       */
      public Builder setDrugSpecBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        drugSpec_ = value;
        onChanged();
        return this;
      }

      private double oneDosage_ ;
      /**
       * <code>double oneDosage = 6;</code>
       */
      public double getOneDosage() {
        return oneDosage_;
      }
      /**
       * <code>double oneDosage = 6;</code>
       */
      public Builder setOneDosage(double value) {
        
        oneDosage_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>double oneDosage = 6;</code>
       */
      public Builder clearOneDosage() {
        
        oneDosage_ = 0D;
        onChanged();
        return this;
      }

      private java.lang.Object oneDosageUnit_ = "";
      /**
       * <code>string oneDosageUnit = 7;</code>
       */
      public java.lang.String getOneDosageUnit() {
        java.lang.Object ref = oneDosageUnit_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          oneDosageUnit_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string oneDosageUnit = 7;</code>
       */
      public com.google.protobuf.ByteString
          getOneDosageUnitBytes() {
        java.lang.Object ref = oneDosageUnit_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          oneDosageUnit_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string oneDosageUnit = 7;</code>
       */
      public Builder setOneDosageUnit(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        oneDosageUnit_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string oneDosageUnit = 7;</code>
       */
      public Builder clearOneDosageUnit() {
        
        oneDosageUnit_ = getDefaultInstance().getOneDosageUnit();
        onChanged();
        return this;
      }
      /**
       * <code>string oneDosageUnit = 7;</code>
       */
      public Builder setOneDosageUnitBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        oneDosageUnit_ = value;
        onChanged();
        return this;
      }

      private int amount_ ;
      /**
       * <code>int32 amount = 8;</code>
       */
      public int getAmount() {
        return amount_;
      }
      /**
       * <code>int32 amount = 8;</code>
       */
      public Builder setAmount(int value) {
        
        amount_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 amount = 8;</code>
       */
      public Builder clearAmount() {
        
        amount_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object units_ = "";
      /**
       * <code>string units = 9;</code>
       */
      public java.lang.String getUnits() {
        java.lang.Object ref = units_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          units_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string units = 9;</code>
       */
      public com.google.protobuf.ByteString
          getUnitsBytes() {
        java.lang.Object ref = units_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          units_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string units = 9;</code>
       */
      public Builder setUnits(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        units_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string units = 9;</code>
       */
      public Builder clearUnits() {
        
        units_ = getDefaultInstance().getUnits();
        onChanged();
        return this;
      }
      /**
       * <code>string units = 9;</code>
       */
      public Builder setUnitsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        units_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object frequencyCode_ = "";
      /**
       * <code>string frequencyCode = 10;</code>
       */
      public java.lang.String getFrequencyCode() {
        java.lang.Object ref = frequencyCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          frequencyCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string frequencyCode = 10;</code>
       */
      public com.google.protobuf.ByteString
          getFrequencyCodeBytes() {
        java.lang.Object ref = frequencyCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          frequencyCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string frequencyCode = 10;</code>
       */
      public Builder setFrequencyCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        frequencyCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string frequencyCode = 10;</code>
       */
      public Builder clearFrequencyCode() {
        
        frequencyCode_ = getDefaultInstance().getFrequencyCode();
        onChanged();
        return this;
      }
      /**
       * <code>string frequencyCode = 10;</code>
       */
      public Builder setFrequencyCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        frequencyCode_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object frequency_ = "";
      /**
       * <code>string frequency = 11;</code>
       */
      public java.lang.String getFrequency() {
        java.lang.Object ref = frequency_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          frequency_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string frequency = 11;</code>
       */
      public com.google.protobuf.ByteString
          getFrequencyBytes() {
        java.lang.Object ref = frequency_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          frequency_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string frequency = 11;</code>
       */
      public Builder setFrequency(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        frequency_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string frequency = 11;</code>
       */
      public Builder clearFrequency() {
        
        frequency_ = getDefaultInstance().getFrequency();
        onChanged();
        return this;
      }
      /**
       * <code>string frequency = 11;</code>
       */
      public Builder setFrequencyBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        frequency_ = value;
        onChanged();
        return this;
      }

      private int frequencyQty_ ;
      /**
       * <code>int32 frequencyQty = 12;</code>
       */
      public int getFrequencyQty() {
        return frequencyQty_;
      }
      /**
       * <code>int32 frequencyQty = 12;</code>
       */
      public Builder setFrequencyQty(int value) {
        
        frequencyQty_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 frequencyQty = 12;</code>
       */
      public Builder clearFrequencyQty() {
        
        frequencyQty_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object usageCode_ = "";
      /**
       * <code>string usageCode = 13;</code>
       */
      public java.lang.String getUsageCode() {
        java.lang.Object ref = usageCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          usageCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string usageCode = 13;</code>
       */
      public com.google.protobuf.ByteString
          getUsageCodeBytes() {
        java.lang.Object ref = usageCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          usageCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string usageCode = 13;</code>
       */
      public Builder setUsageCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        usageCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string usageCode = 13;</code>
       */
      public Builder clearUsageCode() {
        
        usageCode_ = getDefaultInstance().getUsageCode();
        onChanged();
        return this;
      }
      /**
       * <code>string usageCode = 13;</code>
       */
      public Builder setUsageCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        usageCode_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object usageDetail_ = "";
      /**
       * <code>string usageDetail = 14;</code>
       */
      public java.lang.String getUsageDetail() {
        java.lang.Object ref = usageDetail_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          usageDetail_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string usageDetail = 14;</code>
       */
      public com.google.protobuf.ByteString
          getUsageDetailBytes() {
        java.lang.Object ref = usageDetail_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          usageDetail_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string usageDetail = 14;</code>
       */
      public Builder setUsageDetail(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        usageDetail_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string usageDetail = 14;</code>
       */
      public Builder clearUsageDetail() {
        
        usageDetail_ = getDefaultInstance().getUsageDetail();
        onChanged();
        return this;
      }
      /**
       * <code>string usageDetail = 14;</code>
       */
      public Builder setUsageDetailBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        usageDetail_ = value;
        onChanged();
        return this;
      }

      private int price_ ;
      /**
       * <code>int32 price = 15;</code>
       */
      public int getPrice() {
        return price_;
      }
      /**
       * <code>int32 price = 15;</code>
       */
      public Builder setPrice(int value) {
        
        price_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 price = 15;</code>
       */
      public Builder clearPrice() {
        
        price_ = 0;
        onChanged();
        return this;
      }

      private int total_ ;
      /**
       * <code>int32 total = 16;</code>
       */
      public int getTotal() {
        return total_;
      }
      /**
       * <code>int32 total = 16;</code>
       */
      public Builder setTotal(int value) {
        
        total_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 total = 16;</code>
       */
      public Builder clearTotal() {
        
        total_ = 0;
        onChanged();
        return this;
      }

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

      private int course_ ;
      /**
       * <code>int32 course = 18;</code>
       */
      public int getCourse() {
        return course_;
      }
      /**
       * <code>int32 course = 18;</code>
       */
      public Builder setCourse(int value) {
        
        course_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 course = 18;</code>
       */
      public Builder clearCourse() {
        
        course_ = 0;
        onChanged();
        return this;
      }

      private int drugId_ ;
      /**
       * <code>int32 drugId = 19;</code>
       */
      public int getDrugId() {
        return drugId_;
      }
      /**
       * <code>int32 drugId = 19;</code>
       */
      public Builder setDrugId(int value) {
        
        drugId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 drugId = 19;</code>
       */
      public Builder clearDrugId() {
        
        drugId_ = 0;
        onChanged();
        return this;
      }

      private int quantity_ ;
      /**
       * <code>int32 quantity = 20;</code>
       */
      public int getQuantity() {
        return quantity_;
      }
      /**
       * <code>int32 quantity = 20;</code>
       */
      public Builder setQuantity(int value) {
        
        quantity_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 quantity = 20;</code>
       */
      public Builder clearQuantity() {
        
        quantity_ = 0;
        onChanged();
        return this;
      }

      private int groups_ ;
      /**
       * <code>int32 groups = 21;</code>
       */
      public int getGroups() {
        return groups_;
      }
      /**
       * <code>int32 groups = 21;</code>
       */
      public Builder setGroups(int value) {
        
        groups_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 groups = 21;</code>
       */
      public Builder clearGroups() {
        
        groups_ = 0;
        onChanged();
        return this;
      }

      private int orderIndex_ ;
      /**
       * <code>int32 orderIndex = 22;</code>
       */
      public int getOrderIndex() {
        return orderIndex_;
      }
      /**
       * <code>int32 orderIndex = 22;</code>
       */
      public Builder setOrderIndex(int value) {
        
        orderIndex_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 orderIndex = 22;</code>
       */
      public Builder clearOrderIndex() {
        
        orderIndex_ = 0;
        onChanged();
        return this;
      }

      private boolean combination_ ;
      /**
       * <code>bool combination = 23;</code>
       */
      public boolean getCombination() {
        return combination_;
      }
      /**
       * <code>bool combination = 23;</code>
       */
      public Builder setCombination(boolean value) {
        
        combination_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool combination = 23;</code>
       */
      public Builder clearCombination() {
        
        combination_ = false;
        onChanged();
        return this;
      }

      private java.lang.Object producer_ = "";
      /**
       * <code>string producer = 24;</code>
       */
      public java.lang.String getProducer() {
        java.lang.Object ref = producer_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          producer_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string producer = 24;</code>
       */
      public com.google.protobuf.ByteString
          getProducerBytes() {
        java.lang.Object ref = producer_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          producer_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string producer = 24;</code>
       */
      public Builder setProducer(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        producer_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string producer = 24;</code>
       */
      public Builder clearProducer() {
        
        producer_ = getDefaultInstance().getProducer();
        onChanged();
        return this;
      }
      /**
       * <code>string producer = 24;</code>
       */
      public Builder setProducerBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        producer_ = 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.third.taihe.PrescriptionInfo.PrescriptionDrugInfo)
    }

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

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

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

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

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

    public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int bitField0_;
  public static final int PREBIZNO_FIELD_NUMBER = 1;
  private volatile java.lang.Object preBizNo_;
  /**
   * <code>string preBizNo = 1;</code>
   */
  public java.lang.String getPreBizNo() {
    java.lang.Object ref = preBizNo_;
    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();
      preBizNo_ = s;
      return s;
    }
  }
  /**
   * <code>string preBizNo = 1;</code>
   */
  public com.google.protobuf.ByteString
      getPreBizNoBytes() {
    java.lang.Object ref = preBizNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      preBizNo_ = 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 DOCTORCODE_FIELD_NUMBER = 3;
  private volatile java.lang.Object doctorCode_;
  /**
   * <code>string doctorCode = 3;</code>
   */
  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>
   */
  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 PATIENTNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 4;</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 = 4;</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 = 5;
  private volatile java.lang.Object patientAge_;
  /**
   * <code>string patientAge = 5;</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 = 5;</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 = 6;
  private volatile java.lang.Object patientSex_;
  /**
   * <code>string patientSex = 6;</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 = 6;</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 = 7;
  private volatile java.lang.Object patientNo_;
  /**
   * <code>string patientNo = 7;</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 = 7;</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 = 8;
  private volatile java.lang.Object diagnose_;
  /**
   * <code>string diagnose = 8;</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 = 8;</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 DEPT_FIELD_NUMBER = 9;
  private volatile java.lang.Object dept_;
  /**
   * <code>string dept = 9;</code>
   */
  public java.lang.String getDept() {
    java.lang.Object ref = dept_;
    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();
      dept_ = s;
      return s;
    }
  }
  /**
   * <code>string dept = 9;</code>
   */
  public com.google.protobuf.ByteString
      getDeptBytes() {
    java.lang.Object ref = dept_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dept_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

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

  public static final int PATIENTMOBILE_FIELD_NUMBER = 13;
  private volatile java.lang.Object patientMobile_;
  /**
   * <code>string patientMobile = 13;</code>
   */
  public java.lang.String getPatientMobile() {
    java.lang.Object ref = patientMobile_;
    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();
      patientMobile_ = s;
      return s;
    }
  }
  /**
   * <code>string patientMobile = 13;</code>
   */
  public com.google.protobuf.ByteString
      getPatientMobileBytes() {
    java.lang.Object ref = patientMobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientMobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ALLERGICHISTORY_FIELD_NUMBER = 14;
  private volatile java.lang.Object allergicHistory_;
  /**
   * <code>string allergicHistory = 14;</code>
   */
  public java.lang.String getAllergicHistory() {
    java.lang.Object ref = allergicHistory_;
    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();
      allergicHistory_ = s;
      return s;
    }
  }
  /**
   * <code>string allergicHistory = 14;</code>
   */
  public com.google.protobuf.ByteString
      getAllergicHistoryBytes() {
    java.lang.Object ref = allergicHistory_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      allergicHistory_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 15;
  private volatile java.lang.Object description_;
  /**
   * <code>string description = 15;</code>
   */
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    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();
      description_ = s;
      return s;
    }
  }
  /**
   * <code>string description = 15;</code>
   */
  public com.google.protobuf.ByteString
      getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORID_FIELD_NUMBER = 16;
  private int doctorId_;
  /**
   * <code>int32 doctorId = 16;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 17;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 17;</code>
   */
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int DELIVERYMETHOD_FIELD_NUMBER = 18;
  private int deliveryMethod_;
  /**
   * <code>int32 deliveryMethod = 18;</code>
   */
  public int getDeliveryMethod() {
    return deliveryMethod_;
  }

  public static final int ADDRESS_FIELD_NUMBER = 19;
  private volatile java.lang.Object address_;
  /**
   * <code>string address = 19;</code>
   */
  public java.lang.String getAddress() {
    java.lang.Object ref = address_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      address_ = s;
      return s;
    }
  }
  /**
   * <code>string address = 19;</code>
   */
  public com.google.protobuf.ByteString
      getAddressBytes() {
    java.lang.Object ref = address_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      address_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DRUGS_FIELD_NUMBER = 20;
  private java.util.List<com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo> drugs_;
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
   */
  public java.util.List<com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo> getDrugsList() {
    return drugs_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
   */
  public java.util.List<? extends com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> 
      getDrugsOrBuilderList() {
    return drugs_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
   */
  public int getDrugsCount() {
    return drugs_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
   */
  public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo getDrugs(int index) {
    return drugs_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
   */
  public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfoOrBuilder getDrugsOrBuilder(
      int index) {
    return drugs_.get(index);
  }

  public static final int CREATEONSTR_FIELD_NUMBER = 21;
  private volatile java.lang.Object createOnStr_;
  /**
   * <code>string createOnStr = 21;</code>
   */
  public java.lang.String getCreateOnStr() {
    java.lang.Object ref = createOnStr_;
    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();
      createOnStr_ = s;
      return s;
    }
  }
  /**
   * <code>string createOnStr = 21;</code>
   */
  public com.google.protobuf.ByteString
      getCreateOnStrBytes() {
    java.lang.Object ref = createOnStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      createOnStr_ = 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 (!getPreBizNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, preBizNo_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, doctorName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doctorCode_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patientAge_);
    }
    if (!getPatientSexBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patientSex_);
    }
    if (!getPatientNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patientNo_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, diagnose_);
    }
    if (!getDeptBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dept_);
    }
    if (createOn_ != 0L) {
      output.writeInt64(10, createOn_);
    }
    if (status_ != 0) {
      output.writeInt32(11, status_);
    }
    if (totalPrice_ != 0) {
      output.writeInt32(12, totalPrice_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, patientMobile_);
    }
    if (!getAllergicHistoryBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, allergicHistory_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, description_);
    }
    if (doctorId_ != 0) {
      output.writeInt32(16, doctorId_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(17, hospitalId_);
    }
    if (deliveryMethod_ != 0) {
      output.writeInt32(18, deliveryMethod_);
    }
    if (!getAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, address_);
    }
    for (int i = 0; i < drugs_.size(); i++) {
      output.writeMessage(20, drugs_.get(i));
    }
    if (!getCreateOnStrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, createOnStr_);
    }
  }

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

    size = 0;
    if (!getPreBizNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, preBizNo_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, doctorName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doctorCode_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patientAge_);
    }
    if (!getPatientSexBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patientSex_);
    }
    if (!getPatientNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patientNo_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, diagnose_);
    }
    if (!getDeptBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dept_);
    }
    if (createOn_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(10, createOn_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, status_);
    }
    if (totalPrice_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, totalPrice_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, patientMobile_);
    }
    if (!getAllergicHistoryBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, allergicHistory_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, description_);
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, doctorId_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(17, hospitalId_);
    }
    if (deliveryMethod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, deliveryMethod_);
    }
    if (!getAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, address_);
    }
    for (int i = 0; i < drugs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(20, drugs_.get(i));
    }
    if (!getCreateOnStrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, createOnStr_);
    }
    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.third.taihe.PrescriptionInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.PrescriptionInfo other = (com.ywt.gapi.third.taihe.PrescriptionInfo) obj;

    boolean result = true;
    result = result && getPreBizNo()
        .equals(other.getPreBizNo());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && getDoctorCode()
        .equals(other.getDoctorCode());
    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 && getDept()
        .equals(other.getDept());
    result = result && (getCreateOn()
        == other.getCreateOn());
    result = result && (getStatus()
        == other.getStatus());
    result = result && (getTotalPrice()
        == other.getTotalPrice());
    result = result && getPatientMobile()
        .equals(other.getPatientMobile());
    result = result && getAllergicHistory()
        .equals(other.getAllergicHistory());
    result = result && getDescription()
        .equals(other.getDescription());
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && (getDeliveryMethod()
        == other.getDeliveryMethod());
    result = result && getAddress()
        .equals(other.getAddress());
    result = result && getDrugsList()
        .equals(other.getDrugsList());
    result = result && getCreateOnStr()
        .equals(other.getCreateOnStr());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + PREBIZNO_FIELD_NUMBER;
    hash = (53 * hash) + getPreBizNo().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().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) + DEPT_FIELD_NUMBER;
    hash = (53 * hash) + getDept().hashCode();
    hash = (37 * hash) + CREATEON_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateOn());
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + TOTALPRICE_FIELD_NUMBER;
    hash = (53 * hash) + getTotalPrice();
    hash = (37 * hash) + PATIENTMOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientMobile().hashCode();
    hash = (37 * hash) + ALLERGICHISTORY_FIELD_NUMBER;
    hash = (53 * hash) + getAllergicHistory().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + DELIVERYMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getDeliveryMethod();
    hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    if (getDrugsCount() > 0) {
      hash = (37 * hash) + DRUGS_FIELD_NUMBER;
      hash = (53 * hash) + getDrugsList().hashCode();
    }
    hash = (37 * hash) + CREATEONSTR_FIELD_NUMBER;
    hash = (53 * hash) + getCreateOnStr().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.PrescriptionInfo.class, com.ywt.gapi.third.taihe.PrescriptionInfo.Builder.class);
    }

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

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

      doctorName_ = "";

      doctorCode_ = "";

      patientName_ = "";

      patientAge_ = "";

      patientSex_ = "";

      patientNo_ = "";

      diagnose_ = "";

      dept_ = "";

      createOn_ = 0L;

      status_ = 0;

      totalPrice_ = 0;

      patientMobile_ = "";

      allergicHistory_ = "";

      description_ = "";

      doctorId_ = 0;

      hospitalId_ = 0;

      deliveryMethod_ = 0;

      address_ = "";

      if (drugsBuilder_ == null) {
        drugs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00080000);
      } else {
        drugsBuilder_.clear();
      }
      createOnStr_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PrescriptionInfo_descriptor;
    }

    public com.ywt.gapi.third.taihe.PrescriptionInfo getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.PrescriptionInfo.getDefaultInstance();
    }

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

    public com.ywt.gapi.third.taihe.PrescriptionInfo buildPartial() {
      com.ywt.gapi.third.taihe.PrescriptionInfo result = new com.ywt.gapi.third.taihe.PrescriptionInfo(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.preBizNo_ = preBizNo_;
      result.doctorName_ = doctorName_;
      result.doctorCode_ = doctorCode_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.patientNo_ = patientNo_;
      result.diagnose_ = diagnose_;
      result.dept_ = dept_;
      result.createOn_ = createOn_;
      result.status_ = status_;
      result.totalPrice_ = totalPrice_;
      result.patientMobile_ = patientMobile_;
      result.allergicHistory_ = allergicHistory_;
      result.description_ = description_;
      result.doctorId_ = doctorId_;
      result.hospitalId_ = hospitalId_;
      result.deliveryMethod_ = deliveryMethod_;
      result.address_ = address_;
      if (drugsBuilder_ == null) {
        if (((bitField0_ & 0x00080000) == 0x00080000)) {
          drugs_ = java.util.Collections.unmodifiableList(drugs_);
          bitField0_ = (bitField0_ & ~0x00080000);
        }
        result.drugs_ = drugs_;
      } else {
        result.drugs_ = drugsBuilder_.build();
      }
      result.createOnStr_ = createOnStr_;
      result.bitField0_ = to_bitField0_;
      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.third.taihe.PrescriptionInfo) {
        return mergeFrom((com.ywt.gapi.third.taihe.PrescriptionInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.PrescriptionInfo other) {
      if (other == com.ywt.gapi.third.taihe.PrescriptionInfo.getDefaultInstance()) return this;
      if (!other.getPreBizNo().isEmpty()) {
        preBizNo_ = other.preBizNo_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        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.getDept().isEmpty()) {
        dept_ = other.dept_;
        onChanged();
      }
      if (other.getCreateOn() != 0L) {
        setCreateOn(other.getCreateOn());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getTotalPrice() != 0) {
        setTotalPrice(other.getTotalPrice());
      }
      if (!other.getPatientMobile().isEmpty()) {
        patientMobile_ = other.patientMobile_;
        onChanged();
      }
      if (!other.getAllergicHistory().isEmpty()) {
        allergicHistory_ = other.allergicHistory_;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        onChanged();
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (other.getDeliveryMethod() != 0) {
        setDeliveryMethod(other.getDeliveryMethod());
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (drugsBuilder_ == null) {
        if (!other.drugs_.isEmpty()) {
          if (drugs_.isEmpty()) {
            drugs_ = other.drugs_;
            bitField0_ = (bitField0_ & ~0x00080000);
          } else {
            ensureDrugsIsMutable();
            drugs_.addAll(other.drugs_);
          }
          onChanged();
        }
      } else {
        if (!other.drugs_.isEmpty()) {
          if (drugsBuilder_.isEmpty()) {
            drugsBuilder_.dispose();
            drugsBuilder_ = null;
            drugs_ = other.drugs_;
            bitField0_ = (bitField0_ & ~0x00080000);
            drugsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDrugsFieldBuilder() : null;
          } else {
            drugsBuilder_.addAllMessages(other.drugs_);
          }
        }
      }
      if (!other.getCreateOnStr().isEmpty()) {
        createOnStr_ = other.createOnStr_;
        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.third.taihe.PrescriptionInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.PrescriptionInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object preBizNo_ = "";
    /**
     * <code>string preBizNo = 1;</code>
     */
    public java.lang.String getPreBizNo() {
      java.lang.Object ref = preBizNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        preBizNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string preBizNo = 1;</code>
     */
    public com.google.protobuf.ByteString
        getPreBizNoBytes() {
      java.lang.Object ref = preBizNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        preBizNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string preBizNo = 1;</code>
     */
    public Builder setPreBizNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      preBizNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string preBizNo = 1;</code>
     */
    public Builder clearPreBizNo() {
      
      preBizNo_ = getDefaultInstance().getPreBizNo();
      onChanged();
      return this;
    }
    /**
     * <code>string preBizNo = 1;</code>
     */
    public Builder setPreBizNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      preBizNo_ = 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 doctorCode_ = "";
    /**
     * <code>string doctorCode = 3;</code>
     */
    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>
     */
    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>
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    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 patientName_ = "";
    /**
     * <code>string patientName = 4;</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 = 4;</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 = 4;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 4;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 4;</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 = 5;</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 = 5;</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 = 5;</code>
     */
    public Builder setPatientAge(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientAge = 5;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = getDefaultInstance().getPatientAge();
      onChanged();
      return this;
    }
    /**
     * <code>string patientAge = 5;</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 = 6;</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 = 6;</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 = 6;</code>
     */
    public Builder setPatientSex(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 6;</code>
     */
    public Builder clearPatientSex() {
      
      patientSex_ = getDefaultInstance().getPatientSex();
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 6;</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 = 7;</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 = 7;</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 = 7;</code>
     */
    public Builder setPatientNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientNo = 7;</code>
     */
    public Builder clearPatientNo() {
      
      patientNo_ = getDefaultInstance().getPatientNo();
      onChanged();
      return this;
    }
    /**
     * <code>string patientNo = 7;</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 = 8;</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 = 8;</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 = 8;</code>
     */
    public Builder setDiagnose(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnose_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string diagnose = 8;</code>
     */
    public Builder clearDiagnose() {
      
      diagnose_ = getDefaultInstance().getDiagnose();
      onChanged();
      return this;
    }
    /**
     * <code>string diagnose = 8;</code>
     */
    public Builder setDiagnoseBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnose_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dept_ = "";
    /**
     * <code>string dept = 9;</code>
     */
    public java.lang.String getDept() {
      java.lang.Object ref = dept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string dept = 9;</code>
     */
    public com.google.protobuf.ByteString
        getDeptBytes() {
      java.lang.Object ref = dept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string dept = 9;</code>
     */
    public Builder setDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      dept_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string dept = 9;</code>
     */
    public Builder clearDept() {
      
      dept_ = getDefaultInstance().getDept();
      onChanged();
      return this;
    }
    /**
     * <code>string dept = 9;</code>
     */
    public Builder setDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      dept_ = value;
      onChanged();
      return this;
    }

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

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

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

    private java.lang.Object patientMobile_ = "";
    /**
     * <code>string patientMobile = 13;</code>
     */
    public java.lang.String getPatientMobile() {
      java.lang.Object ref = patientMobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientMobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientMobile = 13;</code>
     */
    public com.google.protobuf.ByteString
        getPatientMobileBytes() {
      java.lang.Object ref = patientMobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientMobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientMobile = 13;</code>
     */
    public Builder setPatientMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientMobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientMobile = 13;</code>
     */
    public Builder clearPatientMobile() {
      
      patientMobile_ = getDefaultInstance().getPatientMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string patientMobile = 13;</code>
     */
    public Builder setPatientMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientMobile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object allergicHistory_ = "";
    /**
     * <code>string allergicHistory = 14;</code>
     */
    public java.lang.String getAllergicHistory() {
      java.lang.Object ref = allergicHistory_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        allergicHistory_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string allergicHistory = 14;</code>
     */
    public com.google.protobuf.ByteString
        getAllergicHistoryBytes() {
      java.lang.Object ref = allergicHistory_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        allergicHistory_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string allergicHistory = 14;</code>
     */
    public Builder setAllergicHistory(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      allergicHistory_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string allergicHistory = 14;</code>
     */
    public Builder clearAllergicHistory() {
      
      allergicHistory_ = getDefaultInstance().getAllergicHistory();
      onChanged();
      return this;
    }
    /**
     * <code>string allergicHistory = 14;</code>
     */
    public Builder setAllergicHistoryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      allergicHistory_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     * <code>string description = 15;</code>
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string description = 15;</code>
     */
    public com.google.protobuf.ByteString
        getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string description = 15;</code>
     */
    public Builder setDescription(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      description_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string description = 15;</code>
     */
    public Builder clearDescription() {
      
      description_ = getDefaultInstance().getDescription();
      onChanged();
      return this;
    }
    /**
     * <code>string description = 15;</code>
     */
    public Builder setDescriptionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      description_ = value;
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <code>int32 doctorId = 16;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <code>int32 doctorId = 16;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 doctorId = 16;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 17;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 17;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 17;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private int deliveryMethod_ ;
    /**
     * <code>int32 deliveryMethod = 18;</code>
     */
    public int getDeliveryMethod() {
      return deliveryMethod_;
    }
    /**
     * <code>int32 deliveryMethod = 18;</code>
     */
    public Builder setDeliveryMethod(int value) {
      
      deliveryMethod_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 deliveryMethod = 18;</code>
     */
    public Builder clearDeliveryMethod() {
      
      deliveryMethod_ = 0;
      onChanged();
      return this;
    }

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

    private java.util.List<com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo> drugs_ =
      java.util.Collections.emptyList();
    private void ensureDrugsIsMutable() {
      if (!((bitField0_ & 0x00080000) == 0x00080000)) {
        drugs_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo>(drugs_);
        bitField0_ |= 0x00080000;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> drugsBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo> getDrugsList() {
      if (drugsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(drugs_);
      } else {
        return drugsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public int getDrugsCount() {
      if (drugsBuilder_ == null) {
        return drugs_.size();
      } else {
        return drugsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo getDrugs(int index) {
      if (drugsBuilder_ == null) {
        return drugs_.get(index);
      } else {
        return drugsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder setDrugs(
        int index, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo value) {
      if (drugsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDrugsIsMutable();
        drugs_.set(index, value);
        onChanged();
      } else {
        drugsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder setDrugs(
        int index, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder builderForValue) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.set(index, builderForValue.build());
        onChanged();
      } else {
        drugsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder addDrugs(com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo value) {
      if (drugsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDrugsIsMutable();
        drugs_.add(value);
        onChanged();
      } else {
        drugsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder addDrugs(
        int index, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo value) {
      if (drugsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDrugsIsMutable();
        drugs_.add(index, value);
        onChanged();
      } else {
        drugsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder addDrugs(
        com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder builderForValue) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.add(builderForValue.build());
        onChanged();
      } else {
        drugsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder addDrugs(
        int index, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder builderForValue) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.add(index, builderForValue.build());
        onChanged();
      } else {
        drugsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder addAllDrugs(
        java.lang.Iterable<? extends com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo> values) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, drugs_);
        onChanged();
      } else {
        drugsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder clearDrugs() {
      if (drugsBuilder_ == null) {
        drugs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00080000);
        onChanged();
      } else {
        drugsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public Builder removeDrugs(int index) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.remove(index);
        onChanged();
      } else {
        drugsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder getDrugsBuilder(
        int index) {
      return getDrugsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfoOrBuilder getDrugsOrBuilder(
        int index) {
      if (drugsBuilder_ == null) {
        return drugs_.get(index);  } else {
        return drugsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> 
         getDrugsOrBuilderList() {
      if (drugsBuilder_ != null) {
        return drugsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(drugs_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder addDrugsBuilder() {
      return getDrugsFieldBuilder().addBuilder(
          com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder addDrugsBuilder(
        int index) {
      return getDrugsFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo drugs = 20;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder> 
         getDrugsBuilderList() {
      return getDrugsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfoOrBuilder> 
        getDrugsFieldBuilder() {
      if (drugsBuilder_ == null) {
        drugsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfo.Builder, com.ywt.gapi.third.taihe.PrescriptionInfo.PrescriptionDrugInfoOrBuilder>(
                drugs_,
                ((bitField0_ & 0x00080000) == 0x00080000),
                getParentForChildren(),
                isClean());
        drugs_ = null;
      }
      return drugsBuilder_;
    }

    private java.lang.Object createOnStr_ = "";
    /**
     * <code>string createOnStr = 21;</code>
     */
    public java.lang.String getCreateOnStr() {
      java.lang.Object ref = createOnStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        createOnStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string createOnStr = 21;</code>
     */
    public com.google.protobuf.ByteString
        getCreateOnStrBytes() {
      java.lang.Object ref = createOnStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        createOnStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string createOnStr = 21;</code>
     */
    public Builder setCreateOnStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      createOnStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string createOnStr = 21;</code>
     */
    public Builder clearCreateOnStr() {
      
      createOnStr_ = getDefaultInstance().getCreateOnStr();
      onChanged();
      return this;
    }
    /**
     * <code>string createOnStr = 21;</code>
     */
    public Builder setCreateOnStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      createOnStr_ = 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.third.taihe.PrescriptionInfo)
  }

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

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

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

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

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

  public com.ywt.gapi.third.taihe.PrescriptionInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

