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

package com.ywt.gapi.third.taihe;

/**
 * <pre>
 *药品信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.taihe.Drug}
 */
public final class Drug extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.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() {
    drugCode3Th_ = "";
    oneDosageUnit_ = "";
    units_ = "";
    tip_ = "";
    drugName_ = "";
    drugSpec_ = "";
    pinYinCode_ = "";
    productName_ = "";
    smallestUnit_ = "";
  }

  @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 10: {
            java.lang.String s = input.readStringRequireUtf8();

            drugCode3Th_ = s;
            break;
          }
          case 17: {

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

            oneDosageUnit_ = s;
            break;
          }
          case 32: {

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

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

            tip_ = s;
            break;
          }
          case 56: {

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

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

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

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

            productName_ = s;
            break;
          }
          case 96: {

            drugStatus_ = input.readInt32();
            break;
          }
          case 104: {

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

            smallestUnit_ = 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.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Drug_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Drug_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.Drug.class, com.ywt.gapi.third.taihe.Drug.Builder.class);
  }

  public static final int DRUGCODE3TH_FIELD_NUMBER = 1;
  private volatile java.lang.Object drugCode3Th_;
  /**
   * <pre>
   *第三方公司药品编码
   * </pre>
   *
   * <code>string drugCode3th = 1;</code>
   * @return The drugCode3th.
   */
  @java.lang.Override
  public java.lang.String getDrugCode3Th() {
    java.lang.Object ref = drugCode3Th_;
    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();
      drugCode3Th_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *第三方公司药品编码
   * </pre>
   *
   * <code>string drugCode3th = 1;</code>
   * @return The bytes for drugCode3th.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDrugCode3ThBytes() {
    java.lang.Object ref = drugCode3Th_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      drugCode3Th_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ONEDOSAGE_FIELD_NUMBER = 2;
  private double oneDosage_;
  /**
   * <pre>
   *单次服用剂量
   * </pre>
   *
   * <code>double oneDosage = 2;</code>
   * @return The oneDosage.
   */
  @java.lang.Override
  public double getOneDosage() {
    return oneDosage_;
  }

  public static final int ONEDOSAGEUNIT_FIELD_NUMBER = 3;
  private volatile java.lang.Object oneDosageUnit_;
  /**
   * <pre>
   *单次服用剂量单位
   * </pre>
   *
   * <code>string oneDosageUnit = 3;</code>
   * @return The oneDosageUnit.
   */
  @java.lang.Override
  public java.lang.String getOneDosageUnit() {
    java.lang.Object ref = oneDosageUnit_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      oneDosageUnit_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *单次服用剂量单位
   * </pre>
   *
   * <code>string oneDosageUnit = 3;</code>
   * @return The bytes for oneDosageUnit.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOneDosageUnitBytes() {
    java.lang.Object ref = oneDosageUnit_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      oneDosageUnit_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AMOUNT_FIELD_NUMBER = 4;
  private int amount_;
  /**
   * <pre>
   *整包装数量
   * </pre>
   *
   * <code>int32 amount = 4;</code>
   * @return The amount.
   */
  @java.lang.Override
  public int getAmount() {
    return amount_;
  }

  public static final int UNITS_FIELD_NUMBER = 5;
  private volatile java.lang.Object units_;
  /**
   * <pre>
   *整包装单位
   * </pre>
   *
   * <code>string units = 5;</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;
    }
  }
  /**
   * <pre>
   *整包装单位
   * </pre>
   *
   * <code>string units = 5;</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;
    }
  }

  public static final int TIP_FIELD_NUMBER = 6;
  private volatile java.lang.Object tip_;
  /**
   * <pre>
   *药品提示
   * </pre>
   *
   * <code>string tip = 6;</code>
   * @return The tip.
   */
  @java.lang.Override
  public java.lang.String getTip() {
    java.lang.Object ref = tip_;
    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();
      tip_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *药品提示
   * </pre>
   *
   * <code>string tip = 6;</code>
   * @return The bytes for tip.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTipBytes() {
    java.lang.Object ref = tip_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      tip_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRICE_FIELD_NUMBER = 7;
  private int price_;
  /**
   * <pre>
   *价格
   * </pre>
   *
   * <code>int32 price = 7;</code>
   * @return The price.
   */
  @java.lang.Override
  public int getPrice() {
    return price_;
  }

  public static final int DRUGNAME_FIELD_NUMBER = 8;
  private volatile java.lang.Object drugName_;
  /**
   * <pre>
   *药品名称
   * </pre>
   *
   * <code>string drugName = 8;</code>
   * @return The drugName.
   */
  @java.lang.Override
  public java.lang.String getDrugName() {
    java.lang.Object ref = drugName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      drugName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *药品名称
   * </pre>
   *
   * <code>string drugName = 8;</code>
   * @return The bytes for drugName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDrugNameBytes() {
    java.lang.Object ref = drugName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      drugName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DRUGSPEC_FIELD_NUMBER = 9;
  private volatile java.lang.Object drugSpec_;
  /**
   * <pre>
   *药品包装规格
   * </pre>
   *
   * <code>string drugSpec = 9;</code>
   * @return The drugSpec.
   */
  @java.lang.Override
  public java.lang.String getDrugSpec() {
    java.lang.Object ref = drugSpec_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      drugSpec_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *药品包装规格
   * </pre>
   *
   * <code>string drugSpec = 9;</code>
   * @return The bytes for drugSpec.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDrugSpecBytes() {
    java.lang.Object ref = drugSpec_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      drugSpec_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PINYINCODE_FIELD_NUMBER = 10;
  private volatile java.lang.Object pinYinCode_;
  /**
   * <pre>
   *拼音编码
   * </pre>
   *
   * <code>string pinYinCode = 10;</code>
   * @return The pinYinCode.
   */
  @java.lang.Override
  public java.lang.String getPinYinCode() {
    java.lang.Object ref = pinYinCode_;
    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();
      pinYinCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *拼音编码
   * </pre>
   *
   * <code>string pinYinCode = 10;</code>
   * @return The bytes for pinYinCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPinYinCodeBytes() {
    java.lang.Object ref = pinYinCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pinYinCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRODUCTNAME_FIELD_NUMBER = 11;
  private volatile java.lang.Object productName_;
  /**
   * <pre>
   *商品名
   * </pre>
   *
   * <code>string productName = 11;</code>
   * @return The productName.
   */
  @java.lang.Override
  public java.lang.String getProductName() {
    java.lang.Object ref = productName_;
    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();
      productName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *商品名
   * </pre>
   *
   * <code>string productName = 11;</code>
   * @return The bytes for productName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getProductNameBytes() {
    java.lang.Object ref = productName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      productName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DRUGSTATUS_FIELD_NUMBER = 12;
  private int drugStatus_;
  /**
   * <pre>
   *药品状态(1-正常 2-停用)
   * </pre>
   *
   * <code>int32 drugStatus = 12;</code>
   * @return The drugStatus.
   */
  @java.lang.Override
  public int getDrugStatus() {
    return drugStatus_;
  }

  public static final int DRUGTYPE_FIELD_NUMBER = 13;
  private int drugType_;
  /**
   * <pre>
   *药品类型（1-中草药 2-中成药 3-西药）
   * </pre>
   *
   * <code>int32 drugType = 13;</code>
   * @return The drugType.
   */
  @java.lang.Override
  public int getDrugType() {
    return drugType_;
  }

  public static final int SMALLESTUNIT_FIELD_NUMBER = 14;
  private volatile java.lang.Object smallestUnit_;
  /**
   * <pre>
   *最小单位（剂量单位）	
   * </pre>
   *
   * <code>string smallestUnit = 14;</code>
   * @return The smallestUnit.
   */
  @java.lang.Override
  public java.lang.String getSmallestUnit() {
    java.lang.Object ref = smallestUnit_;
    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();
      smallestUnit_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *最小单位（剂量单位）	
   * </pre>
   *
   * <code>string smallestUnit = 14;</code>
   * @return The bytes for smallestUnit.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSmallestUnitBytes() {
    java.lang.Object ref = smallestUnit_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      smallestUnit_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugCode3Th_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, drugCode3Th_);
    }
    if (java.lang.Double.doubleToRawLongBits(oneDosage_) != 0) {
      output.writeDouble(2, oneDosage_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oneDosageUnit_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oneDosageUnit_);
    }
    if (amount_ != 0) {
      output.writeInt32(4, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(units_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, units_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tip_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tip_);
    }
    if (price_ != 0) {
      output.writeInt32(7, price_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, drugName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugSpec_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, drugSpec_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pinYinCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pinYinCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, productName_);
    }
    if (drugStatus_ != 0) {
      output.writeInt32(12, drugStatus_);
    }
    if (drugType_ != 0) {
      output.writeInt32(13, drugType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(smallestUnit_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, smallestUnit_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugCode3Th_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, drugCode3Th_);
    }
    if (java.lang.Double.doubleToRawLongBits(oneDosage_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(2, oneDosage_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oneDosageUnit_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oneDosageUnit_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(units_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, units_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tip_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tip_);
    }
    if (price_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, price_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, drugName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drugSpec_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, drugSpec_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pinYinCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pinYinCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, productName_);
    }
    if (drugStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, drugStatus_);
    }
    if (drugType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, drugType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(smallestUnit_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, smallestUnit_);
    }
    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.taihe.Drug)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.Drug other = (com.ywt.gapi.third.taihe.Drug) obj;

    if (!getDrugCode3Th()
        .equals(other.getDrugCode3Th())) return false;
    if (java.lang.Double.doubleToLongBits(getOneDosage())
        != java.lang.Double.doubleToLongBits(
            other.getOneDosage())) return false;
    if (!getOneDosageUnit()
        .equals(other.getOneDosageUnit())) return false;
    if (getAmount()
        != other.getAmount()) return false;
    if (!getUnits()
        .equals(other.getUnits())) return false;
    if (!getTip()
        .equals(other.getTip())) return false;
    if (getPrice()
        != other.getPrice()) return false;
    if (!getDrugName()
        .equals(other.getDrugName())) return false;
    if (!getDrugSpec()
        .equals(other.getDrugSpec())) return false;
    if (!getPinYinCode()
        .equals(other.getPinYinCode())) return false;
    if (!getProductName()
        .equals(other.getProductName())) return false;
    if (getDrugStatus()
        != other.getDrugStatus()) return false;
    if (getDrugType()
        != other.getDrugType()) return false;
    if (!getSmallestUnit()
        .equals(other.getSmallestUnit())) 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) + DRUGCODE3TH_FIELD_NUMBER;
    hash = (53 * hash) + getDrugCode3Th().hashCode();
    hash = (37 * hash) + ONEDOSAGE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getOneDosage()));
    hash = (37 * hash) + ONEDOSAGEUNIT_FIELD_NUMBER;
    hash = (53 * hash) + getOneDosageUnit().hashCode();
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + UNITS_FIELD_NUMBER;
    hash = (53 * hash) + getUnits().hashCode();
    hash = (37 * hash) + TIP_FIELD_NUMBER;
    hash = (53 * hash) + getTip().hashCode();
    hash = (37 * hash) + PRICE_FIELD_NUMBER;
    hash = (53 * hash) + getPrice();
    hash = (37 * hash) + DRUGNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDrugName().hashCode();
    hash = (37 * hash) + DRUGSPEC_FIELD_NUMBER;
    hash = (53 * hash) + getDrugSpec().hashCode();
    hash = (37 * hash) + PINYINCODE_FIELD_NUMBER;
    hash = (53 * hash) + getPinYinCode().hashCode();
    hash = (37 * hash) + PRODUCTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getProductName().hashCode();
    hash = (37 * hash) + DRUGSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getDrugStatus();
    hash = (37 * hash) + DRUGTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getDrugType();
    hash = (37 * hash) + SMALLESTUNIT_FIELD_NUMBER;
    hash = (53 * hash) + getSmallestUnit().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.Drug parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.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.taihe.Drug parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.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.taihe.Drug parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.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.taihe.Drug parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.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.taihe.Drug parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.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.taihe.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.taihe.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.taihe.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;
  }
  /**
   * <pre>
   *药品信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.Drug}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.Drug)
      com.ywt.gapi.third.taihe.DrugOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Drug_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Drug_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.Drug.class, com.ywt.gapi.third.taihe.Drug.Builder.class);
    }

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

      oneDosage_ = 0D;

      oneDosageUnit_ = "";

      amount_ = 0;

      units_ = "";

      tip_ = "";

      price_ = 0;

      drugName_ = "";

      drugSpec_ = "";

      pinYinCode_ = "";

      productName_ = "";

      drugStatus_ = 0;

      drugType_ = 0;

      smallestUnit_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Drug_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.Drug buildPartial() {
      com.ywt.gapi.third.taihe.Drug result = new com.ywt.gapi.third.taihe.Drug(this);
      result.drugCode3Th_ = drugCode3Th_;
      result.oneDosage_ = oneDosage_;
      result.oneDosageUnit_ = oneDosageUnit_;
      result.amount_ = amount_;
      result.units_ = units_;
      result.tip_ = tip_;
      result.price_ = price_;
      result.drugName_ = drugName_;
      result.drugSpec_ = drugSpec_;
      result.pinYinCode_ = pinYinCode_;
      result.productName_ = productName_;
      result.drugStatus_ = drugStatus_;
      result.drugType_ = drugType_;
      result.smallestUnit_ = smallestUnit_;
      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.taihe.Drug) {
        return mergeFrom((com.ywt.gapi.third.taihe.Drug)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.Drug other) {
      if (other == com.ywt.gapi.third.taihe.Drug.getDefaultInstance()) return this;
      if (!other.getDrugCode3Th().isEmpty()) {
        drugCode3Th_ = other.drugCode3Th_;
        onChanged();
      }
      if (other.getOneDosage() != 0D) {
        setOneDosage(other.getOneDosage());
      }
      if (!other.getOneDosageUnit().isEmpty()) {
        oneDosageUnit_ = other.oneDosageUnit_;
        onChanged();
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (!other.getUnits().isEmpty()) {
        units_ = other.units_;
        onChanged();
      }
      if (!other.getTip().isEmpty()) {
        tip_ = other.tip_;
        onChanged();
      }
      if (other.getPrice() != 0) {
        setPrice(other.getPrice());
      }
      if (!other.getDrugName().isEmpty()) {
        drugName_ = other.drugName_;
        onChanged();
      }
      if (!other.getDrugSpec().isEmpty()) {
        drugSpec_ = other.drugSpec_;
        onChanged();
      }
      if (!other.getPinYinCode().isEmpty()) {
        pinYinCode_ = other.pinYinCode_;
        onChanged();
      }
      if (!other.getProductName().isEmpty()) {
        productName_ = other.productName_;
        onChanged();
      }
      if (other.getDrugStatus() != 0) {
        setDrugStatus(other.getDrugStatus());
      }
      if (other.getDrugType() != 0) {
        setDrugType(other.getDrugType());
      }
      if (!other.getSmallestUnit().isEmpty()) {
        smallestUnit_ = other.smallestUnit_;
        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.taihe.Drug parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.Drug) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object drugCode3Th_ = "";
    /**
     * <pre>
     *第三方公司药品编码
     * </pre>
     *
     * <code>string drugCode3th = 1;</code>
     * @return The drugCode3th.
     */
    public java.lang.String getDrugCode3Th() {
      java.lang.Object ref = drugCode3Th_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        drugCode3Th_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *第三方公司药品编码
     * </pre>
     *
     * <code>string drugCode3th = 1;</code>
     * @return The bytes for drugCode3th.
     */
    public com.google.protobuf.ByteString
        getDrugCode3ThBytes() {
      java.lang.Object ref = drugCode3Th_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugCode3Th_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *第三方公司药品编码
     * </pre>
     *
     * <code>string drugCode3th = 1;</code>
     * @param value The drugCode3th to set.
     * @return This builder for chaining.
     */
    public Builder setDrugCode3Th(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      drugCode3Th_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *第三方公司药品编码
     * </pre>
     *
     * <code>string drugCode3th = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDrugCode3Th() {
      
      drugCode3Th_ = getDefaultInstance().getDrugCode3Th();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *第三方公司药品编码
     * </pre>
     *
     * <code>string drugCode3th = 1;</code>
     * @param value The bytes for drugCode3th to set.
     * @return This builder for chaining.
     */
    public Builder setDrugCode3ThBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      drugCode3Th_ = value;
      onChanged();
      return this;
    }

    private double oneDosage_ ;
    /**
     * <pre>
     *单次服用剂量
     * </pre>
     *
     * <code>double oneDosage = 2;</code>
     * @return The oneDosage.
     */
    @java.lang.Override
    public double getOneDosage() {
      return oneDosage_;
    }
    /**
     * <pre>
     *单次服用剂量
     * </pre>
     *
     * <code>double oneDosage = 2;</code>
     * @param value The oneDosage to set.
     * @return This builder for chaining.
     */
    public Builder setOneDosage(double value) {
      
      oneDosage_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单次服用剂量
     * </pre>
     *
     * <code>double oneDosage = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearOneDosage() {
      
      oneDosage_ = 0D;
      onChanged();
      return this;
    }

    private java.lang.Object oneDosageUnit_ = "";
    /**
     * <pre>
     *单次服用剂量单位
     * </pre>
     *
     * <code>string oneDosageUnit = 3;</code>
     * @return The oneDosageUnit.
     */
    public java.lang.String getOneDosageUnit() {
      java.lang.Object ref = oneDosageUnit_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        oneDosageUnit_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *单次服用剂量单位
     * </pre>
     *
     * <code>string oneDosageUnit = 3;</code>
     * @return The bytes for oneDosageUnit.
     */
    public com.google.protobuf.ByteString
        getOneDosageUnitBytes() {
      java.lang.Object ref = oneDosageUnit_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        oneDosageUnit_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *单次服用剂量单位
     * </pre>
     *
     * <code>string oneDosageUnit = 3;</code>
     * @param value The oneDosageUnit to set.
     * @return This builder for chaining.
     */
    public Builder setOneDosageUnit(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      oneDosageUnit_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单次服用剂量单位
     * </pre>
     *
     * <code>string oneDosageUnit = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearOneDosageUnit() {
      
      oneDosageUnit_ = getDefaultInstance().getOneDosageUnit();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单次服用剂量单位
     * </pre>
     *
     * <code>string oneDosageUnit = 3;</code>
     * @param value The bytes for oneDosageUnit to set.
     * @return This builder for chaining.
     */
    public Builder setOneDosageUnitBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      oneDosageUnit_ = value;
      onChanged();
      return this;
    }

    private int amount_ ;
    /**
     * <pre>
     *整包装数量
     * </pre>
     *
     * <code>int32 amount = 4;</code>
     * @return The amount.
     */
    @java.lang.Override
    public int getAmount() {
      return amount_;
    }
    /**
     * <pre>
     *整包装数量
     * </pre>
     *
     * <code>int32 amount = 4;</code>
     * @param value The amount to set.
     * @return This builder for chaining.
     */
    public Builder setAmount(int value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *整包装数量
     * </pre>
     *
     * <code>int32 amount = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearAmount() {
      
      amount_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object units_ = "";
    /**
     * <pre>
     *整包装单位
     * </pre>
     *
     * <code>string units = 5;</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;
      }
    }
    /**
     * <pre>
     *整包装单位
     * </pre>
     *
     * <code>string units = 5;</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;
      }
    }
    /**
     * <pre>
     *整包装单位
     * </pre>
     *
     * <code>string units = 5;</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;
    }
    /**
     * <pre>
     *整包装单位
     * </pre>
     *
     * <code>string units = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearUnits() {
      
      units_ = getDefaultInstance().getUnits();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *整包装单位
     * </pre>
     *
     * <code>string units = 5;</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;
    }

    private java.lang.Object tip_ = "";
    /**
     * <pre>
     *药品提示
     * </pre>
     *
     * <code>string tip = 6;</code>
     * @return The tip.
     */
    public java.lang.String getTip() {
      java.lang.Object ref = tip_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        tip_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *药品提示
     * </pre>
     *
     * <code>string tip = 6;</code>
     * @return The bytes for tip.
     */
    public com.google.protobuf.ByteString
        getTipBytes() {
      java.lang.Object ref = tip_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        tip_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *药品提示
     * </pre>
     *
     * <code>string tip = 6;</code>
     * @param value The tip to set.
     * @return This builder for chaining.
     */
    public Builder setTip(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      tip_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品提示
     * </pre>
     *
     * <code>string tip = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearTip() {
      
      tip_ = getDefaultInstance().getTip();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品提示
     * </pre>
     *
     * <code>string tip = 6;</code>
     * @param value The bytes for tip to set.
     * @return This builder for chaining.
     */
    public Builder setTipBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      tip_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object drugName_ = "";
    /**
     * <pre>
     *药品名称
     * </pre>
     *
     * <code>string drugName = 8;</code>
     * @return The drugName.
     */
    public java.lang.String getDrugName() {
      java.lang.Object ref = drugName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        drugName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *药品名称
     * </pre>
     *
     * <code>string drugName = 8;</code>
     * @return The bytes for drugName.
     */
    public com.google.protobuf.ByteString
        getDrugNameBytes() {
      java.lang.Object ref = drugName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *药品名称
     * </pre>
     *
     * <code>string drugName = 8;</code>
     * @param value The drugName to set.
     * @return This builder for chaining.
     */
    public Builder setDrugName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      drugName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品名称
     * </pre>
     *
     * <code>string drugName = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearDrugName() {
      
      drugName_ = getDefaultInstance().getDrugName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品名称
     * </pre>
     *
     * <code>string drugName = 8;</code>
     * @param value The bytes for drugName to set.
     * @return This builder for chaining.
     */
    public Builder setDrugNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      drugName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object drugSpec_ = "";
    /**
     * <pre>
     *药品包装规格
     * </pre>
     *
     * <code>string drugSpec = 9;</code>
     * @return The drugSpec.
     */
    public java.lang.String getDrugSpec() {
      java.lang.Object ref = drugSpec_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        drugSpec_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *药品包装规格
     * </pre>
     *
     * <code>string drugSpec = 9;</code>
     * @return The bytes for drugSpec.
     */
    public com.google.protobuf.ByteString
        getDrugSpecBytes() {
      java.lang.Object ref = drugSpec_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        drugSpec_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *药品包装规格
     * </pre>
     *
     * <code>string drugSpec = 9;</code>
     * @param value The drugSpec to set.
     * @return This builder for chaining.
     */
    public Builder setDrugSpec(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      drugSpec_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品包装规格
     * </pre>
     *
     * <code>string drugSpec = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearDrugSpec() {
      
      drugSpec_ = getDefaultInstance().getDrugSpec();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品包装规格
     * </pre>
     *
     * <code>string drugSpec = 9;</code>
     * @param value The bytes for drugSpec to set.
     * @return This builder for chaining.
     */
    public Builder setDrugSpecBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      drugSpec_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object pinYinCode_ = "";
    /**
     * <pre>
     *拼音编码
     * </pre>
     *
     * <code>string pinYinCode = 10;</code>
     * @return The pinYinCode.
     */
    public java.lang.String getPinYinCode() {
      java.lang.Object ref = pinYinCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pinYinCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *拼音编码
     * </pre>
     *
     * <code>string pinYinCode = 10;</code>
     * @return The bytes for pinYinCode.
     */
    public com.google.protobuf.ByteString
        getPinYinCodeBytes() {
      java.lang.Object ref = pinYinCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pinYinCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *拼音编码
     * </pre>
     *
     * <code>string pinYinCode = 10;</code>
     * @param value The pinYinCode to set.
     * @return This builder for chaining.
     */
    public Builder setPinYinCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pinYinCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *拼音编码
     * </pre>
     *
     * <code>string pinYinCode = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearPinYinCode() {
      
      pinYinCode_ = getDefaultInstance().getPinYinCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *拼音编码
     * </pre>
     *
     * <code>string pinYinCode = 10;</code>
     * @param value The bytes for pinYinCode to set.
     * @return This builder for chaining.
     */
    public Builder setPinYinCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pinYinCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object productName_ = "";
    /**
     * <pre>
     *商品名
     * </pre>
     *
     * <code>string productName = 11;</code>
     * @return The productName.
     */
    public java.lang.String getProductName() {
      java.lang.Object ref = productName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        productName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *商品名
     * </pre>
     *
     * <code>string productName = 11;</code>
     * @return The bytes for productName.
     */
    public com.google.protobuf.ByteString
        getProductNameBytes() {
      java.lang.Object ref = productName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        productName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *商品名
     * </pre>
     *
     * <code>string productName = 11;</code>
     * @param value The productName to set.
     * @return This builder for chaining.
     */
    public Builder setProductName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      productName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商品名
     * </pre>
     *
     * <code>string productName = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearProductName() {
      
      productName_ = getDefaultInstance().getProductName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商品名
     * </pre>
     *
     * <code>string productName = 11;</code>
     * @param value The bytes for productName to set.
     * @return This builder for chaining.
     */
    public Builder setProductNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      productName_ = value;
      onChanged();
      return this;
    }

    private int drugStatus_ ;
    /**
     * <pre>
     *药品状态(1-正常 2-停用)
     * </pre>
     *
     * <code>int32 drugStatus = 12;</code>
     * @return The drugStatus.
     */
    @java.lang.Override
    public int getDrugStatus() {
      return drugStatus_;
    }
    /**
     * <pre>
     *药品状态(1-正常 2-停用)
     * </pre>
     *
     * <code>int32 drugStatus = 12;</code>
     * @param value The drugStatus to set.
     * @return This builder for chaining.
     */
    public Builder setDrugStatus(int value) {
      
      drugStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品状态(1-正常 2-停用)
     * </pre>
     *
     * <code>int32 drugStatus = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearDrugStatus() {
      
      drugStatus_ = 0;
      onChanged();
      return this;
    }

    private int drugType_ ;
    /**
     * <pre>
     *药品类型（1-中草药 2-中成药 3-西药）
     * </pre>
     *
     * <code>int32 drugType = 13;</code>
     * @return The drugType.
     */
    @java.lang.Override
    public int getDrugType() {
      return drugType_;
    }
    /**
     * <pre>
     *药品类型（1-中草药 2-中成药 3-西药）
     * </pre>
     *
     * <code>int32 drugType = 13;</code>
     * @param value The drugType to set.
     * @return This builder for chaining.
     */
    public Builder setDrugType(int value) {
      
      drugType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品类型（1-中草药 2-中成药 3-西药）
     * </pre>
     *
     * <code>int32 drugType = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearDrugType() {
      
      drugType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object smallestUnit_ = "";
    /**
     * <pre>
     *最小单位（剂量单位）	
     * </pre>
     *
     * <code>string smallestUnit = 14;</code>
     * @return The smallestUnit.
     */
    public java.lang.String getSmallestUnit() {
      java.lang.Object ref = smallestUnit_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        smallestUnit_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *最小单位（剂量单位）	
     * </pre>
     *
     * <code>string smallestUnit = 14;</code>
     * @return The bytes for smallestUnit.
     */
    public com.google.protobuf.ByteString
        getSmallestUnitBytes() {
      java.lang.Object ref = smallestUnit_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        smallestUnit_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *最小单位（剂量单位）	
     * </pre>
     *
     * <code>string smallestUnit = 14;</code>
     * @param value The smallestUnit to set.
     * @return This builder for chaining.
     */
    public Builder setSmallestUnit(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      smallestUnit_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *最小单位（剂量单位）	
     * </pre>
     *
     * <code>string smallestUnit = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearSmallestUnit() {
      
      smallestUnit_ = getDefaultInstance().getSmallestUnit();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *最小单位（剂量单位）	
     * </pre>
     *
     * <code>string smallestUnit = 14;</code>
     * @param value The bytes for smallestUnit to set.
     * @return This builder for chaining.
     */
    public Builder setSmallestUnitBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      smallestUnit_ = 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.taihe.Drug)
  }

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

  public static com.ywt.gapi.third.taihe.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.taihe.Drug getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

