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

package com.ywt.gapi.drug;

/**
 * Protobuf type {@code com.ywt.gapi.drug.DrugInstruction}
 */
public  final class DrugInstruction extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.DrugInstruction)
    DrugInstructionOrBuilder {
  // Use DrugInstruction.newBuilder() to construct.
  private DrugInstruction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private DrugInstruction() {
    id_ = 0;
    commonName_ = "";
    productNo_ = "";
    approvalNo_ = "";
    spec_ = "";
    producer_ = "";
    description_ = "";
    efficacy_ = "";
    indication_ = "";
    dosage_ = "";
    rawContent_ = "";
  }

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

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

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

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

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

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

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

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

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

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

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

            rawContent_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_DrugInstruction_descriptor;
  }

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

  public static final int ID_FIELD_NUMBER = 1;
  private int id_;
  /**
   * <pre>
   * 主键
   * </pre>
   *
   * <code>int32 id = 1;</code>
   */
  public int getId() {
    return id_;
  }

  public static final int COMMONNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object commonName_;
  /**
   * <pre>
   * 通用名称
   * </pre>
   *
   * <code>string commonName = 2;</code>
   */
  public java.lang.String getCommonName() {
    java.lang.Object ref = commonName_;
    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();
      commonName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 通用名称
   * </pre>
   *
   * <code>string commonName = 2;</code>
   */
  public com.google.protobuf.ByteString
      getCommonNameBytes() {
    java.lang.Object ref = commonName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      commonName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRODUCTNO_FIELD_NUMBER = 3;
  private volatile java.lang.Object productNo_;
  /**
   * <pre>
   * 产品编号
   * </pre>
   *
   * <code>string productNo = 3;</code>
   */
  public java.lang.String getProductNo() {
    java.lang.Object ref = productNo_;
    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();
      productNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 产品编号
   * </pre>
   *
   * <code>string productNo = 3;</code>
   */
  public com.google.protobuf.ByteString
      getProductNoBytes() {
    java.lang.Object ref = productNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      productNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int APPROVALNO_FIELD_NUMBER = 4;
  private volatile java.lang.Object approvalNo_;
  /**
   * <pre>
   * 批准文号
   * </pre>
   *
   * <code>string approvalNo = 4;</code>
   */
  public java.lang.String getApprovalNo() {
    java.lang.Object ref = approvalNo_;
    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();
      approvalNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 批准文号
   * </pre>
   *
   * <code>string approvalNo = 4;</code>
   */
  public com.google.protobuf.ByteString
      getApprovalNoBytes() {
    java.lang.Object ref = approvalNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      approvalNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SPEC_FIELD_NUMBER = 5;
  private volatile java.lang.Object spec_;
  /**
   * <pre>
   * 产品规格
   * </pre>
   *
   * <code>string spec = 5;</code>
   */
  public java.lang.String getSpec() {
    java.lang.Object ref = spec_;
    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();
      spec_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 产品规格
   * </pre>
   *
   * <code>string spec = 5;</code>
   */
  public com.google.protobuf.ByteString
      getSpecBytes() {
    java.lang.Object ref = spec_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      spec_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRODUCER_FIELD_NUMBER = 6;
  private volatile java.lang.Object producer_;
  /**
   * <pre>
   * 生产厂家
   * </pre>
   *
   * <code>string producer = 6;</code>
   */
  public java.lang.String getProducer() {
    java.lang.Object ref = producer_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      producer_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 生产厂家
   * </pre>
   *
   * <code>string producer = 6;</code>
   */
  public com.google.protobuf.ByteString
      getProducerBytes() {
    java.lang.Object ref = producer_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      producer_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 7;
  private volatile java.lang.Object description_;
  /**
   * <pre>
   * 概述
   * </pre>
   *
   * <code>string description = 7;</code>
   */
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      description_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 概述
   * </pre>
   *
   * <code>string description = 7;</code>
   */
  public com.google.protobuf.ByteString
      getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EFFICACY_FIELD_NUMBER = 8;
  private volatile java.lang.Object efficacy_;
  /**
   * <pre>
   * 主要功效
   * </pre>
   *
   * <code>string efficacy = 8;</code>
   */
  public java.lang.String getEfficacy() {
    java.lang.Object ref = efficacy_;
    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();
      efficacy_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 主要功效
   * </pre>
   *
   * <code>string efficacy = 8;</code>
   */
  public com.google.protobuf.ByteString
      getEfficacyBytes() {
    java.lang.Object ref = efficacy_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      efficacy_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INDICATION_FIELD_NUMBER = 9;
  private volatile java.lang.Object indication_;
  /**
   * <pre>
   * 适应病症
   * </pre>
   *
   * <code>string indication = 9;</code>
   */
  public java.lang.String getIndication() {
    java.lang.Object ref = indication_;
    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();
      indication_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 适应病症
   * </pre>
   *
   * <code>string indication = 9;</code>
   */
  public com.google.protobuf.ByteString
      getIndicationBytes() {
    java.lang.Object ref = indication_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      indication_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOSAGE_FIELD_NUMBER = 10;
  private volatile java.lang.Object dosage_;
  /**
   * <pre>
   * 用法用量
   * </pre>
   *
   * <code>string dosage = 10;</code>
   */
  public java.lang.String getDosage() {
    java.lang.Object ref = dosage_;
    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();
      dosage_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 用法用量
   * </pre>
   *
   * <code>string dosage = 10;</code>
   */
  public com.google.protobuf.ByteString
      getDosageBytes() {
    java.lang.Object ref = dosage_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dosage_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RAWCONTENT_FIELD_NUMBER = 11;
  private volatile java.lang.Object rawContent_;
  /**
   * <pre>
   * 直接返回查询到的所有字段，客户端自行解析
   * </pre>
   *
   * <code>string rawContent = 11;</code>
   */
  public java.lang.String getRawContent() {
    java.lang.Object ref = rawContent_;
    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();
      rawContent_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 直接返回查询到的所有字段，客户端自行解析
   * </pre>
   *
   * <code>string rawContent = 11;</code>
   */
  public com.google.protobuf.ByteString
      getRawContentBytes() {
    java.lang.Object ref = rawContent_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      rawContent_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (id_ != 0) {
      output.writeInt32(1, id_);
    }
    if (!getCommonNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commonName_);
    }
    if (!getProductNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, productNo_);
    }
    if (!getApprovalNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, approvalNo_);
    }
    if (!getSpecBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, spec_);
    }
    if (!getProducerBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, producer_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_);
    }
    if (!getEfficacyBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, efficacy_);
    }
    if (!getIndicationBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, indication_);
    }
    if (!getDosageBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, dosage_);
    }
    if (!getRawContentBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, rawContent_);
    }
  }

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

    size = 0;
    if (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, id_);
    }
    if (!getCommonNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commonName_);
    }
    if (!getProductNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productNo_);
    }
    if (!getApprovalNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, approvalNo_);
    }
    if (!getSpecBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, spec_);
    }
    if (!getProducerBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, producer_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_);
    }
    if (!getEfficacyBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, efficacy_);
    }
    if (!getIndicationBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, indication_);
    }
    if (!getDosageBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, dosage_);
    }
    if (!getRawContentBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, rawContent_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && (getId()
        == other.getId());
    result = result && getCommonName()
        .equals(other.getCommonName());
    result = result && getProductNo()
        .equals(other.getProductNo());
    result = result && getApprovalNo()
        .equals(other.getApprovalNo());
    result = result && getSpec()
        .equals(other.getSpec());
    result = result && getProducer()
        .equals(other.getProducer());
    result = result && getDescription()
        .equals(other.getDescription());
    result = result && getEfficacy()
        .equals(other.getEfficacy());
    result = result && getIndication()
        .equals(other.getIndication());
    result = result && getDosage()
        .equals(other.getDosage());
    result = result && getRawContent()
        .equals(other.getRawContent());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + COMMONNAME_FIELD_NUMBER;
    hash = (53 * hash) + getCommonName().hashCode();
    hash = (37 * hash) + PRODUCTNO_FIELD_NUMBER;
    hash = (53 * hash) + getProductNo().hashCode();
    hash = (37 * hash) + APPROVALNO_FIELD_NUMBER;
    hash = (53 * hash) + getApprovalNo().hashCode();
    hash = (37 * hash) + SPEC_FIELD_NUMBER;
    hash = (53 * hash) + getSpec().hashCode();
    hash = (37 * hash) + PRODUCER_FIELD_NUMBER;
    hash = (53 * hash) + getProducer().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    hash = (37 * hash) + EFFICACY_FIELD_NUMBER;
    hash = (53 * hash) + getEfficacy().hashCode();
    hash = (37 * hash) + INDICATION_FIELD_NUMBER;
    hash = (53 * hash) + getIndication().hashCode();
    hash = (37 * hash) + DOSAGE_FIELD_NUMBER;
    hash = (53 * hash) + getDosage().hashCode();
    hash = (37 * hash) + RAWCONTENT_FIELD_NUMBER;
    hash = (53 * hash) + getRawContent().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.DrugInstruction parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.drug.DrugInstruction}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.DrugInstruction)
      com.ywt.gapi.drug.DrugInstructionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_DrugInstruction_descriptor;
    }

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

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

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

      commonName_ = "";

      productNo_ = "";

      approvalNo_ = "";

      spec_ = "";

      producer_ = "";

      description_ = "";

      efficacy_ = "";

      indication_ = "";

      dosage_ = "";

      rawContent_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.drug.DrugInstruction buildPartial() {
      com.ywt.gapi.drug.DrugInstruction result = new com.ywt.gapi.drug.DrugInstruction(this);
      result.id_ = id_;
      result.commonName_ = commonName_;
      result.productNo_ = productNo_;
      result.approvalNo_ = approvalNo_;
      result.spec_ = spec_;
      result.producer_ = producer_;
      result.description_ = description_;
      result.efficacy_ = efficacy_;
      result.indication_ = indication_;
      result.dosage_ = dosage_;
      result.rawContent_ = rawContent_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.drug.DrugInstruction other) {
      if (other == com.ywt.gapi.drug.DrugInstruction.getDefaultInstance()) return this;
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (!other.getCommonName().isEmpty()) {
        commonName_ = other.commonName_;
        onChanged();
      }
      if (!other.getProductNo().isEmpty()) {
        productNo_ = other.productNo_;
        onChanged();
      }
      if (!other.getApprovalNo().isEmpty()) {
        approvalNo_ = other.approvalNo_;
        onChanged();
      }
      if (!other.getSpec().isEmpty()) {
        spec_ = other.spec_;
        onChanged();
      }
      if (!other.getProducer().isEmpty()) {
        producer_ = other.producer_;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        onChanged();
      }
      if (!other.getEfficacy().isEmpty()) {
        efficacy_ = other.efficacy_;
        onChanged();
      }
      if (!other.getIndication().isEmpty()) {
        indication_ = other.indication_;
        onChanged();
      }
      if (!other.getDosage().isEmpty()) {
        dosage_ = other.dosage_;
        onChanged();
      }
      if (!other.getRawContent().isEmpty()) {
        rawContent_ = other.rawContent_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private int id_ ;
    /**
     * <pre>
     * 主键
     * </pre>
     *
     * <code>int32 id = 1;</code>
     */
    public int getId() {
      return id_;
    }
    /**
     * <pre>
     * 主键
     * </pre>
     *
     * <code>int32 id = 1;</code>
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 主键
     * </pre>
     *
     * <code>int32 id = 1;</code>
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object commonName_ = "";
    /**
     * <pre>
     * 通用名称
     * </pre>
     *
     * <code>string commonName = 2;</code>
     */
    public java.lang.String getCommonName() {
      java.lang.Object ref = commonName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        commonName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 通用名称
     * </pre>
     *
     * <code>string commonName = 2;</code>
     */
    public com.google.protobuf.ByteString
        getCommonNameBytes() {
      java.lang.Object ref = commonName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        commonName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 通用名称
     * </pre>
     *
     * <code>string commonName = 2;</code>
     */
    public Builder setCommonName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      commonName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 通用名称
     * </pre>
     *
     * <code>string commonName = 2;</code>
     */
    public Builder clearCommonName() {
      
      commonName_ = getDefaultInstance().getCommonName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 通用名称
     * </pre>
     *
     * <code>string commonName = 2;</code>
     */
    public Builder setCommonNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      commonName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object productNo_ = "";
    /**
     * <pre>
     * 产品编号
     * </pre>
     *
     * <code>string productNo = 3;</code>
     */
    public java.lang.String getProductNo() {
      java.lang.Object ref = productNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        productNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 产品编号
     * </pre>
     *
     * <code>string productNo = 3;</code>
     */
    public com.google.protobuf.ByteString
        getProductNoBytes() {
      java.lang.Object ref = productNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        productNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 产品编号
     * </pre>
     *
     * <code>string productNo = 3;</code>
     */
    public Builder setProductNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      productNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 产品编号
     * </pre>
     *
     * <code>string productNo = 3;</code>
     */
    public Builder clearProductNo() {
      
      productNo_ = getDefaultInstance().getProductNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 产品编号
     * </pre>
     *
     * <code>string productNo = 3;</code>
     */
    public Builder setProductNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      productNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object approvalNo_ = "";
    /**
     * <pre>
     * 批准文号
     * </pre>
     *
     * <code>string approvalNo = 4;</code>
     */
    public java.lang.String getApprovalNo() {
      java.lang.Object ref = approvalNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        approvalNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 批准文号
     * </pre>
     *
     * <code>string approvalNo = 4;</code>
     */
    public com.google.protobuf.ByteString
        getApprovalNoBytes() {
      java.lang.Object ref = approvalNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        approvalNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 批准文号
     * </pre>
     *
     * <code>string approvalNo = 4;</code>
     */
    public Builder setApprovalNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      approvalNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 批准文号
     * </pre>
     *
     * <code>string approvalNo = 4;</code>
     */
    public Builder clearApprovalNo() {
      
      approvalNo_ = getDefaultInstance().getApprovalNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 批准文号
     * </pre>
     *
     * <code>string approvalNo = 4;</code>
     */
    public Builder setApprovalNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      approvalNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object spec_ = "";
    /**
     * <pre>
     * 产品规格
     * </pre>
     *
     * <code>string spec = 5;</code>
     */
    public java.lang.String getSpec() {
      java.lang.Object ref = spec_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        spec_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 产品规格
     * </pre>
     *
     * <code>string spec = 5;</code>
     */
    public com.google.protobuf.ByteString
        getSpecBytes() {
      java.lang.Object ref = spec_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        spec_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 产品规格
     * </pre>
     *
     * <code>string spec = 5;</code>
     */
    public Builder setSpec(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      spec_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 产品规格
     * </pre>
     *
     * <code>string spec = 5;</code>
     */
    public Builder clearSpec() {
      
      spec_ = getDefaultInstance().getSpec();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 产品规格
     * </pre>
     *
     * <code>string spec = 5;</code>
     */
    public Builder setSpecBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      spec_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object producer_ = "";
    /**
     * <pre>
     * 生产厂家
     * </pre>
     *
     * <code>string producer = 6;</code>
     */
    public java.lang.String getProducer() {
      java.lang.Object ref = producer_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        producer_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 生产厂家
     * </pre>
     *
     * <code>string producer = 6;</code>
     */
    public com.google.protobuf.ByteString
        getProducerBytes() {
      java.lang.Object ref = producer_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        producer_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 生产厂家
     * </pre>
     *
     * <code>string producer = 6;</code>
     */
    public Builder setProducer(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      producer_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 生产厂家
     * </pre>
     *
     * <code>string producer = 6;</code>
     */
    public Builder clearProducer() {
      
      producer_ = getDefaultInstance().getProducer();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 生产厂家
     * </pre>
     *
     * <code>string producer = 6;</code>
     */
    public Builder setProducerBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      producer_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object efficacy_ = "";
    /**
     * <pre>
     * 主要功效
     * </pre>
     *
     * <code>string efficacy = 8;</code>
     */
    public java.lang.String getEfficacy() {
      java.lang.Object ref = efficacy_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        efficacy_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 主要功效
     * </pre>
     *
     * <code>string efficacy = 8;</code>
     */
    public com.google.protobuf.ByteString
        getEfficacyBytes() {
      java.lang.Object ref = efficacy_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        efficacy_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 主要功效
     * </pre>
     *
     * <code>string efficacy = 8;</code>
     */
    public Builder setEfficacy(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      efficacy_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 主要功效
     * </pre>
     *
     * <code>string efficacy = 8;</code>
     */
    public Builder clearEfficacy() {
      
      efficacy_ = getDefaultInstance().getEfficacy();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 主要功效
     * </pre>
     *
     * <code>string efficacy = 8;</code>
     */
    public Builder setEfficacyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      efficacy_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object indication_ = "";
    /**
     * <pre>
     * 适应病症
     * </pre>
     *
     * <code>string indication = 9;</code>
     */
    public java.lang.String getIndication() {
      java.lang.Object ref = indication_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        indication_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 适应病症
     * </pre>
     *
     * <code>string indication = 9;</code>
     */
    public com.google.protobuf.ByteString
        getIndicationBytes() {
      java.lang.Object ref = indication_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        indication_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 适应病症
     * </pre>
     *
     * <code>string indication = 9;</code>
     */
    public Builder setIndication(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      indication_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 适应病症
     * </pre>
     *
     * <code>string indication = 9;</code>
     */
    public Builder clearIndication() {
      
      indication_ = getDefaultInstance().getIndication();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 适应病症
     * </pre>
     *
     * <code>string indication = 9;</code>
     */
    public Builder setIndicationBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      indication_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dosage_ = "";
    /**
     * <pre>
     * 用法用量
     * </pre>
     *
     * <code>string dosage = 10;</code>
     */
    public java.lang.String getDosage() {
      java.lang.Object ref = dosage_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dosage_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 用法用量
     * </pre>
     *
     * <code>string dosage = 10;</code>
     */
    public com.google.protobuf.ByteString
        getDosageBytes() {
      java.lang.Object ref = dosage_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dosage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 用法用量
     * </pre>
     *
     * <code>string dosage = 10;</code>
     */
    public Builder setDosage(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      dosage_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 用法用量
     * </pre>
     *
     * <code>string dosage = 10;</code>
     */
    public Builder clearDosage() {
      
      dosage_ = getDefaultInstance().getDosage();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 用法用量
     * </pre>
     *
     * <code>string dosage = 10;</code>
     */
    public Builder setDosageBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      dosage_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object rawContent_ = "";
    /**
     * <pre>
     * 直接返回查询到的所有字段，客户端自行解析
     * </pre>
     *
     * <code>string rawContent = 11;</code>
     */
    public java.lang.String getRawContent() {
      java.lang.Object ref = rawContent_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        rawContent_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 直接返回查询到的所有字段，客户端自行解析
     * </pre>
     *
     * <code>string rawContent = 11;</code>
     */
    public com.google.protobuf.ByteString
        getRawContentBytes() {
      java.lang.Object ref = rawContent_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        rawContent_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 直接返回查询到的所有字段，客户端自行解析
     * </pre>
     *
     * <code>string rawContent = 11;</code>
     */
    public Builder setRawContent(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      rawContent_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 直接返回查询到的所有字段，客户端自行解析
     * </pre>
     *
     * <code>string rawContent = 11;</code>
     */
    public Builder clearRawContent() {
      
      rawContent_ = getDefaultInstance().getRawContent();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 直接返回查询到的所有字段，客户端自行解析
     * </pre>
     *
     * <code>string rawContent = 11;</code>
     */
    public Builder setRawContentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      rawContent_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


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

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

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

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

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

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

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

}

