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

package com.ywt.gapi.med_equip;

/**
 * Protobuf type {@code com.ywt.gapi.med_equip.Equip}
 */
public final class Equip extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.med_equip.Equip)
    EquipOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Equip.newBuilder() to construct.
  private Equip(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Equip() {
    name_ = "";
    deptName_ = "";
    payCode_ = "";
    equipCode_ = "";
  }

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

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

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

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

            deptName_ = s;
            break;
          }
          case 32: {

            deptId_ = input.readInt32();
            break;
          }
          case 40: {

            hospitalId_ = input.readInt32();
            break;
          }
          case 48: {

            status_ = input.readInt32();
            break;
          }
          case 56: {

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

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

            equipCode_ = 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.med_equip.MedEquipProto.internal_static_com_ywt_gapi_med_equip_Equip_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.med_equip.MedEquipProto.internal_static_com_ywt_gapi_med_equip_Equip_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.med_equip.Equip.class, com.ywt.gapi.med_equip.Equip.Builder.class);
  }

  public static final int ID_FIELD_NUMBER = 1;
  private int id_;
  /**
   * <code>int32 id = 1;</code>
   * @return The id.
   */
  @java.lang.Override
  public int getId() {
    return id_;
  }

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

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

  public static final int DEPTID_FIELD_NUMBER = 4;
  private int deptId_;
  /**
   * <code>int32 deptId = 4;</code>
   * @return The deptId.
   */
  @java.lang.Override
  public int getDeptId() {
    return deptId_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 5;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 5;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int STATUS_FIELD_NUMBER = 6;
  private int status_;
  /**
   * <code>int32 status = 6;</code>
   * @return The status.
   */
  @java.lang.Override
  public int getStatus() {
    return status_;
  }

  public static final int OCCUPATIONSTATUS_FIELD_NUMBER = 7;
  private int occupationStatus_;
  /**
   * <pre>
   * 占用状态：0-未用，1-使用中
   * </pre>
   *
   * <code>int32 occupationStatus = 7;</code>
   * @return The occupationStatus.
   */
  @java.lang.Override
  public int getOccupationStatus() {
    return occupationStatus_;
  }

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

  public static final int EQUIPCODE_FIELD_NUMBER = 9;
  private volatile java.lang.Object equipCode_;
  /**
   * <code>string equipCode = 9;</code>
   * @return The equipCode.
   */
  @java.lang.Override
  public java.lang.String getEquipCode() {
    java.lang.Object ref = equipCode_;
    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();
      equipCode_ = s;
      return s;
    }
  }
  /**
   * <code>string equipCode = 9;</code>
   * @return The bytes for equipCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEquipCodeBytes() {
    java.lang.Object ref = equipCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      equipCode_ = 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 (id_ != 0) {
      output.writeInt32(1, id_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deptName_);
    }
    if (deptId_ != 0) {
      output.writeInt32(4, deptId_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(5, hospitalId_);
    }
    if (status_ != 0) {
      output.writeInt32(6, status_);
    }
    if (occupationStatus_ != 0) {
      output.writeInt32(7, occupationStatus_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, payCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(equipCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, equipCode_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deptName_);
    }
    if (deptId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, deptId_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, hospitalId_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, status_);
    }
    if (occupationStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, occupationStatus_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, payCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(equipCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, equipCode_);
    }
    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.med_equip.Equip)) {
      return super.equals(obj);
    }
    com.ywt.gapi.med_equip.Equip other = (com.ywt.gapi.med_equip.Equip) obj;

    if (getId()
        != other.getId()) return false;
    if (!getName()
        .equals(other.getName())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (getDeptId()
        != other.getDeptId()) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (getStatus()
        != other.getStatus()) return false;
    if (getOccupationStatus()
        != other.getOccupationStatus()) return false;
    if (!getPayCode()
        .equals(other.getPayCode())) return false;
    if (!getEquipCode()
        .equals(other.getEquipCode())) 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) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DEPTID_FIELD_NUMBER;
    hash = (53 * hash) + getDeptId();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + OCCUPATIONSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getOccupationStatus();
    hash = (37 * hash) + PAYCODE_FIELD_NUMBER;
    hash = (53 * hash) + getPayCode().hashCode();
    hash = (37 * hash) + EQUIPCODE_FIELD_NUMBER;
    hash = (53 * hash) + getEquipCode().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.med_equip.MedEquipProto.internal_static_com_ywt_gapi_med_equip_Equip_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.med_equip.Equip.class, com.ywt.gapi.med_equip.Equip.Builder.class);
    }

    // Construct using com.ywt.gapi.med_equip.Equip.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();
      id_ = 0;

      name_ = "";

      deptName_ = "";

      deptId_ = 0;

      hospitalId_ = 0;

      status_ = 0;

      occupationStatus_ = 0;

      payCode_ = "";

      equipCode_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.med_equip.MedEquipProto.internal_static_com_ywt_gapi_med_equip_Equip_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.med_equip.Equip getDefaultInstanceForType() {
      return com.ywt.gapi.med_equip.Equip.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.med_equip.Equip buildPartial() {
      com.ywt.gapi.med_equip.Equip result = new com.ywt.gapi.med_equip.Equip(this);
      result.id_ = id_;
      result.name_ = name_;
      result.deptName_ = deptName_;
      result.deptId_ = deptId_;
      result.hospitalId_ = hospitalId_;
      result.status_ = status_;
      result.occupationStatus_ = occupationStatus_;
      result.payCode_ = payCode_;
      result.equipCode_ = equipCode_;
      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.med_equip.Equip) {
        return mergeFrom((com.ywt.gapi.med_equip.Equip)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.med_equip.Equip other) {
      if (other == com.ywt.gapi.med_equip.Equip.getDefaultInstance()) return this;
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (other.getDeptId() != 0) {
        setDeptId(other.getDeptId());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getOccupationStatus() != 0) {
        setOccupationStatus(other.getOccupationStatus());
      }
      if (!other.getPayCode().isEmpty()) {
        payCode_ = other.payCode_;
        onChanged();
      }
      if (!other.getEquipCode().isEmpty()) {
        equipCode_ = other.equipCode_;
        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.med_equip.Equip parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.med_equip.Equip) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int id_ ;
    /**
     * <code>int32 id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public int getId() {
      return id_;
    }
    /**
     * <code>int32 id = 1;</code>
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 id = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

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

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

    private int deptId_ ;
    /**
     * <code>int32 deptId = 4;</code>
     * @return The deptId.
     */
    @java.lang.Override
    public int getDeptId() {
      return deptId_;
    }
    /**
     * <code>int32 deptId = 4;</code>
     * @param value The deptId to set.
     * @return This builder for chaining.
     */
    public Builder setDeptId(int value) {
      
      deptId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 deptId = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptId() {
      
      deptId_ = 0;
      onChanged();
      return this;
    }

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

    private int status_ ;
    /**
     * <code>int32 status = 6;</code>
     * @return The status.
     */
    @java.lang.Override
    public int getStatus() {
      return status_;
    }
    /**
     * <code>int32 status = 6;</code>
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private int occupationStatus_ ;
    /**
     * <pre>
     * 占用状态：0-未用，1-使用中
     * </pre>
     *
     * <code>int32 occupationStatus = 7;</code>
     * @return The occupationStatus.
     */
    @java.lang.Override
    public int getOccupationStatus() {
      return occupationStatus_;
    }
    /**
     * <pre>
     * 占用状态：0-未用，1-使用中
     * </pre>
     *
     * <code>int32 occupationStatus = 7;</code>
     * @param value The occupationStatus to set.
     * @return This builder for chaining.
     */
    public Builder setOccupationStatus(int value) {
      
      occupationStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 占用状态：0-未用，1-使用中
     * </pre>
     *
     * <code>int32 occupationStatus = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearOccupationStatus() {
      
      occupationStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object payCode_ = "";
    /**
     * <code>string payCode = 8;</code>
     * @return The payCode.
     */
    public java.lang.String getPayCode() {
      java.lang.Object ref = payCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string payCode = 8;</code>
     * @return The bytes for payCode.
     */
    public com.google.protobuf.ByteString
        getPayCodeBytes() {
      java.lang.Object ref = payCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payCode = 8;</code>
     * @param value The payCode to set.
     * @return This builder for chaining.
     */
    public Builder setPayCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payCode = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayCode() {
      
      payCode_ = getDefaultInstance().getPayCode();
      onChanged();
      return this;
    }
    /**
     * <code>string payCode = 8;</code>
     * @param value The bytes for payCode to set.
     * @return This builder for chaining.
     */
    public Builder setPayCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object equipCode_ = "";
    /**
     * <code>string equipCode = 9;</code>
     * @return The equipCode.
     */
    public java.lang.String getEquipCode() {
      java.lang.Object ref = equipCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        equipCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string equipCode = 9;</code>
     * @return The bytes for equipCode.
     */
    public com.google.protobuf.ByteString
        getEquipCodeBytes() {
      java.lang.Object ref = equipCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        equipCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string equipCode = 9;</code>
     * @param value The equipCode to set.
     * @return This builder for chaining.
     */
    public Builder setEquipCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      equipCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string equipCode = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearEquipCode() {
      
      equipCode_ = getDefaultInstance().getEquipCode();
      onChanged();
      return this;
    }
    /**
     * <code>string equipCode = 9;</code>
     * @param value The bytes for equipCode to set.
     * @return This builder for chaining.
     */
    public Builder setEquipCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      equipCode_ = 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.med_equip.Equip)
  }

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

  public static com.ywt.gapi.med_equip.Equip getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.med_equip.Equip getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

