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

package com.ywt.gapi.third.sinopharm;

/**
 * <pre>
 *推送给国控处方单
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.sinopharm.DpPrescription}
 */
public final class DpPrescription extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.sinopharm.DpPrescription)
    DpPrescriptionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DpPrescription.newBuilder() to construct.
  private DpPrescription(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private DpPrescription() {
    matchId_ = "";
    dpMatchId_ = "";
    pscriptdate_ = "";
    dpPscriptId_ = "";
    hoscode_ = "";
    hosName_ = "";
    deptName_ = "";
    docName_ = "";
    accPscriptId_ = "";
    accessVisitId_ = "";
    diagnosis_ = "";
    drugs_ = java.util.Collections.emptyList();
  }

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

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

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

            dpMatchId_ = s;
            break;
          }
          case 24: {

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

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

            dpPscriptId_ = s;
            break;
          }
          case 48: {

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

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

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

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

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

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

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

            diagnosis_ = s;
            break;
          }
          case 114: {
            com.ywt.gapi.third.sinopharm.PatInfo.Builder subBuilder = null;
            if (patInfo_ != null) {
              subBuilder = patInfo_.toBuilder();
            }
            patInfo_ = input.readMessage(com.ywt.gapi.third.sinopharm.PatInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(patInfo_);
              patInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 122: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              drugs_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.DrugInfo>();
              mutable_bitField0_ |= 0x00000001;
            }
            drugs_.add(
                input.readMessage(com.ywt.gapi.third.sinopharm.DrugInfo.parser(), extensionRegistry));
            break;
          }
          case 130: {
            com.ywt.gapi.third.sinopharm.ContactInfo.Builder subBuilder = null;
            if (contactInfo_ != null) {
              subBuilder = contactInfo_.toBuilder();
            }
            contactInfo_ = input.readMessage(com.ywt.gapi.third.sinopharm.ContactInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(contactInfo_);
              contactInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 138: {
            com.ywt.gapi.third.sinopharm.DrugStore.Builder subBuilder = null;
            if (drugStore_ != null) {
              subBuilder = drugStore_.toBuilder();
            }
            drugStore_ = input.readMessage(com.ywt.gapi.third.sinopharm.DrugStore.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(drugStore_);
              drugStore_ = subBuilder.buildPartial();
            }

            break;
          }
          case 144: {

            pscriptType_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        drugs_ = java.util.Collections.unmodifiableList(drugs_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DpPrescription_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DpPrescription_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.sinopharm.DpPrescription.class, com.ywt.gapi.third.sinopharm.DpPrescription.Builder.class);
  }

  public static final int MATCHID_FIELD_NUMBER = 1;
  private volatile java.lang.Object matchId_;
  /**
   * <pre>
   *匹配流水
   * </pre>
   *
   * <code>string matchId = 1;</code>
   * @return The matchId.
   */
  @java.lang.Override
  public java.lang.String getMatchId() {
    java.lang.Object ref = matchId_;
    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();
      matchId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *匹配流水
   * </pre>
   *
   * <code>string matchId = 1;</code>
   * @return The bytes for matchId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMatchIdBytes() {
    java.lang.Object ref = matchId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      matchId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DPMATCHID_FIELD_NUMBER = 2;
  private volatile java.lang.Object dpMatchId_;
  /**
   * <pre>
   *药商报价ID
   * </pre>
   *
   * <code>string dpMatchId = 2;</code>
   * @return The dpMatchId.
   */
  @java.lang.Override
  public java.lang.String getDpMatchId() {
    java.lang.Object ref = dpMatchId_;
    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();
      dpMatchId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *药商报价ID
   * </pre>
   *
   * <code>string dpMatchId = 2;</code>
   * @return The bytes for dpMatchId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDpMatchIdBytes() {
    java.lang.Object ref = dpMatchId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dpMatchId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PSCRIPTID_FIELD_NUMBER = 3;
  private int pscriptId_;
  /**
   * <pre>
   *处方单号 String? Long?
   * </pre>
   *
   * <code>int32 pscriptId = 3;</code>
   * @return The pscriptId.
   */
  @java.lang.Override
  public int getPscriptId() {
    return pscriptId_;
  }

  public static final int PSCRIPTDATE_FIELD_NUMBER = 4;
  private volatile java.lang.Object pscriptdate_;
  /**
   * <pre>
   *'2018-04-25 22:10:23', //处方开具日期
   * </pre>
   *
   * <code>string pscriptdate = 4;</code>
   * @return The pscriptdate.
   */
  @java.lang.Override
  public java.lang.String getPscriptdate() {
    java.lang.Object ref = pscriptdate_;
    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();
      pscriptdate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *'2018-04-25 22:10:23', //处方开具日期
   * </pre>
   *
   * <code>string pscriptdate = 4;</code>
   * @return The bytes for pscriptdate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPscriptdateBytes() {
    java.lang.Object ref = pscriptdate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pscriptdate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DPPSCRIPTID_FIELD_NUMBER = 5;
  private volatile java.lang.Object dpPscriptId_;
  /**
   * <pre>
   *药商处方映射ID(我方处方总ID，接口的非零售处方表的)
   * </pre>
   *
   * <code>string dpPscriptId = 5;</code>
   * @return The dpPscriptId.
   */
  @java.lang.Override
  public java.lang.String getDpPscriptId() {
    java.lang.Object ref = dpPscriptId_;
    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();
      dpPscriptId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *药商处方映射ID(我方处方总ID，接口的非零售处方表的)
   * </pre>
   *
   * <code>string dpPscriptId = 5;</code>
   * @return The bytes for dpPscriptId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDpPscriptIdBytes() {
    java.lang.Object ref = dpPscriptId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dpPscriptId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSID_FIELD_NUMBER = 6;
  private int hosId_;
  /**
   * <pre>
   *医院Id
   * </pre>
   *
   * <code>int32 hosId = 6;</code>
   * @return The hosId.
   */
  @java.lang.Override
  public int getHosId() {
    return hosId_;
  }

  public static final int HOSCODE_FIELD_NUMBER = 7;
  private volatile java.lang.Object hoscode_;
  /**
   * <pre>
   *医院代码
   * </pre>
   *
   * <code>string hoscode = 7;</code>
   * @return The hoscode.
   */
  @java.lang.Override
  public java.lang.String getHoscode() {
    java.lang.Object ref = hoscode_;
    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();
      hoscode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院代码
   * </pre>
   *
   * <code>string hoscode = 7;</code>
   * @return The bytes for hoscode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHoscodeBytes() {
    java.lang.Object ref = hoscode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hoscode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSNAME_FIELD_NUMBER = 8;
  private volatile java.lang.Object hosName_;
  /**
   * <pre>
   *医院名称
   * </pre>
   *
   * <code>string hosName = 8;</code>
   * @return The hosName.
   */
  @java.lang.Override
  public java.lang.String getHosName() {
    java.lang.Object ref = hosName_;
    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();
      hosName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院名称
   * </pre>
   *
   * <code>string hosName = 8;</code>
   * @return The bytes for hosName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHosNameBytes() {
    java.lang.Object ref = hosName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hosName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 9;
  private volatile java.lang.Object deptName_;
  /**
   * <pre>
   *门诊名称
   * </pre>
   *
   * <code>string deptName = 9;</code>
   * @return The deptName.
   */
  @java.lang.Override
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门诊名称
   * </pre>
   *
   * <code>string deptName = 9;</code>
   * @return The bytes for deptName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCNAME_FIELD_NUMBER = 10;
  private volatile java.lang.Object docName_;
  /**
   * <pre>
   *医生姓名
   * </pre>
   *
   * <code>string docName = 10;</code>
   * @return The docName.
   */
  @java.lang.Override
  public java.lang.String getDocName() {
    java.lang.Object ref = docName_;
    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();
      docName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生姓名
   * </pre>
   *
   * <code>string docName = 10;</code>
   * @return The bytes for docName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDocNameBytes() {
    java.lang.Object ref = docName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      docName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACCPSCRIPTID_FIELD_NUMBER = 11;
  private volatile java.lang.Object accPscriptId_;
  /**
   * <pre>
   *医院处方单号
   * </pre>
   *
   * <code>string accPscriptId = 11;</code>
   * @return The accPscriptId.
   */
  @java.lang.Override
  public java.lang.String getAccPscriptId() {
    java.lang.Object ref = accPscriptId_;
    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();
      accPscriptId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院处方单号
   * </pre>
   *
   * <code>string accPscriptId = 11;</code>
   * @return The bytes for accPscriptId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAccPscriptIdBytes() {
    java.lang.Object ref = accPscriptId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      accPscriptId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACCESSVISITID_FIELD_NUMBER = 12;
  private volatile java.lang.Object accessVisitId_;
  /**
   * <pre>
   *医院就诊流水(对应多个处方单)
   * </pre>
   *
   * <code>string accessVisitId = 12;</code>
   * @return The accessVisitId.
   */
  @java.lang.Override
  public java.lang.String getAccessVisitId() {
    java.lang.Object ref = accessVisitId_;
    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();
      accessVisitId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院就诊流水(对应多个处方单)
   * </pre>
   *
   * <code>string accessVisitId = 12;</code>
   * @return The bytes for accessVisitId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAccessVisitIdBytes() {
    java.lang.Object ref = accessVisitId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      accessVisitId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSIS_FIELD_NUMBER = 13;
  private volatile java.lang.Object diagnosis_;
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnosis = 13;</code>
   * @return The diagnosis.
   */
  @java.lang.Override
  public java.lang.String getDiagnosis() {
    java.lang.Object ref = diagnosis_;
    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();
      diagnosis_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnosis = 13;</code>
   * @return The bytes for diagnosis.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDiagnosisBytes() {
    java.lang.Object ref = diagnosis_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnosis_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATINFO_FIELD_NUMBER = 14;
  private com.ywt.gapi.third.sinopharm.PatInfo patInfo_;
  /**
   * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
   * @return Whether the patInfo field is set.
   */
  @java.lang.Override
  public boolean hasPatInfo() {
    return patInfo_ != null;
  }
  /**
   * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
   * @return The patInfo.
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.PatInfo getPatInfo() {
    return patInfo_ == null ? com.ywt.gapi.third.sinopharm.PatInfo.getDefaultInstance() : patInfo_;
  }
  /**
   * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.PatInfoOrBuilder getPatInfoOrBuilder() {
    return getPatInfo();
  }

  public static final int DRUGS_FIELD_NUMBER = 15;
  private java.util.List<com.ywt.gapi.third.sinopharm.DrugInfo> drugs_;
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.third.sinopharm.DrugInfo> getDrugsList() {
    return drugs_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.third.sinopharm.DrugInfoOrBuilder> 
      getDrugsOrBuilderList() {
    return drugs_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
   */
  @java.lang.Override
  public int getDrugsCount() {
    return drugs_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.DrugInfo getDrugs(int index) {
    return drugs_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.DrugInfoOrBuilder getDrugsOrBuilder(
      int index) {
    return drugs_.get(index);
  }

  public static final int CONTACTINFO_FIELD_NUMBER = 16;
  private com.ywt.gapi.third.sinopharm.ContactInfo contactInfo_;
  /**
   * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
   * @return Whether the contactInfo field is set.
   */
  @java.lang.Override
  public boolean hasContactInfo() {
    return contactInfo_ != null;
  }
  /**
   * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
   * @return The contactInfo.
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.ContactInfo getContactInfo() {
    return contactInfo_ == null ? com.ywt.gapi.third.sinopharm.ContactInfo.getDefaultInstance() : contactInfo_;
  }
  /**
   * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.ContactInfoOrBuilder getContactInfoOrBuilder() {
    return getContactInfo();
  }

  public static final int DRUGSTORE_FIELD_NUMBER = 17;
  private com.ywt.gapi.third.sinopharm.DrugStore drugStore_;
  /**
   * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
   * @return Whether the drugStore field is set.
   */
  @java.lang.Override
  public boolean hasDrugStore() {
    return drugStore_ != null;
  }
  /**
   * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
   * @return The drugStore.
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.DrugStore getDrugStore() {
    return drugStore_ == null ? com.ywt.gapi.third.sinopharm.DrugStore.getDefaultInstance() : drugStore_;
  }
  /**
   * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.DrugStoreOrBuilder getDrugStoreOrBuilder() {
    return getDrugStore();
  }

  public static final int PSCRIPTTYPE_FIELD_NUMBER = 18;
  private int pscriptType_;
  /**
   * <pre>
   *用于区别门店或是院内药房取药地点（ 0-院内取药，1-门店取药）
   * </pre>
   *
   * <code>int32 pscriptType = 18;</code>
   * @return The pscriptType.
   */
  @java.lang.Override
  public int getPscriptType() {
    return pscriptType_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, matchId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpMatchId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dpMatchId_);
    }
    if (pscriptId_ != 0) {
      output.writeInt32(3, pscriptId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscriptdate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pscriptdate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpPscriptId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dpPscriptId_);
    }
    if (hosId_ != 0) {
      output.writeInt32(6, hosId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hoscode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hoscode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hosName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hosName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, docName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accPscriptId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, accPscriptId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessVisitId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, accessVisitId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosis_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, diagnosis_);
    }
    if (patInfo_ != null) {
      output.writeMessage(14, getPatInfo());
    }
    for (int i = 0; i < drugs_.size(); i++) {
      output.writeMessage(15, drugs_.get(i));
    }
    if (contactInfo_ != null) {
      output.writeMessage(16, getContactInfo());
    }
    if (drugStore_ != null) {
      output.writeMessage(17, getDrugStore());
    }
    if (pscriptType_ != 0) {
      output.writeInt32(18, pscriptType_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, matchId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpMatchId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dpMatchId_);
    }
    if (pscriptId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, pscriptId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscriptdate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pscriptdate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpPscriptId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dpPscriptId_);
    }
    if (hosId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, hosId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hoscode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hoscode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hosName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hosName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, docName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accPscriptId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, accPscriptId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessVisitId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, accessVisitId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosis_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, diagnosis_);
    }
    if (patInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(14, getPatInfo());
    }
    for (int i = 0; i < drugs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(15, drugs_.get(i));
    }
    if (contactInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(16, getContactInfo());
    }
    if (drugStore_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(17, getDrugStore());
    }
    if (pscriptType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, pscriptType_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.third.sinopharm.DpPrescription)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.sinopharm.DpPrescription other = (com.ywt.gapi.third.sinopharm.DpPrescription) obj;

    if (!getMatchId()
        .equals(other.getMatchId())) return false;
    if (!getDpMatchId()
        .equals(other.getDpMatchId())) return false;
    if (getPscriptId()
        != other.getPscriptId()) return false;
    if (!getPscriptdate()
        .equals(other.getPscriptdate())) return false;
    if (!getDpPscriptId()
        .equals(other.getDpPscriptId())) return false;
    if (getHosId()
        != other.getHosId()) return false;
    if (!getHoscode()
        .equals(other.getHoscode())) return false;
    if (!getHosName()
        .equals(other.getHosName())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (!getDocName()
        .equals(other.getDocName())) return false;
    if (!getAccPscriptId()
        .equals(other.getAccPscriptId())) return false;
    if (!getAccessVisitId()
        .equals(other.getAccessVisitId())) return false;
    if (!getDiagnosis()
        .equals(other.getDiagnosis())) return false;
    if (hasPatInfo() != other.hasPatInfo()) return false;
    if (hasPatInfo()) {
      if (!getPatInfo()
          .equals(other.getPatInfo())) return false;
    }
    if (!getDrugsList()
        .equals(other.getDrugsList())) return false;
    if (hasContactInfo() != other.hasContactInfo()) return false;
    if (hasContactInfo()) {
      if (!getContactInfo()
          .equals(other.getContactInfo())) return false;
    }
    if (hasDrugStore() != other.hasDrugStore()) return false;
    if (hasDrugStore()) {
      if (!getDrugStore()
          .equals(other.getDrugStore())) return false;
    }
    if (getPscriptType()
        != other.getPscriptType()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + MATCHID_FIELD_NUMBER;
    hash = (53 * hash) + getMatchId().hashCode();
    hash = (37 * hash) + DPMATCHID_FIELD_NUMBER;
    hash = (53 * hash) + getDpMatchId().hashCode();
    hash = (37 * hash) + PSCRIPTID_FIELD_NUMBER;
    hash = (53 * hash) + getPscriptId();
    hash = (37 * hash) + PSCRIPTDATE_FIELD_NUMBER;
    hash = (53 * hash) + getPscriptdate().hashCode();
    hash = (37 * hash) + DPPSCRIPTID_FIELD_NUMBER;
    hash = (53 * hash) + getDpPscriptId().hashCode();
    hash = (37 * hash) + HOSID_FIELD_NUMBER;
    hash = (53 * hash) + getHosId();
    hash = (37 * hash) + HOSCODE_FIELD_NUMBER;
    hash = (53 * hash) + getHoscode().hashCode();
    hash = (37 * hash) + HOSNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHosName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDocName().hashCode();
    hash = (37 * hash) + ACCPSCRIPTID_FIELD_NUMBER;
    hash = (53 * hash) + getAccPscriptId().hashCode();
    hash = (37 * hash) + ACCESSVISITID_FIELD_NUMBER;
    hash = (53 * hash) + getAccessVisitId().hashCode();
    hash = (37 * hash) + DIAGNOSIS_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnosis().hashCode();
    if (hasPatInfo()) {
      hash = (37 * hash) + PATINFO_FIELD_NUMBER;
      hash = (53 * hash) + getPatInfo().hashCode();
    }
    if (getDrugsCount() > 0) {
      hash = (37 * hash) + DRUGS_FIELD_NUMBER;
      hash = (53 * hash) + getDrugsList().hashCode();
    }
    if (hasContactInfo()) {
      hash = (37 * hash) + CONTACTINFO_FIELD_NUMBER;
      hash = (53 * hash) + getContactInfo().hashCode();
    }
    if (hasDrugStore()) {
      hash = (37 * hash) + DRUGSTORE_FIELD_NUMBER;
      hash = (53 * hash) + getDrugStore().hashCode();
    }
    hash = (37 * hash) + PSCRIPTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPscriptType();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.third.sinopharm.DpPrescription prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *推送给国控处方单
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.sinopharm.DpPrescription}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.sinopharm.DpPrescription)
      com.ywt.gapi.third.sinopharm.DpPrescriptionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DpPrescription_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DpPrescription_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.sinopharm.DpPrescription.class, com.ywt.gapi.third.sinopharm.DpPrescription.Builder.class);
    }

    // Construct using com.ywt.gapi.third.sinopharm.DpPrescription.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();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      matchId_ = "";

      dpMatchId_ = "";

      pscriptId_ = 0;

      pscriptdate_ = "";

      dpPscriptId_ = "";

      hosId_ = 0;

      hoscode_ = "";

      hosName_ = "";

      deptName_ = "";

      docName_ = "";

      accPscriptId_ = "";

      accessVisitId_ = "";

      diagnosis_ = "";

      if (patInfoBuilder_ == null) {
        patInfo_ = null;
      } else {
        patInfo_ = null;
        patInfoBuilder_ = null;
      }
      if (drugsBuilder_ == null) {
        drugs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        drugsBuilder_.clear();
      }
      if (contactInfoBuilder_ == null) {
        contactInfo_ = null;
      } else {
        contactInfo_ = null;
        contactInfoBuilder_ = null;
      }
      if (drugStoreBuilder_ == null) {
        drugStore_ = null;
      } else {
        drugStore_ = null;
        drugStoreBuilder_ = null;
      }
      pscriptType_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DpPrescription_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.DpPrescription buildPartial() {
      com.ywt.gapi.third.sinopharm.DpPrescription result = new com.ywt.gapi.third.sinopharm.DpPrescription(this);
      int from_bitField0_ = bitField0_;
      result.matchId_ = matchId_;
      result.dpMatchId_ = dpMatchId_;
      result.pscriptId_ = pscriptId_;
      result.pscriptdate_ = pscriptdate_;
      result.dpPscriptId_ = dpPscriptId_;
      result.hosId_ = hosId_;
      result.hoscode_ = hoscode_;
      result.hosName_ = hosName_;
      result.deptName_ = deptName_;
      result.docName_ = docName_;
      result.accPscriptId_ = accPscriptId_;
      result.accessVisitId_ = accessVisitId_;
      result.diagnosis_ = diagnosis_;
      if (patInfoBuilder_ == null) {
        result.patInfo_ = patInfo_;
      } else {
        result.patInfo_ = patInfoBuilder_.build();
      }
      if (drugsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          drugs_ = java.util.Collections.unmodifiableList(drugs_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.drugs_ = drugs_;
      } else {
        result.drugs_ = drugsBuilder_.build();
      }
      if (contactInfoBuilder_ == null) {
        result.contactInfo_ = contactInfo_;
      } else {
        result.contactInfo_ = contactInfoBuilder_.build();
      }
      if (drugStoreBuilder_ == null) {
        result.drugStore_ = drugStore_;
      } else {
        result.drugStore_ = drugStoreBuilder_.build();
      }
      result.pscriptType_ = pscriptType_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.third.sinopharm.DpPrescription other) {
      if (other == com.ywt.gapi.third.sinopharm.DpPrescription.getDefaultInstance()) return this;
      if (!other.getMatchId().isEmpty()) {
        matchId_ = other.matchId_;
        onChanged();
      }
      if (!other.getDpMatchId().isEmpty()) {
        dpMatchId_ = other.dpMatchId_;
        onChanged();
      }
      if (other.getPscriptId() != 0) {
        setPscriptId(other.getPscriptId());
      }
      if (!other.getPscriptdate().isEmpty()) {
        pscriptdate_ = other.pscriptdate_;
        onChanged();
      }
      if (!other.getDpPscriptId().isEmpty()) {
        dpPscriptId_ = other.dpPscriptId_;
        onChanged();
      }
      if (other.getHosId() != 0) {
        setHosId(other.getHosId());
      }
      if (!other.getHoscode().isEmpty()) {
        hoscode_ = other.hoscode_;
        onChanged();
      }
      if (!other.getHosName().isEmpty()) {
        hosName_ = other.hosName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDocName().isEmpty()) {
        docName_ = other.docName_;
        onChanged();
      }
      if (!other.getAccPscriptId().isEmpty()) {
        accPscriptId_ = other.accPscriptId_;
        onChanged();
      }
      if (!other.getAccessVisitId().isEmpty()) {
        accessVisitId_ = other.accessVisitId_;
        onChanged();
      }
      if (!other.getDiagnosis().isEmpty()) {
        diagnosis_ = other.diagnosis_;
        onChanged();
      }
      if (other.hasPatInfo()) {
        mergePatInfo(other.getPatInfo());
      }
      if (drugsBuilder_ == null) {
        if (!other.drugs_.isEmpty()) {
          if (drugs_.isEmpty()) {
            drugs_ = other.drugs_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDrugsIsMutable();
            drugs_.addAll(other.drugs_);
          }
          onChanged();
        }
      } else {
        if (!other.drugs_.isEmpty()) {
          if (drugsBuilder_.isEmpty()) {
            drugsBuilder_.dispose();
            drugsBuilder_ = null;
            drugs_ = other.drugs_;
            bitField0_ = (bitField0_ & ~0x00000001);
            drugsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDrugsFieldBuilder() : null;
          } else {
            drugsBuilder_.addAllMessages(other.drugs_);
          }
        }
      }
      if (other.hasContactInfo()) {
        mergeContactInfo(other.getContactInfo());
      }
      if (other.hasDrugStore()) {
        mergeDrugStore(other.getDrugStore());
      }
      if (other.getPscriptType() != 0) {
        setPscriptType(other.getPscriptType());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private java.lang.Object matchId_ = "";
    /**
     * <pre>
     *匹配流水
     * </pre>
     *
     * <code>string matchId = 1;</code>
     * @return The matchId.
     */
    public java.lang.String getMatchId() {
      java.lang.Object ref = matchId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        matchId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *匹配流水
     * </pre>
     *
     * <code>string matchId = 1;</code>
     * @return The bytes for matchId.
     */
    public com.google.protobuf.ByteString
        getMatchIdBytes() {
      java.lang.Object ref = matchId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        matchId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *匹配流水
     * </pre>
     *
     * <code>string matchId = 1;</code>
     * @param value The matchId to set.
     * @return This builder for chaining.
     */
    public Builder setMatchId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      matchId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *匹配流水
     * </pre>
     *
     * <code>string matchId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearMatchId() {
      
      matchId_ = getDefaultInstance().getMatchId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *匹配流水
     * </pre>
     *
     * <code>string matchId = 1;</code>
     * @param value The bytes for matchId to set.
     * @return This builder for chaining.
     */
    public Builder setMatchIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      matchId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dpMatchId_ = "";
    /**
     * <pre>
     *药商报价ID
     * </pre>
     *
     * <code>string dpMatchId = 2;</code>
     * @return The dpMatchId.
     */
    public java.lang.String getDpMatchId() {
      java.lang.Object ref = dpMatchId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dpMatchId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *药商报价ID
     * </pre>
     *
     * <code>string dpMatchId = 2;</code>
     * @return The bytes for dpMatchId.
     */
    public com.google.protobuf.ByteString
        getDpMatchIdBytes() {
      java.lang.Object ref = dpMatchId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dpMatchId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *药商报价ID
     * </pre>
     *
     * <code>string dpMatchId = 2;</code>
     * @param value The dpMatchId to set.
     * @return This builder for chaining.
     */
    public Builder setDpMatchId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      dpMatchId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药商报价ID
     * </pre>
     *
     * <code>string dpMatchId = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearDpMatchId() {
      
      dpMatchId_ = getDefaultInstance().getDpMatchId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药商报价ID
     * </pre>
     *
     * <code>string dpMatchId = 2;</code>
     * @param value The bytes for dpMatchId to set.
     * @return This builder for chaining.
     */
    public Builder setDpMatchIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      dpMatchId_ = value;
      onChanged();
      return this;
    }

    private int pscriptId_ ;
    /**
     * <pre>
     *处方单号 String? Long?
     * </pre>
     *
     * <code>int32 pscriptId = 3;</code>
     * @return The pscriptId.
     */
    @java.lang.Override
    public int getPscriptId() {
      return pscriptId_;
    }
    /**
     * <pre>
     *处方单号 String? Long?
     * </pre>
     *
     * <code>int32 pscriptId = 3;</code>
     * @param value The pscriptId to set.
     * @return This builder for chaining.
     */
    public Builder setPscriptId(int value) {
      
      pscriptId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方单号 String? Long?
     * </pre>
     *
     * <code>int32 pscriptId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearPscriptId() {
      
      pscriptId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object pscriptdate_ = "";
    /**
     * <pre>
     *'2018-04-25 22:10:23', //处方开具日期
     * </pre>
     *
     * <code>string pscriptdate = 4;</code>
     * @return The pscriptdate.
     */
    public java.lang.String getPscriptdate() {
      java.lang.Object ref = pscriptdate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pscriptdate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *'2018-04-25 22:10:23', //处方开具日期
     * </pre>
     *
     * <code>string pscriptdate = 4;</code>
     * @return The bytes for pscriptdate.
     */
    public com.google.protobuf.ByteString
        getPscriptdateBytes() {
      java.lang.Object ref = pscriptdate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pscriptdate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *'2018-04-25 22:10:23', //处方开具日期
     * </pre>
     *
     * <code>string pscriptdate = 4;</code>
     * @param value The pscriptdate to set.
     * @return This builder for chaining.
     */
    public Builder setPscriptdate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pscriptdate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *'2018-04-25 22:10:23', //处方开具日期
     * </pre>
     *
     * <code>string pscriptdate = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearPscriptdate() {
      
      pscriptdate_ = getDefaultInstance().getPscriptdate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *'2018-04-25 22:10:23', //处方开具日期
     * </pre>
     *
     * <code>string pscriptdate = 4;</code>
     * @param value The bytes for pscriptdate to set.
     * @return This builder for chaining.
     */
    public Builder setPscriptdateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pscriptdate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dpPscriptId_ = "";
    /**
     * <pre>
     *药商处方映射ID(我方处方总ID，接口的非零售处方表的)
     * </pre>
     *
     * <code>string dpPscriptId = 5;</code>
     * @return The dpPscriptId.
     */
    public java.lang.String getDpPscriptId() {
      java.lang.Object ref = dpPscriptId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dpPscriptId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *药商处方映射ID(我方处方总ID，接口的非零售处方表的)
     * </pre>
     *
     * <code>string dpPscriptId = 5;</code>
     * @return The bytes for dpPscriptId.
     */
    public com.google.protobuf.ByteString
        getDpPscriptIdBytes() {
      java.lang.Object ref = dpPscriptId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dpPscriptId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *药商处方映射ID(我方处方总ID，接口的非零售处方表的)
     * </pre>
     *
     * <code>string dpPscriptId = 5;</code>
     * @param value The dpPscriptId to set.
     * @return This builder for chaining.
     */
    public Builder setDpPscriptId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      dpPscriptId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药商处方映射ID(我方处方总ID，接口的非零售处方表的)
     * </pre>
     *
     * <code>string dpPscriptId = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDpPscriptId() {
      
      dpPscriptId_ = getDefaultInstance().getDpPscriptId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药商处方映射ID(我方处方总ID，接口的非零售处方表的)
     * </pre>
     *
     * <code>string dpPscriptId = 5;</code>
     * @param value The bytes for dpPscriptId to set.
     * @return This builder for chaining.
     */
    public Builder setDpPscriptIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      dpPscriptId_ = value;
      onChanged();
      return this;
    }

    private int hosId_ ;
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hosId = 6;</code>
     * @return The hosId.
     */
    @java.lang.Override
    public int getHosId() {
      return hosId_;
    }
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hosId = 6;</code>
     * @param value The hosId to set.
     * @return This builder for chaining.
     */
    public Builder setHosId(int value) {
      
      hosId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hosId = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearHosId() {
      
      hosId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hoscode_ = "";
    /**
     * <pre>
     *医院代码
     * </pre>
     *
     * <code>string hoscode = 7;</code>
     * @return The hoscode.
     */
    public java.lang.String getHoscode() {
      java.lang.Object ref = hoscode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hoscode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院代码
     * </pre>
     *
     * <code>string hoscode = 7;</code>
     * @return The bytes for hoscode.
     */
    public com.google.protobuf.ByteString
        getHoscodeBytes() {
      java.lang.Object ref = hoscode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hoscode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院代码
     * </pre>
     *
     * <code>string hoscode = 7;</code>
     * @param value The hoscode to set.
     * @return This builder for chaining.
     */
    public Builder setHoscode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hoscode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院代码
     * </pre>
     *
     * <code>string hoscode = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearHoscode() {
      
      hoscode_ = getDefaultInstance().getHoscode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院代码
     * </pre>
     *
     * <code>string hoscode = 7;</code>
     * @param value The bytes for hoscode to set.
     * @return This builder for chaining.
     */
    public Builder setHoscodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hoscode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hosName_ = "";
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hosName = 8;</code>
     * @return The hosName.
     */
    public java.lang.String getHosName() {
      java.lang.Object ref = hosName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hosName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hosName = 8;</code>
     * @return The bytes for hosName.
     */
    public com.google.protobuf.ByteString
        getHosNameBytes() {
      java.lang.Object ref = hosName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hosName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hosName = 8;</code>
     * @param value The hosName to set.
     * @return This builder for chaining.
     */
    public Builder setHosName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hosName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hosName = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearHosName() {
      
      hosName_ = getDefaultInstance().getHosName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hosName = 8;</code>
     * @param value The bytes for hosName to set.
     * @return This builder for chaining.
     */
    public Builder setHosNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hosName_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object docName_ = "";
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string docName = 10;</code>
     * @return The docName.
     */
    public java.lang.String getDocName() {
      java.lang.Object ref = docName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        docName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string docName = 10;</code>
     * @return The bytes for docName.
     */
    public com.google.protobuf.ByteString
        getDocNameBytes() {
      java.lang.Object ref = docName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        docName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string docName = 10;</code>
     * @param value The docName to set.
     * @return This builder for chaining.
     */
    public Builder setDocName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      docName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string docName = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearDocName() {
      
      docName_ = getDefaultInstance().getDocName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string docName = 10;</code>
     * @param value The bytes for docName to set.
     * @return This builder for chaining.
     */
    public Builder setDocNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      docName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object accPscriptId_ = "";
    /**
     * <pre>
     *医院处方单号
     * </pre>
     *
     * <code>string accPscriptId = 11;</code>
     * @return The accPscriptId.
     */
    public java.lang.String getAccPscriptId() {
      java.lang.Object ref = accPscriptId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        accPscriptId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院处方单号
     * </pre>
     *
     * <code>string accPscriptId = 11;</code>
     * @return The bytes for accPscriptId.
     */
    public com.google.protobuf.ByteString
        getAccPscriptIdBytes() {
      java.lang.Object ref = accPscriptId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        accPscriptId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院处方单号
     * </pre>
     *
     * <code>string accPscriptId = 11;</code>
     * @param value The accPscriptId to set.
     * @return This builder for chaining.
     */
    public Builder setAccPscriptId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      accPscriptId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院处方单号
     * </pre>
     *
     * <code>string accPscriptId = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearAccPscriptId() {
      
      accPscriptId_ = getDefaultInstance().getAccPscriptId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院处方单号
     * </pre>
     *
     * <code>string accPscriptId = 11;</code>
     * @param value The bytes for accPscriptId to set.
     * @return This builder for chaining.
     */
    public Builder setAccPscriptIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      accPscriptId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object accessVisitId_ = "";
    /**
     * <pre>
     *医院就诊流水(对应多个处方单)
     * </pre>
     *
     * <code>string accessVisitId = 12;</code>
     * @return The accessVisitId.
     */
    public java.lang.String getAccessVisitId() {
      java.lang.Object ref = accessVisitId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        accessVisitId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院就诊流水(对应多个处方单)
     * </pre>
     *
     * <code>string accessVisitId = 12;</code>
     * @return The bytes for accessVisitId.
     */
    public com.google.protobuf.ByteString
        getAccessVisitIdBytes() {
      java.lang.Object ref = accessVisitId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        accessVisitId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院就诊流水(对应多个处方单)
     * </pre>
     *
     * <code>string accessVisitId = 12;</code>
     * @param value The accessVisitId to set.
     * @return This builder for chaining.
     */
    public Builder setAccessVisitId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      accessVisitId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院就诊流水(对应多个处方单)
     * </pre>
     *
     * <code>string accessVisitId = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearAccessVisitId() {
      
      accessVisitId_ = getDefaultInstance().getAccessVisitId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院就诊流水(对应多个处方单)
     * </pre>
     *
     * <code>string accessVisitId = 12;</code>
     * @param value The bytes for accessVisitId to set.
     * @return This builder for chaining.
     */
    public Builder setAccessVisitIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      accessVisitId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnosis_ = "";
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 13;</code>
     * @return The diagnosis.
     */
    public java.lang.String getDiagnosis() {
      java.lang.Object ref = diagnosis_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnosis_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 13;</code>
     * @return The bytes for diagnosis.
     */
    public com.google.protobuf.ByteString
        getDiagnosisBytes() {
      java.lang.Object ref = diagnosis_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnosis_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 13;</code>
     * @param value The diagnosis to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnosis(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnosis_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearDiagnosis() {
      
      diagnosis_ = getDefaultInstance().getDiagnosis();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 13;</code>
     * @param value The bytes for diagnosis to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnosisBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnosis_ = value;
      onChanged();
      return this;
    }

    private com.ywt.gapi.third.sinopharm.PatInfo patInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.PatInfo, com.ywt.gapi.third.sinopharm.PatInfo.Builder, com.ywt.gapi.third.sinopharm.PatInfoOrBuilder> patInfoBuilder_;
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     * @return Whether the patInfo field is set.
     */
    public boolean hasPatInfo() {
      return patInfoBuilder_ != null || patInfo_ != null;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     * @return The patInfo.
     */
    public com.ywt.gapi.third.sinopharm.PatInfo getPatInfo() {
      if (patInfoBuilder_ == null) {
        return patInfo_ == null ? com.ywt.gapi.third.sinopharm.PatInfo.getDefaultInstance() : patInfo_;
      } else {
        return patInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     */
    public Builder setPatInfo(com.ywt.gapi.third.sinopharm.PatInfo value) {
      if (patInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        patInfo_ = value;
        onChanged();
      } else {
        patInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     */
    public Builder setPatInfo(
        com.ywt.gapi.third.sinopharm.PatInfo.Builder builderForValue) {
      if (patInfoBuilder_ == null) {
        patInfo_ = builderForValue.build();
        onChanged();
      } else {
        patInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     */
    public Builder mergePatInfo(com.ywt.gapi.third.sinopharm.PatInfo value) {
      if (patInfoBuilder_ == null) {
        if (patInfo_ != null) {
          patInfo_ =
            com.ywt.gapi.third.sinopharm.PatInfo.newBuilder(patInfo_).mergeFrom(value).buildPartial();
        } else {
          patInfo_ = value;
        }
        onChanged();
      } else {
        patInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     */
    public Builder clearPatInfo() {
      if (patInfoBuilder_ == null) {
        patInfo_ = null;
        onChanged();
      } else {
        patInfo_ = null;
        patInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     */
    public com.ywt.gapi.third.sinopharm.PatInfo.Builder getPatInfoBuilder() {
      
      onChanged();
      return getPatInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     */
    public com.ywt.gapi.third.sinopharm.PatInfoOrBuilder getPatInfoOrBuilder() {
      if (patInfoBuilder_ != null) {
        return patInfoBuilder_.getMessageOrBuilder();
      } else {
        return patInfo_ == null ?
            com.ywt.gapi.third.sinopharm.PatInfo.getDefaultInstance() : patInfo_;
      }
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.PatInfo patInfo = 14;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.PatInfo, com.ywt.gapi.third.sinopharm.PatInfo.Builder, com.ywt.gapi.third.sinopharm.PatInfoOrBuilder> 
        getPatInfoFieldBuilder() {
      if (patInfoBuilder_ == null) {
        patInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ywt.gapi.third.sinopharm.PatInfo, com.ywt.gapi.third.sinopharm.PatInfo.Builder, com.ywt.gapi.third.sinopharm.PatInfoOrBuilder>(
                getPatInfo(),
                getParentForChildren(),
                isClean());
        patInfo_ = null;
      }
      return patInfoBuilder_;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.DrugInfo, com.ywt.gapi.third.sinopharm.DrugInfo.Builder, com.ywt.gapi.third.sinopharm.DrugInfoOrBuilder> drugsBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public java.util.List<com.ywt.gapi.third.sinopharm.DrugInfo> getDrugsList() {
      if (drugsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(drugs_);
      } else {
        return drugsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public int getDrugsCount() {
      if (drugsBuilder_ == null) {
        return drugs_.size();
      } else {
        return drugsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugInfo getDrugs(int index) {
      if (drugsBuilder_ == null) {
        return drugs_.get(index);
      } else {
        return drugsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder setDrugs(
        int index, com.ywt.gapi.third.sinopharm.DrugInfo 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.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder setDrugs(
        int index, com.ywt.gapi.third.sinopharm.DrugInfo.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.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder addDrugs(com.ywt.gapi.third.sinopharm.DrugInfo 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.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder addDrugs(
        int index, com.ywt.gapi.third.sinopharm.DrugInfo 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.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder addDrugs(
        com.ywt.gapi.third.sinopharm.DrugInfo.Builder builderForValue) {
      if (drugsBuilder_ == null) {
        ensureDrugsIsMutable();
        drugs_.add(builderForValue.build());
        onChanged();
      } else {
        drugsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder addDrugs(
        int index, com.ywt.gapi.third.sinopharm.DrugInfo.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.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder addAllDrugs(
        java.lang.Iterable<? extends com.ywt.gapi.third.sinopharm.DrugInfo> 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.sinopharm.DrugInfo drugs = 15;</code>
     */
    public Builder clearDrugs() {
      if (drugsBuilder_ == null) {
        drugs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        drugsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</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.sinopharm.DrugInfo drugs = 15;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugInfo.Builder getDrugsBuilder(
        int index) {
      return getDrugsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugInfoOrBuilder getDrugsOrBuilder(
        int index) {
      if (drugsBuilder_ == null) {
        return drugs_.get(index);  } else {
        return drugsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.sinopharm.DrugInfoOrBuilder> 
         getDrugsOrBuilderList() {
      if (drugsBuilder_ != null) {
        return drugsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(drugs_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugInfo.Builder addDrugsBuilder() {
      return getDrugsFieldBuilder().addBuilder(
          com.ywt.gapi.third.sinopharm.DrugInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugInfo.Builder addDrugsBuilder(
        int index) {
      return getDrugsFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.sinopharm.DrugInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugInfo drugs = 15;</code>
     */
    public java.util.List<com.ywt.gapi.third.sinopharm.DrugInfo.Builder> 
         getDrugsBuilderList() {
      return getDrugsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.DrugInfo, com.ywt.gapi.third.sinopharm.DrugInfo.Builder, com.ywt.gapi.third.sinopharm.DrugInfoOrBuilder> 
        getDrugsFieldBuilder() {
      if (drugsBuilder_ == null) {
        drugsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.sinopharm.DrugInfo, com.ywt.gapi.third.sinopharm.DrugInfo.Builder, com.ywt.gapi.third.sinopharm.DrugInfoOrBuilder>(
                drugs_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        drugs_ = null;
      }
      return drugsBuilder_;
    }

    private com.ywt.gapi.third.sinopharm.ContactInfo contactInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.ContactInfo, com.ywt.gapi.third.sinopharm.ContactInfo.Builder, com.ywt.gapi.third.sinopharm.ContactInfoOrBuilder> contactInfoBuilder_;
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     * @return Whether the contactInfo field is set.
     */
    public boolean hasContactInfo() {
      return contactInfoBuilder_ != null || contactInfo_ != null;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     * @return The contactInfo.
     */
    public com.ywt.gapi.third.sinopharm.ContactInfo getContactInfo() {
      if (contactInfoBuilder_ == null) {
        return contactInfo_ == null ? com.ywt.gapi.third.sinopharm.ContactInfo.getDefaultInstance() : contactInfo_;
      } else {
        return contactInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     */
    public Builder setContactInfo(com.ywt.gapi.third.sinopharm.ContactInfo value) {
      if (contactInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        contactInfo_ = value;
        onChanged();
      } else {
        contactInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     */
    public Builder setContactInfo(
        com.ywt.gapi.third.sinopharm.ContactInfo.Builder builderForValue) {
      if (contactInfoBuilder_ == null) {
        contactInfo_ = builderForValue.build();
        onChanged();
      } else {
        contactInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     */
    public Builder mergeContactInfo(com.ywt.gapi.third.sinopharm.ContactInfo value) {
      if (contactInfoBuilder_ == null) {
        if (contactInfo_ != null) {
          contactInfo_ =
            com.ywt.gapi.third.sinopharm.ContactInfo.newBuilder(contactInfo_).mergeFrom(value).buildPartial();
        } else {
          contactInfo_ = value;
        }
        onChanged();
      } else {
        contactInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     */
    public Builder clearContactInfo() {
      if (contactInfoBuilder_ == null) {
        contactInfo_ = null;
        onChanged();
      } else {
        contactInfo_ = null;
        contactInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     */
    public com.ywt.gapi.third.sinopharm.ContactInfo.Builder getContactInfoBuilder() {
      
      onChanged();
      return getContactInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     */
    public com.ywt.gapi.third.sinopharm.ContactInfoOrBuilder getContactInfoOrBuilder() {
      if (contactInfoBuilder_ != null) {
        return contactInfoBuilder_.getMessageOrBuilder();
      } else {
        return contactInfo_ == null ?
            com.ywt.gapi.third.sinopharm.ContactInfo.getDefaultInstance() : contactInfo_;
      }
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.ContactInfo contactInfo = 16;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.ContactInfo, com.ywt.gapi.third.sinopharm.ContactInfo.Builder, com.ywt.gapi.third.sinopharm.ContactInfoOrBuilder> 
        getContactInfoFieldBuilder() {
      if (contactInfoBuilder_ == null) {
        contactInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ywt.gapi.third.sinopharm.ContactInfo, com.ywt.gapi.third.sinopharm.ContactInfo.Builder, com.ywt.gapi.third.sinopharm.ContactInfoOrBuilder>(
                getContactInfo(),
                getParentForChildren(),
                isClean());
        contactInfo_ = null;
      }
      return contactInfoBuilder_;
    }

    private com.ywt.gapi.third.sinopharm.DrugStore drugStore_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.DrugStore, com.ywt.gapi.third.sinopharm.DrugStore.Builder, com.ywt.gapi.third.sinopharm.DrugStoreOrBuilder> drugStoreBuilder_;
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     * @return Whether the drugStore field is set.
     */
    public boolean hasDrugStore() {
      return drugStoreBuilder_ != null || drugStore_ != null;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     * @return The drugStore.
     */
    public com.ywt.gapi.third.sinopharm.DrugStore getDrugStore() {
      if (drugStoreBuilder_ == null) {
        return drugStore_ == null ? com.ywt.gapi.third.sinopharm.DrugStore.getDefaultInstance() : drugStore_;
      } else {
        return drugStoreBuilder_.getMessage();
      }
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     */
    public Builder setDrugStore(com.ywt.gapi.third.sinopharm.DrugStore value) {
      if (drugStoreBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        drugStore_ = value;
        onChanged();
      } else {
        drugStoreBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     */
    public Builder setDrugStore(
        com.ywt.gapi.third.sinopharm.DrugStore.Builder builderForValue) {
      if (drugStoreBuilder_ == null) {
        drugStore_ = builderForValue.build();
        onChanged();
      } else {
        drugStoreBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     */
    public Builder mergeDrugStore(com.ywt.gapi.third.sinopharm.DrugStore value) {
      if (drugStoreBuilder_ == null) {
        if (drugStore_ != null) {
          drugStore_ =
            com.ywt.gapi.third.sinopharm.DrugStore.newBuilder(drugStore_).mergeFrom(value).buildPartial();
        } else {
          drugStore_ = value;
        }
        onChanged();
      } else {
        drugStoreBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     */
    public Builder clearDrugStore() {
      if (drugStoreBuilder_ == null) {
        drugStore_ = null;
        onChanged();
      } else {
        drugStore_ = null;
        drugStoreBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugStore.Builder getDrugStoreBuilder() {
      
      onChanged();
      return getDrugStoreFieldBuilder().getBuilder();
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugStoreOrBuilder getDrugStoreOrBuilder() {
      if (drugStoreBuilder_ != null) {
        return drugStoreBuilder_.getMessageOrBuilder();
      } else {
        return drugStore_ == null ?
            com.ywt.gapi.third.sinopharm.DrugStore.getDefaultInstance() : drugStore_;
      }
    }
    /**
     * <code>.com.ywt.gapi.third.sinopharm.DrugStore drugStore = 17;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.DrugStore, com.ywt.gapi.third.sinopharm.DrugStore.Builder, com.ywt.gapi.third.sinopharm.DrugStoreOrBuilder> 
        getDrugStoreFieldBuilder() {
      if (drugStoreBuilder_ == null) {
        drugStoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ywt.gapi.third.sinopharm.DrugStore, com.ywt.gapi.third.sinopharm.DrugStore.Builder, com.ywt.gapi.third.sinopharm.DrugStoreOrBuilder>(
                getDrugStore(),
                getParentForChildren(),
                isClean());
        drugStore_ = null;
      }
      return drugStoreBuilder_;
    }

    private int pscriptType_ ;
    /**
     * <pre>
     *用于区别门店或是院内药房取药地点（ 0-院内取药，1-门店取药）
     * </pre>
     *
     * <code>int32 pscriptType = 18;</code>
     * @return The pscriptType.
     */
    @java.lang.Override
    public int getPscriptType() {
      return pscriptType_;
    }
    /**
     * <pre>
     *用于区别门店或是院内药房取药地点（ 0-院内取药，1-门店取药）
     * </pre>
     *
     * <code>int32 pscriptType = 18;</code>
     * @param value The pscriptType to set.
     * @return This builder for chaining.
     */
    public Builder setPscriptType(int value) {
      
      pscriptType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用于区别门店或是院内药房取药地点（ 0-院内取药，1-门店取药）
     * </pre>
     *
     * <code>int32 pscriptType = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearPscriptType() {
      
      pscriptType_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.third.sinopharm.DpPrescription)
  }

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

  public static com.ywt.gapi.third.sinopharm.DpPrescription getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

