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

package com.ywt.gapi.doctor;

/**
 * <pre>
 *医生对于医院的code
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.DoctorHisCode}
 */
public final class DoctorHisCode extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.DoctorHisCode)
    DoctorHisCodeOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DoctorHisCode.newBuilder() to construct.
  private DoctorHisCode(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private DoctorHisCode() {
    deptCode_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    doctorJobNum_ = "";
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new DoctorHisCode();
  }

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

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

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

            deptCode_ = s;
            break;
          }
          case 34: {
            String s = input.readStringRequireUtf8();

            doctorCode_ = s;
            break;
          }
          case 42: {
            String s = input.readStringRequireUtf8();

            doctorName_ = s;
            break;
          }
          case 50: {
            String s = input.readStringRequireUtf8();

            doctorJobNum_ = 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 DoctorProto.internal_static_com_ywt_gapi_user_DoctorHisCode_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return DoctorProto.internal_static_com_ywt_gapi_user_DoctorHisCode_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            DoctorHisCode.class, Builder.class);
  }

  public static final int DOCTORID_FIELD_NUMBER = 1;
  private int doctorId_;
  /**
   * <pre>
   *医生ID
   * </pre>
   *
   * <code>int32 doctorId = 1;</code>
   * @return The doctorId.
   */
  @Override
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 2;
  private int hospitalId_;
  /**
   * <pre>
   *医院ID
   * </pre>
   *
   * <code>int32 hospitalId = 2;</code>
   * @return The hospitalId.
   */
  @Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int DEPTCODE_FIELD_NUMBER = 3;
  private volatile Object deptCode_;
  /**
   * <pre>
   *his的部门编号
   * </pre>
   *
   * <code>string deptCode = 3;</code>
   * @return The deptCode.
   */
  @Override
  public String getDeptCode() {
    Object ref = deptCode_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      deptCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *his的部门编号
   * </pre>
   *
   * <code>string deptCode = 3;</code>
   * @return The bytes for deptCode.
   */
  @Override
  public com.google.protobuf.ByteString
      getDeptCodeBytes() {
    Object ref = deptCode_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      deptCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORCODE_FIELD_NUMBER = 4;
  private volatile Object doctorCode_;
  /**
   * <pre>
   *his的医生编号
   * </pre>
   *
   * <code>string doctorCode = 4;</code>
   * @return The doctorCode.
   */
  @Override
  public String getDoctorCode() {
    Object ref = doctorCode_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      doctorCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *his的医生编号
   * </pre>
   *
   * <code>string doctorCode = 4;</code>
   * @return The bytes for doctorCode.
   */
  @Override
  public com.google.protobuf.ByteString
      getDoctorCodeBytes() {
    Object ref = doctorCode_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      doctorCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 5;
  private volatile Object doctorName_;
  /**
   * <pre>
   *医生姓名
   * </pre>
   *
   * <code>string doctorName = 5;</code>
   * @return The doctorName.
   */
  @Override
  public String getDoctorName() {
    Object ref = doctorName_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生姓名
   * </pre>
   *
   * <code>string doctorName = 5;</code>
   * @return The bytes for doctorName.
   */
  @Override
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    Object ref = doctorName_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORJOBNUM_FIELD_NUMBER = 6;
  private volatile Object doctorJobNum_;
  /**
   * <pre>
   * 用于处方回写插入医嘱 &amp; 诊断的医生代码
   * </pre>
   *
   * <code>string doctorJobNum = 6;</code>
   * @return The doctorJobNum.
   */
  @Override
  public String getDoctorJobNum() {
    Object ref = doctorJobNum_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      doctorJobNum_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 用于处方回写插入医嘱 &amp; 诊断的医生代码
   * </pre>
   *
   * <code>string doctorJobNum = 6;</code>
   * @return The bytes for doctorJobNum.
   */
  @Override
  public com.google.protobuf.ByteString
      getDoctorJobNumBytes() {
    Object ref = doctorJobNum_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      doctorJobNum_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (doctorId_ != 0) {
      output.writeInt32(1, doctorId_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(2, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorJobNum_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, doctorJobNum_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, doctorId_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorJobNum_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, doctorJobNum_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof DoctorHisCode)) {
      return super.equals(obj);
    }
    DoctorHisCode other = (DoctorHisCode) obj;

    if (getDoctorId()
        != other.getDoctorId()) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getDeptCode()
        .equals(other.getDeptCode())) return false;
    if (!getDoctorCode()
        .equals(other.getDoctorCode())) return false;
    if (!getDoctorName()
        .equals(other.getDoctorName())) return false;
    if (!getDoctorJobNum()
        .equals(other.getDoctorJobNum())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + DEPTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDeptCode().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + DOCTORJOBNUM_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorJobNum().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(DoctorHisCode prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *医生对于医院的code
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.user.DoctorHisCode}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.DoctorHisCode)
      com.ywt.gapi.doctor.DoctorHisCodeOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return DoctorProto.internal_static_com_ywt_gapi_user_DoctorHisCode_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return DoctorProto.internal_static_com_ywt_gapi_user_DoctorHisCode_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              DoctorHisCode.class, Builder.class);
    }

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

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

      hospitalId_ = 0;

      deptCode_ = "";

      doctorCode_ = "";

      doctorName_ = "";

      doctorJobNum_ = "";

      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return DoctorProto.internal_static_com_ywt_gapi_user_DoctorHisCode_descriptor;
    }

    @Override
    public DoctorHisCode getDefaultInstanceForType() {
      return DoctorHisCode.getDefaultInstance();
    }

    @Override
    public DoctorHisCode build() {
      DoctorHisCode result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @Override
    public DoctorHisCode buildPartial() {
      DoctorHisCode result = new DoctorHisCode(this);
      result.doctorId_ = doctorId_;
      result.hospitalId_ = hospitalId_;
      result.deptCode_ = deptCode_;
      result.doctorCode_ = doctorCode_;
      result.doctorName_ = doctorName_;
      result.doctorJobNum_ = doctorJobNum_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(DoctorHisCode other) {
      if (other == DoctorHisCode.getDefaultInstance()) return this;
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getDeptCode().isEmpty()) {
        deptCode_ = other.deptCode_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getDoctorJobNum().isEmpty()) {
        doctorJobNum_ = other.doctorJobNum_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private int doctorId_ ;
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     * @return The doctorId.
     */
    @Override
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     * @param value The doctorId to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <pre>
     *医院ID
     * </pre>
     *
     * <code>int32 hospitalId = 2;</code>
     * @return The hospitalId.
     */
    @Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <pre>
     *医院ID
     * </pre>
     *
     * <code>int32 hospitalId = 2;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院ID
     * </pre>
     *
     * <code>int32 hospitalId = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private Object deptCode_ = "";
    /**
     * <pre>
     *his的部门编号
     * </pre>
     *
     * <code>string deptCode = 3;</code>
     * @return The deptCode.
     */
    public String getDeptCode() {
      Object ref = deptCode_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        deptCode_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *his的部门编号
     * </pre>
     *
     * <code>string deptCode = 3;</code>
     * @return The bytes for deptCode.
     */
    public com.google.protobuf.ByteString
        getDeptCodeBytes() {
      Object ref = deptCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        deptCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *his的部门编号
     * </pre>
     *
     * <code>string deptCode = 3;</code>
     * @param value The deptCode to set.
     * @return This builder for chaining.
     */
    public Builder setDeptCode(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *his的部门编号
     * </pre>
     *
     * <code>string deptCode = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *his的部门编号
     * </pre>
     *
     * <code>string deptCode = 3;</code>
     * @param value The bytes for deptCode to set.
     * @return This builder for chaining.
     */
    public Builder setDeptCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptCode_ = value;
      onChanged();
      return this;
    }

    private Object doctorCode_ = "";
    /**
     * <pre>
     *his的医生编号
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     * @return The doctorCode.
     */
    public String getDoctorCode() {
      Object ref = doctorCode_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        doctorCode_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *his的医生编号
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     * @return The bytes for doctorCode.
     */
    public com.google.protobuf.ByteString
        getDoctorCodeBytes() {
      Object ref = doctorCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        doctorCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *his的医生编号
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     * @param value The doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCode(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *his的医生编号
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *his的医生编号
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     * @param value The bytes for doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorCode_ = value;
      onChanged();
      return this;
    }

    private Object doctorName_ = "";
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     * @return The doctorName.
     */
    public String getDoctorName() {
      Object ref = doctorName_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     * @return The bytes for doctorName.
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     * @param value The doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorName(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生姓名
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     * @param value The bytes for doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private Object doctorJobNum_ = "";
    /**
     * <pre>
     * 用于处方回写插入医嘱 &amp; 诊断的医生代码
     * </pre>
     *
     * <code>string doctorJobNum = 6;</code>
     * @return The doctorJobNum.
     */
    public String getDoctorJobNum() {
      Object ref = doctorJobNum_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        doctorJobNum_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     * 用于处方回写插入医嘱 &amp; 诊断的医生代码
     * </pre>
     *
     * <code>string doctorJobNum = 6;</code>
     * @return The bytes for doctorJobNum.
     */
    public com.google.protobuf.ByteString
        getDoctorJobNumBytes() {
      Object ref = doctorJobNum_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        doctorJobNum_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 用于处方回写插入医嘱 &amp; 诊断的医生代码
     * </pre>
     *
     * <code>string doctorJobNum = 6;</code>
     * @param value The doctorJobNum to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorJobNum(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorJobNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 用于处方回写插入医嘱 &amp; 诊断的医生代码
     * </pre>
     *
     * <code>string doctorJobNum = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorJobNum() {
      
      doctorJobNum_ = getDefaultInstance().getDoctorJobNum();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 用于处方回写插入医嘱 &amp; 诊断的医生代码
     * </pre>
     *
     * <code>string doctorJobNum = 6;</code>
     * @param value The bytes for doctorJobNum to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorJobNumBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorJobNum_ = value;
      onChanged();
      return this;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.user.DoctorHisCode)
  }

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

  public static DoctorHisCode getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @Override
  public DoctorHisCode getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

