// 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.DrugMatchingResponse}
 */
public final class DrugMatchingResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.sinopharm.DrugMatchingResponse)
    DrugMatchingResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DrugMatchingResponse.newBuilder() to construct.
  private DrugMatchingResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private DrugMatchingResponse() {
    msg_ = "";
    dpMatchId_ = "";
    pscripts_ = java.util.Collections.emptyList();
  }

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

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

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

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

            dpMatchId_ = s;
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              pscripts_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript>();
              mutable_bitField0_ |= 0x00000001;
            }
            pscripts_.add(
                input.readMessage(com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.parser(), extensionRegistry));
            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)) {
        pscripts_ = java.util.Collections.unmodifiableList(pscripts_);
      }
      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_DrugMatchingResponse_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_DrugMatchingResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.sinopharm.DrugMatchingResponse.class, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Builder.class);
  }

  public interface DrugOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 amout = 1;</code>
     * @return The amout.
     */
    int getAmout();

    /**
     * <code>string dpDrugCode = 2;</code>
     * @return The dpDrugCode.
     */
    java.lang.String getDpDrugCode();
    /**
     * <code>string dpDrugCode = 2;</code>
     * @return The bytes for dpDrugCode.
     */
    com.google.protobuf.ByteString
        getDpDrugCodeBytes();

    /**
     * <code>string dpDrugId = 3;</code>
     * @return The dpDrugId.
     */
    java.lang.String getDpDrugId();
    /**
     * <code>string dpDrugId = 3;</code>
     * @return The bytes for dpDrugId.
     */
    com.google.protobuf.ByteString
        getDpDrugIdBytes();

    /**
     * <code>string dpPscriptDtlId = 4;</code>
     * @return The dpPscriptDtlId.
     */
    java.lang.String getDpPscriptDtlId();
    /**
     * <code>string dpPscriptDtlId = 4;</code>
     * @return The bytes for dpPscriptDtlId.
     */
    com.google.protobuf.ByteString
        getDpPscriptDtlIdBytes();

    /**
     * <code>string drugCode = 5;</code>
     * @return The drugCode.
     */
    java.lang.String getDrugCode();
    /**
     * <code>string drugCode = 5;</code>
     * @return The bytes for drugCode.
     */
    com.google.protobuf.ByteString
        getDrugCodeBytes();

    /**
     * <code>int32 hasStock = 6;</code>
     * @return The hasStock.
     */
    int getHasStock();

    /**
     * <code>string manufaturer = 7;</code>
     * @return The manufaturer.
     */
    java.lang.String getManufaturer();
    /**
     * <code>string manufaturer = 7;</code>
     * @return The bytes for manufaturer.
     */
    com.google.protobuf.ByteString
        getManufaturerBytes();

    /**
     * <code>double price = 8;</code>
     * @return The price.
     */
    double getPrice();

    /**
     * <code>int32 pscriptDtlId = 9;</code>
     * @return The pscriptDtlId.
     */
    int getPscriptDtlId();

    /**
     * <code>double score = 10;</code>
     * @return The score.
     */
    double getScore();

    /**
     * <code>double sum = 11;</code>
     * @return The sum.
     */
    double getSum();

    /**
     * <code>string units = 12;</code>
     * @return The units.
     */
    java.lang.String getUnits();
    /**
     * <code>string units = 12;</code>
     * @return The bytes for units.
     */
    com.google.protobuf.ByteString
        getUnitsBytes();
  }
  /**
   * Protobuf type {@code com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug}
   */
  public static final class Drug extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug)
      DrugOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Drug.newBuilder() to construct.
    private Drug(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Drug() {
      dpDrugCode_ = "";
      dpDrugId_ = "";
      dpPscriptDtlId_ = "";
      drugCode_ = "";
      manufaturer_ = "";
      units_ = "";
    }

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

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

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

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

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

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

              drugCode_ = s;
              break;
            }
            case 48: {

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

              manufaturer_ = s;
              break;
            }
            case 65: {

              price_ = input.readDouble();
              break;
            }
            case 72: {

              pscriptDtlId_ = input.readInt32();
              break;
            }
            case 81: {

              score_ = input.readDouble();
              break;
            }
            case 89: {

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

              units_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DrugMatchingResponse_Drug_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_DrugMatchingResponse_Drug_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.class, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.Builder.class);
    }

    public static final int AMOUT_FIELD_NUMBER = 1;
    private int amout_;
    /**
     * <code>int32 amout = 1;</code>
     * @return The amout.
     */
    @java.lang.Override
    public int getAmout() {
      return amout_;
    }

    public static final int DPDRUGCODE_FIELD_NUMBER = 2;
    private volatile java.lang.Object dpDrugCode_;
    /**
     * <code>string dpDrugCode = 2;</code>
     * @return The dpDrugCode.
     */
    @java.lang.Override
    public java.lang.String getDpDrugCode() {
      java.lang.Object ref = dpDrugCode_;
      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();
        dpDrugCode_ = s;
        return s;
      }
    }
    /**
     * <code>string dpDrugCode = 2;</code>
     * @return The bytes for dpDrugCode.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDpDrugCodeBytes() {
      java.lang.Object ref = dpDrugCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dpDrugCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

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

    public static final int DRUGCODE_FIELD_NUMBER = 5;
    private volatile java.lang.Object drugCode_;
    /**
     * <code>string drugCode = 5;</code>
     * @return The drugCode.
     */
    @java.lang.Override
    public java.lang.String getDrugCode() {
      java.lang.Object ref = drugCode_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        drugCode_ = s;
        return s;
      }
    }
    /**
     * <code>string drugCode = 5;</code>
     * @return The bytes for drugCode.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDrugCodeBytes() {
      java.lang.Object ref = drugCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int HASSTOCK_FIELD_NUMBER = 6;
    private int hasStock_;
    /**
     * <code>int32 hasStock = 6;</code>
     * @return The hasStock.
     */
    @java.lang.Override
    public int getHasStock() {
      return hasStock_;
    }

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

    public static final int PRICE_FIELD_NUMBER = 8;
    private double price_;
    /**
     * <code>double price = 8;</code>
     * @return The price.
     */
    @java.lang.Override
    public double getPrice() {
      return price_;
    }

    public static final int PSCRIPTDTLID_FIELD_NUMBER = 9;
    private int pscriptDtlId_;
    /**
     * <code>int32 pscriptDtlId = 9;</code>
     * @return The pscriptDtlId.
     */
    @java.lang.Override
    public int getPscriptDtlId() {
      return pscriptDtlId_;
    }

    public static final int SCORE_FIELD_NUMBER = 10;
    private double score_;
    /**
     * <code>double score = 10;</code>
     * @return The score.
     */
    @java.lang.Override
    public double getScore() {
      return score_;
    }

    public static final int SUM_FIELD_NUMBER = 11;
    private double sum_;
    /**
     * <code>double sum = 11;</code>
     * @return The sum.
     */
    @java.lang.Override
    public double getSum() {
      return sum_;
    }

    public static final int UNITS_FIELD_NUMBER = 12;
    private volatile java.lang.Object units_;
    /**
     * <code>string units = 12;</code>
     * @return The units.
     */
    @java.lang.Override
    public java.lang.String getUnits() {
      java.lang.Object ref = units_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        units_ = s;
        return s;
      }
    }
    /**
     * <code>string units = 12;</code>
     * @return The bytes for units.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getUnitsBytes() {
      java.lang.Object ref = units_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        units_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (amout_ != 0) {
        output.writeInt32(1, amout_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpDrugCode_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dpDrugCode_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpDrugId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dpDrugId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpPscriptDtlId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dpPscriptDtlId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugCode_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, drugCode_);
      }
      if (hasStock_ != 0) {
        output.writeInt32(6, hasStock_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manufaturer_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, manufaturer_);
      }
      if (java.lang.Double.doubleToRawLongBits(price_) != 0) {
        output.writeDouble(8, price_);
      }
      if (pscriptDtlId_ != 0) {
        output.writeInt32(9, pscriptDtlId_);
      }
      if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
        output.writeDouble(10, score_);
      }
      if (java.lang.Double.doubleToRawLongBits(sum_) != 0) {
        output.writeDouble(11, sum_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(units_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 12, units_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (amout_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, amout_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpDrugCode_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dpDrugCode_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpDrugId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dpDrugId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpPscriptDtlId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dpPscriptDtlId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugCode_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, drugCode_);
      }
      if (hasStock_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(6, hasStock_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manufaturer_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, manufaturer_);
      }
      if (java.lang.Double.doubleToRawLongBits(price_) != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(8, price_);
      }
      if (pscriptDtlId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(9, pscriptDtlId_);
      }
      if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(10, score_);
      }
      if (java.lang.Double.doubleToRawLongBits(sum_) != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(11, sum_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(units_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, units_);
      }
      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.DrugMatchingResponse.Drug)) {
        return super.equals(obj);
      }
      com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug other = (com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug) obj;

      if (getAmout()
          != other.getAmout()) return false;
      if (!getDpDrugCode()
          .equals(other.getDpDrugCode())) return false;
      if (!getDpDrugId()
          .equals(other.getDpDrugId())) return false;
      if (!getDpPscriptDtlId()
          .equals(other.getDpPscriptDtlId())) return false;
      if (!getDrugCode()
          .equals(other.getDrugCode())) return false;
      if (getHasStock()
          != other.getHasStock()) return false;
      if (!getManufaturer()
          .equals(other.getManufaturer())) return false;
      if (java.lang.Double.doubleToLongBits(getPrice())
          != java.lang.Double.doubleToLongBits(
              other.getPrice())) return false;
      if (getPscriptDtlId()
          != other.getPscriptDtlId()) return false;
      if (java.lang.Double.doubleToLongBits(getScore())
          != java.lang.Double.doubleToLongBits(
              other.getScore())) return false;
      if (java.lang.Double.doubleToLongBits(getSum())
          != java.lang.Double.doubleToLongBits(
              other.getSum())) return false;
      if (!getUnits()
          .equals(other.getUnits())) 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) + AMOUT_FIELD_NUMBER;
      hash = (53 * hash) + getAmout();
      hash = (37 * hash) + DPDRUGCODE_FIELD_NUMBER;
      hash = (53 * hash) + getDpDrugCode().hashCode();
      hash = (37 * hash) + DPDRUGID_FIELD_NUMBER;
      hash = (53 * hash) + getDpDrugId().hashCode();
      hash = (37 * hash) + DPPSCRIPTDTLID_FIELD_NUMBER;
      hash = (53 * hash) + getDpPscriptDtlId().hashCode();
      hash = (37 * hash) + DRUGCODE_FIELD_NUMBER;
      hash = (53 * hash) + getDrugCode().hashCode();
      hash = (37 * hash) + HASSTOCK_FIELD_NUMBER;
      hash = (53 * hash) + getHasStock();
      hash = (37 * hash) + MANUFATURER_FIELD_NUMBER;
      hash = (53 * hash) + getManufaturer().hashCode();
      hash = (37 * hash) + PRICE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getPrice()));
      hash = (37 * hash) + PSCRIPTDTLID_FIELD_NUMBER;
      hash = (53 * hash) + getPscriptDtlId();
      hash = (37 * hash) + SCORE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getScore()));
      hash = (37 * hash) + SUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getSum()));
      hash = (37 * hash) + UNITS_FIELD_NUMBER;
      hash = (53 * hash) + getUnits().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug 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.DrugMatchingResponse.Drug parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug 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.DrugMatchingResponse.Drug parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug 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.DrugMatchingResponse.Drug parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug 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.DrugMatchingResponse.Drug parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug 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.DrugMatchingResponse.Drug 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.DrugMatchingResponse.Drug 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.DrugMatchingResponse.Drug prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug)
        com.ywt.gapi.third.sinopharm.DrugMatchingResponse.DrugOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DrugMatchingResponse_Drug_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_DrugMatchingResponse_Drug_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.class, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.Builder.class);
      }

      // Construct using com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        amout_ = 0;

        dpDrugCode_ = "";

        dpDrugId_ = "";

        dpPscriptDtlId_ = "";

        drugCode_ = "";

        hasStock_ = 0;

        manufaturer_ = "";

        price_ = 0D;

        pscriptDtlId_ = 0;

        score_ = 0D;

        sum_ = 0D;

        units_ = "";

        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_DrugMatchingResponse_Drug_descriptor;
      }

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

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

      @java.lang.Override
      public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug buildPartial() {
        com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug result = new com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug(this);
        result.amout_ = amout_;
        result.dpDrugCode_ = dpDrugCode_;
        result.dpDrugId_ = dpDrugId_;
        result.dpPscriptDtlId_ = dpPscriptDtlId_;
        result.drugCode_ = drugCode_;
        result.hasStock_ = hasStock_;
        result.manufaturer_ = manufaturer_;
        result.price_ = price_;
        result.pscriptDtlId_ = pscriptDtlId_;
        result.score_ = score_;
        result.sum_ = sum_;
        result.units_ = units_;
        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.DrugMatchingResponse.Drug) {
          return mergeFrom((com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug other) {
        if (other == com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.getDefaultInstance()) return this;
        if (other.getAmout() != 0) {
          setAmout(other.getAmout());
        }
        if (!other.getDpDrugCode().isEmpty()) {
          dpDrugCode_ = other.dpDrugCode_;
          onChanged();
        }
        if (!other.getDpDrugId().isEmpty()) {
          dpDrugId_ = other.dpDrugId_;
          onChanged();
        }
        if (!other.getDpPscriptDtlId().isEmpty()) {
          dpPscriptDtlId_ = other.dpPscriptDtlId_;
          onChanged();
        }
        if (!other.getDrugCode().isEmpty()) {
          drugCode_ = other.drugCode_;
          onChanged();
        }
        if (other.getHasStock() != 0) {
          setHasStock(other.getHasStock());
        }
        if (!other.getManufaturer().isEmpty()) {
          manufaturer_ = other.manufaturer_;
          onChanged();
        }
        if (other.getPrice() != 0D) {
          setPrice(other.getPrice());
        }
        if (other.getPscriptDtlId() != 0) {
          setPscriptDtlId(other.getPscriptDtlId());
        }
        if (other.getScore() != 0D) {
          setScore(other.getScore());
        }
        if (other.getSum() != 0D) {
          setSum(other.getSum());
        }
        if (!other.getUnits().isEmpty()) {
          units_ = other.units_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

      private int amout_ ;
      /**
       * <code>int32 amout = 1;</code>
       * @return The amout.
       */
      @java.lang.Override
      public int getAmout() {
        return amout_;
      }
      /**
       * <code>int32 amout = 1;</code>
       * @param value The amout to set.
       * @return This builder for chaining.
       */
      public Builder setAmout(int value) {
        
        amout_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 amout = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAmout() {
        
        amout_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object dpDrugCode_ = "";
      /**
       * <code>string dpDrugCode = 2;</code>
       * @return The dpDrugCode.
       */
      public java.lang.String getDpDrugCode() {
        java.lang.Object ref = dpDrugCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          dpDrugCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string dpDrugCode = 2;</code>
       * @return The bytes for dpDrugCode.
       */
      public com.google.protobuf.ByteString
          getDpDrugCodeBytes() {
        java.lang.Object ref = dpDrugCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          dpDrugCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string dpDrugCode = 2;</code>
       * @param value The dpDrugCode to set.
       * @return This builder for chaining.
       */
      public Builder setDpDrugCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        dpDrugCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string dpDrugCode = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearDpDrugCode() {
        
        dpDrugCode_ = getDefaultInstance().getDpDrugCode();
        onChanged();
        return this;
      }
      /**
       * <code>string dpDrugCode = 2;</code>
       * @param value The bytes for dpDrugCode to set.
       * @return This builder for chaining.
       */
      public Builder setDpDrugCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        dpDrugCode_ = value;
        onChanged();
        return this;
      }

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

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

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

      private int hasStock_ ;
      /**
       * <code>int32 hasStock = 6;</code>
       * @return The hasStock.
       */
      @java.lang.Override
      public int getHasStock() {
        return hasStock_;
      }
      /**
       * <code>int32 hasStock = 6;</code>
       * @param value The hasStock to set.
       * @return This builder for chaining.
       */
      public Builder setHasStock(int value) {
        
        hasStock_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 hasStock = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearHasStock() {
        
        hasStock_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object manufaturer_ = "";
      /**
       * <code>string manufaturer = 7;</code>
       * @return The manufaturer.
       */
      public java.lang.String getManufaturer() {
        java.lang.Object ref = manufaturer_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          manufaturer_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string manufaturer = 7;</code>
       * @return The bytes for manufaturer.
       */
      public com.google.protobuf.ByteString
          getManufaturerBytes() {
        java.lang.Object ref = manufaturer_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          manufaturer_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string manufaturer = 7;</code>
       * @param value The manufaturer to set.
       * @return This builder for chaining.
       */
      public Builder setManufaturer(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        manufaturer_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string manufaturer = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearManufaturer() {
        
        manufaturer_ = getDefaultInstance().getManufaturer();
        onChanged();
        return this;
      }
      /**
       * <code>string manufaturer = 7;</code>
       * @param value The bytes for manufaturer to set.
       * @return This builder for chaining.
       */
      public Builder setManufaturerBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        manufaturer_ = value;
        onChanged();
        return this;
      }

      private double price_ ;
      /**
       * <code>double price = 8;</code>
       * @return The price.
       */
      @java.lang.Override
      public double getPrice() {
        return price_;
      }
      /**
       * <code>double price = 8;</code>
       * @param value The price to set.
       * @return This builder for chaining.
       */
      public Builder setPrice(double value) {
        
        price_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>double price = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearPrice() {
        
        price_ = 0D;
        onChanged();
        return this;
      }

      private int pscriptDtlId_ ;
      /**
       * <code>int32 pscriptDtlId = 9;</code>
       * @return The pscriptDtlId.
       */
      @java.lang.Override
      public int getPscriptDtlId() {
        return pscriptDtlId_;
      }
      /**
       * <code>int32 pscriptDtlId = 9;</code>
       * @param value The pscriptDtlId to set.
       * @return This builder for chaining.
       */
      public Builder setPscriptDtlId(int value) {
        
        pscriptDtlId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 pscriptDtlId = 9;</code>
       * @return This builder for chaining.
       */
      public Builder clearPscriptDtlId() {
        
        pscriptDtlId_ = 0;
        onChanged();
        return this;
      }

      private double score_ ;
      /**
       * <code>double score = 10;</code>
       * @return The score.
       */
      @java.lang.Override
      public double getScore() {
        return score_;
      }
      /**
       * <code>double score = 10;</code>
       * @param value The score to set.
       * @return This builder for chaining.
       */
      public Builder setScore(double value) {
        
        score_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>double score = 10;</code>
       * @return This builder for chaining.
       */
      public Builder clearScore() {
        
        score_ = 0D;
        onChanged();
        return this;
      }

      private double sum_ ;
      /**
       * <code>double sum = 11;</code>
       * @return The sum.
       */
      @java.lang.Override
      public double getSum() {
        return sum_;
      }
      /**
       * <code>double sum = 11;</code>
       * @param value The sum to set.
       * @return This builder for chaining.
       */
      public Builder setSum(double value) {
        
        sum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>double sum = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearSum() {
        
        sum_ = 0D;
        onChanged();
        return this;
      }

      private java.lang.Object units_ = "";
      /**
       * <code>string units = 12;</code>
       * @return The units.
       */
      public java.lang.String getUnits() {
        java.lang.Object ref = units_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          units_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string units = 12;</code>
       * @return The bytes for units.
       */
      public com.google.protobuf.ByteString
          getUnitsBytes() {
        java.lang.Object ref = units_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          units_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string units = 12;</code>
       * @param value The units to set.
       * @return This builder for chaining.
       */
      public Builder setUnits(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        units_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string units = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearUnits() {
        
        units_ = getDefaultInstance().getUnits();
        onChanged();
        return this;
      }
      /**
       * <code>string units = 12;</code>
       * @param value The bytes for units to set.
       * @return This builder for chaining.
       */
      public Builder setUnitsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        units_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


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

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

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

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

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

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

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

  }

  public interface PscriptOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug drugs = 1;</code>
     */
    java.util.List<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug> 
        getDrugsList();
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug drugs = 1;</code>
     */
    com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug getDrugs(int index);
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug drugs = 1;</code>
     */
    int getDrugsCount();
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug drugs = 1;</code>
     */
    java.util.List<? extends com.ywt.gapi.third.sinopharm.DrugMatchingResponse.DrugOrBuilder> 
        getDrugsOrBuilderList();
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug drugs = 1;</code>
     */
    com.ywt.gapi.third.sinopharm.DrugMatchingResponse.DrugOrBuilder getDrugsOrBuilder(
        int index);

    /**
     * <pre>
     *处方粒度总金额
     * </pre>
     *
     * <code>double pscriptFee = 2;</code>
     * @return The pscriptFee.
     */
    double getPscriptFee();

    /**
     * <pre>
     *处方单号
     * </pre>
     *
     * <code>int32 pscriptId = 3;</code>
     * @return The pscriptId.
     */
    int getPscriptId();
  }
  /**
   * Protobuf type {@code com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript}
   */
  public static final class Pscript extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript)
      PscriptOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Pscript.newBuilder() to construct.
    private Pscript(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Pscript() {
      drugs_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Pscript(
        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: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                drugs_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug>();
                mutable_bitField0_ |= 0x00000001;
              }
              drugs_.add(
                  input.readMessage(com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.parser(), extensionRegistry));
              break;
            }
            case 17: {

              pscriptFee_ = input.readDouble();
              break;
            }
            case 24: {

              pscriptId_ = 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_DrugMatchingResponse_Pscript_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_DrugMatchingResponse_Pscript_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.class, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder.class);
    }

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

    public static final int PSCRIPTFEE_FIELD_NUMBER = 2;
    private double pscriptFee_;
    /**
     * <pre>
     *处方粒度总金额
     * </pre>
     *
     * <code>double pscriptFee = 2;</code>
     * @return The pscriptFee.
     */
    @java.lang.Override
    public double getPscriptFee() {
      return pscriptFee_;
    }

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

    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 {
      for (int i = 0; i < drugs_.size(); i++) {
        output.writeMessage(1, drugs_.get(i));
      }
      if (java.lang.Double.doubleToRawLongBits(pscriptFee_) != 0) {
        output.writeDouble(2, pscriptFee_);
      }
      if (pscriptId_ != 0) {
        output.writeInt32(3, pscriptId_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < drugs_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, drugs_.get(i));
      }
      if (java.lang.Double.doubleToRawLongBits(pscriptFee_) != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, pscriptFee_);
      }
      if (pscriptId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, pscriptId_);
      }
      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.DrugMatchingResponse.Pscript)) {
        return super.equals(obj);
      }
      com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript other = (com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript) obj;

      if (!getDrugsList()
          .equals(other.getDrugsList())) return false;
      if (java.lang.Double.doubleToLongBits(getPscriptFee())
          != java.lang.Double.doubleToLongBits(
              other.getPscriptFee())) return false;
      if (getPscriptId()
          != other.getPscriptId()) 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();
      if (getDrugsCount() > 0) {
        hash = (37 * hash) + DRUGS_FIELD_NUMBER;
        hash = (53 * hash) + getDrugsList().hashCode();
      }
      hash = (37 * hash) + PSCRIPTFEE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getPscriptFee()));
      hash = (37 * hash) + PSCRIPTID_FIELD_NUMBER;
      hash = (53 * hash) + getPscriptId();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript 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.DrugMatchingResponse.Pscript parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript 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.DrugMatchingResponse.Pscript parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript 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.DrugMatchingResponse.Pscript parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript 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.DrugMatchingResponse.Pscript parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript 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.DrugMatchingResponse.Pscript 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.DrugMatchingResponse.Pscript 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.DrugMatchingResponse.Pscript prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript)
        com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DrugMatchingResponse_Pscript_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_DrugMatchingResponse_Pscript_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.class, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder.class);
      }

      // Construct using com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.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();
        if (drugsBuilder_ == null) {
          drugs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          drugsBuilder_.clear();
        }
        pscriptFee_ = 0D;

        pscriptId_ = 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_DrugMatchingResponse_Pscript_descriptor;
      }

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

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

      @java.lang.Override
      public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript buildPartial() {
        com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript result = new com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript(this);
        int from_bitField0_ = bitField0_;
        if (drugsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            drugs_ = java.util.Collections.unmodifiableList(drugs_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.drugs_ = drugs_;
        } else {
          result.drugs_ = drugsBuilder_.build();
        }
        result.pscriptFee_ = pscriptFee_;
        result.pscriptId_ = pscriptId_;
        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.DrugMatchingResponse.Pscript) {
          return mergeFrom((com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript other) {
        if (other == com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.getDefaultInstance()) return this;
        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.getPscriptFee() != 0D) {
          setPscriptFee(other.getPscriptFee());
        }
        if (other.getPscriptId() != 0) {
          setPscriptId(other.getPscriptId());
        }
        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.DrugMatchingResponse.Pscript parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Drug.Builder, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.DrugOrBuilder> drugsBuilder_;

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

      private double pscriptFee_ ;
      /**
       * <pre>
       *处方粒度总金额
       * </pre>
       *
       * <code>double pscriptFee = 2;</code>
       * @return The pscriptFee.
       */
      @java.lang.Override
      public double getPscriptFee() {
        return pscriptFee_;
      }
      /**
       * <pre>
       *处方粒度总金额
       * </pre>
       *
       * <code>double pscriptFee = 2;</code>
       * @param value The pscriptFee to set.
       * @return This builder for chaining.
       */
      public Builder setPscriptFee(double value) {
        
        pscriptFee_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *处方粒度总金额
       * </pre>
       *
       * <code>double pscriptFee = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearPscriptFee() {
        
        pscriptFee_ = 0D;
        onChanged();
        return this;
      }

      private int pscriptId_ ;
      /**
       * <pre>
       *处方单号
       * </pre>
       *
       * <code>int32 pscriptId = 3;</code>
       * @return The pscriptId.
       */
      @java.lang.Override
      public int getPscriptId() {
        return pscriptId_;
      }
      /**
       * <pre>
       *处方单号
       * </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>
       *处方单号
       * </pre>
       *
       * <code>int32 pscriptId = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearPscriptId() {
        
        pscriptId_ = 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.DrugMatchingResponse.Pscript)
    }

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

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

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

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

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

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

  }

  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   * @return The code.
   */
  @java.lang.Override
  public int getCode() {
    return code_;
  }

  public static final int MSG_FIELD_NUMBER = 2;
  private volatile java.lang.Object msg_;
  /**
   * <code>string msg = 2;</code>
   * @return The msg.
   */
  @java.lang.Override
  public java.lang.String getMsg() {
    java.lang.Object ref = msg_;
    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();
      msg_ = s;
      return s;
    }
  }
  /**
   * <code>string msg = 2;</code>
   * @return The bytes for msg.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMsgBytes() {
    java.lang.Object ref = msg_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      msg_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DPMATCHID_FIELD_NUMBER = 3;
  private volatile java.lang.Object dpMatchId_;
  /**
   * <code>string dpMatchId = 3;</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;
    }
  }
  /**
   * <code>string dpMatchId = 3;</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 PSCRIPTS_FIELD_NUMBER = 4;
  private java.util.List<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript> pscripts_;
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript> getPscriptsList() {
    return pscripts_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder> 
      getPscriptsOrBuilderList() {
    return pscripts_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
   */
  @java.lang.Override
  public int getPscriptsCount() {
    return pscripts_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript getPscripts(int index) {
    return pscripts_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder getPscriptsOrBuilder(
      int index) {
    return pscripts_.get(index);
  }

  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 (code_ != 0) {
      output.writeInt32(1, code_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpMatchId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dpMatchId_);
    }
    for (int i = 0; i < pscripts_.size(); i++) {
      output.writeMessage(4, pscripts_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (code_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, code_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dpMatchId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dpMatchId_);
    }
    for (int i = 0; i < pscripts_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, pscripts_.get(i));
    }
    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.DrugMatchingResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.sinopharm.DrugMatchingResponse other = (com.ywt.gapi.third.sinopharm.DrugMatchingResponse) obj;

    if (getCode()
        != other.getCode()) return false;
    if (!getMsg()
        .equals(other.getMsg())) return false;
    if (!getDpMatchId()
        .equals(other.getDpMatchId())) return false;
    if (!getPscriptsList()
        .equals(other.getPscriptsList())) 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) + CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCode();
    hash = (37 * hash) + MSG_FIELD_NUMBER;
    hash = (53 * hash) + getMsg().hashCode();
    hash = (37 * hash) + DPMATCHID_FIELD_NUMBER;
    hash = (53 * hash) + getDpMatchId().hashCode();
    if (getPscriptsCount() > 0) {
      hash = (37 * hash) + PSCRIPTS_FIELD_NUMBER;
      hash = (53 * hash) + getPscriptsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse 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.DrugMatchingResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse 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.DrugMatchingResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse 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.DrugMatchingResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse 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.DrugMatchingResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.DrugMatchingResponse 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.DrugMatchingResponse 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.DrugMatchingResponse 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.DrugMatchingResponse 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.DrugMatchingResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.sinopharm.DrugMatchingResponse)
      com.ywt.gapi.third.sinopharm.DrugMatchingResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_DrugMatchingResponse_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_DrugMatchingResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.sinopharm.DrugMatchingResponse.class, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getPscriptsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      code_ = 0;

      msg_ = "";

      dpMatchId_ = "";

      if (pscriptsBuilder_ == null) {
        pscripts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        pscriptsBuilder_.clear();
      }
      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_DrugMatchingResponse_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.DrugMatchingResponse buildPartial() {
      com.ywt.gapi.third.sinopharm.DrugMatchingResponse result = new com.ywt.gapi.third.sinopharm.DrugMatchingResponse(this);
      int from_bitField0_ = bitField0_;
      result.code_ = code_;
      result.msg_ = msg_;
      result.dpMatchId_ = dpMatchId_;
      if (pscriptsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          pscripts_ = java.util.Collections.unmodifiableList(pscripts_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.pscripts_ = pscripts_;
      } else {
        result.pscripts_ = pscriptsBuilder_.build();
      }
      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.DrugMatchingResponse) {
        return mergeFrom((com.ywt.gapi.third.sinopharm.DrugMatchingResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.sinopharm.DrugMatchingResponse other) {
      if (other == com.ywt.gapi.third.sinopharm.DrugMatchingResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getMsg().isEmpty()) {
        msg_ = other.msg_;
        onChanged();
      }
      if (!other.getDpMatchId().isEmpty()) {
        dpMatchId_ = other.dpMatchId_;
        onChanged();
      }
      if (pscriptsBuilder_ == null) {
        if (!other.pscripts_.isEmpty()) {
          if (pscripts_.isEmpty()) {
            pscripts_ = other.pscripts_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensurePscriptsIsMutable();
            pscripts_.addAll(other.pscripts_);
          }
          onChanged();
        }
      } else {
        if (!other.pscripts_.isEmpty()) {
          if (pscriptsBuilder_.isEmpty()) {
            pscriptsBuilder_.dispose();
            pscriptsBuilder_ = null;
            pscripts_ = other.pscripts_;
            bitField0_ = (bitField0_ & ~0x00000001);
            pscriptsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getPscriptsFieldBuilder() : null;
          } else {
            pscriptsBuilder_.addAllMessages(other.pscripts_);
          }
        }
      }
      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.DrugMatchingResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.sinopharm.DrugMatchingResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     * @return The code.
     */
    @java.lang.Override
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     * @param value The code to set.
     * @return This builder for chaining.
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object msg_ = "";
    /**
     * <code>string msg = 2;</code>
     * @return The msg.
     */
    public java.lang.String getMsg() {
      java.lang.Object ref = msg_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        msg_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     * @return The bytes for msg.
     */
    public com.google.protobuf.ByteString
        getMsgBytes() {
      java.lang.Object ref = msg_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        msg_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     * @param value The msg to set.
     * @return This builder for chaining.
     */
    public Builder setMsg(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      msg_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearMsg() {
      
      msg_ = getDefaultInstance().getMsg();
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     * @param value The bytes for msg to set.
     * @return This builder for chaining.
     */
    public Builder setMsgBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      msg_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dpMatchId_ = "";
    /**
     * <code>string dpMatchId = 3;</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;
      }
    }
    /**
     * <code>string dpMatchId = 3;</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;
      }
    }
    /**
     * <code>string dpMatchId = 3;</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;
    }
    /**
     * <code>string dpMatchId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDpMatchId() {
      
      dpMatchId_ = getDefaultInstance().getDpMatchId();
      onChanged();
      return this;
    }
    /**
     * <code>string dpMatchId = 3;</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 java.util.List<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript> pscripts_ =
      java.util.Collections.emptyList();
    private void ensurePscriptsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        pscripts_ = new java.util.ArrayList<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript>(pscripts_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder> pscriptsBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public java.util.List<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript> getPscriptsList() {
      if (pscriptsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(pscripts_);
      } else {
        return pscriptsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public int getPscriptsCount() {
      if (pscriptsBuilder_ == null) {
        return pscripts_.size();
      } else {
        return pscriptsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript getPscripts(int index) {
      if (pscriptsBuilder_ == null) {
        return pscripts_.get(index);
      } else {
        return pscriptsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder setPscripts(
        int index, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript value) {
      if (pscriptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePscriptsIsMutable();
        pscripts_.set(index, value);
        onChanged();
      } else {
        pscriptsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder setPscripts(
        int index, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder builderForValue) {
      if (pscriptsBuilder_ == null) {
        ensurePscriptsIsMutable();
        pscripts_.set(index, builderForValue.build());
        onChanged();
      } else {
        pscriptsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder addPscripts(com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript value) {
      if (pscriptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePscriptsIsMutable();
        pscripts_.add(value);
        onChanged();
      } else {
        pscriptsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder addPscripts(
        int index, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript value) {
      if (pscriptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePscriptsIsMutable();
        pscripts_.add(index, value);
        onChanged();
      } else {
        pscriptsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder addPscripts(
        com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder builderForValue) {
      if (pscriptsBuilder_ == null) {
        ensurePscriptsIsMutable();
        pscripts_.add(builderForValue.build());
        onChanged();
      } else {
        pscriptsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder addPscripts(
        int index, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder builderForValue) {
      if (pscriptsBuilder_ == null) {
        ensurePscriptsIsMutable();
        pscripts_.add(index, builderForValue.build());
        onChanged();
      } else {
        pscriptsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder addAllPscripts(
        java.lang.Iterable<? extends com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript> values) {
      if (pscriptsBuilder_ == null) {
        ensurePscriptsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, pscripts_);
        onChanged();
      } else {
        pscriptsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder clearPscripts() {
      if (pscriptsBuilder_ == null) {
        pscripts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        pscriptsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public Builder removePscripts(int index) {
      if (pscriptsBuilder_ == null) {
        ensurePscriptsIsMutable();
        pscripts_.remove(index);
        onChanged();
      } else {
        pscriptsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder getPscriptsBuilder(
        int index) {
      return getPscriptsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder getPscriptsOrBuilder(
        int index) {
      if (pscriptsBuilder_ == null) {
        return pscripts_.get(index);  } else {
        return pscriptsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder> 
         getPscriptsOrBuilderList() {
      if (pscriptsBuilder_ != null) {
        return pscriptsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(pscripts_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder addPscriptsBuilder() {
      return getPscriptsFieldBuilder().addBuilder(
          com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder addPscriptsBuilder(
        int index) {
      return getPscriptsFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript pscripts = 4;</code>
     */
    public java.util.List<com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder> 
         getPscriptsBuilderList() {
      return getPscriptsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder> 
        getPscriptsFieldBuilder() {
      if (pscriptsBuilder_ == null) {
        pscriptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.Pscript.Builder, com.ywt.gapi.third.sinopharm.DrugMatchingResponse.PscriptOrBuilder>(
                pscripts_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        pscripts_ = null;
      }
      return pscriptsBuilder_;
    }
    @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.DrugMatchingResponse)
  }

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

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

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

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

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

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

}

