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

package com.ywt.gapi.system;

/**
 * Protobuf type {@code com.ywt.gapi.system.Hospital}
 */
public final class Hospital extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.system.Hospital)
    HospitalOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Hospital.newBuilder() to construct.
  private Hospital(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Hospital() {
    hospitalName_ = "";
    areaIds_ = "";
    logo_ = "";
    address_ = "";
  }

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

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

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

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

            areaIds_ = s;
            break;
          }
          case 32: {

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

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

            address_ = s;
            break;
          }
          case 56: {

            registerable_ = input.readInt32();
            break;
          }
          case 64: {

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

            parentId_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Hospital_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Hospital_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.system.Hospital.class, com.ywt.gapi.system.Hospital.Builder.class);
  }

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

  public static final int HOSPITALNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object hospitalName_;
  /**
   * <pre>
   *医院名称
   * </pre>
   *
   * <code>string hospitalName = 2;</code>
   * @return The hospitalName.
   */
  @java.lang.Override
  public java.lang.String getHospitalName() {
    java.lang.Object ref = hospitalName_;
    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();
      hospitalName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院名称
   * </pre>
   *
   * <code>string hospitalName = 2;</code>
   * @return The bytes for hospitalName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHospitalNameBytes() {
    java.lang.Object ref = hospitalName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hospitalName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AREAIDS_FIELD_NUMBER = 3;
  private volatile java.lang.Object areaIds_;
  /**
   * <pre>
   *地区Id
   * </pre>
   *
   * <code>string areaIds = 3;</code>
   * @return The areaIds.
   */
  @java.lang.Override
  public java.lang.String getAreaIds() {
    java.lang.Object ref = areaIds_;
    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();
      areaIds_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *地区Id
   * </pre>
   *
   * <code>string areaIds = 3;</code>
   * @return The bytes for areaIds.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAreaIdsBytes() {
    java.lang.Object ref = areaIds_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      areaIds_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LEVEL_FIELD_NUMBER = 4;
  private int level_;
  /**
   * <pre>
   *医院等级
   * </pre>
   *
   * <code>int32 level = 4;</code>
   * @return The level.
   */
  @java.lang.Override
  public int getLevel() {
    return level_;
  }

  public static final int LOGO_FIELD_NUMBER = 5;
  private volatile java.lang.Object logo_;
  /**
   * <pre>
   *医院Logo
   * </pre>
   *
   * <code>string logo = 5;</code>
   * @return The logo.
   */
  @java.lang.Override
  public java.lang.String getLogo() {
    java.lang.Object ref = logo_;
    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();
      logo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院Logo
   * </pre>
   *
   * <code>string logo = 5;</code>
   * @return The bytes for logo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLogoBytes() {
    java.lang.Object ref = logo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      logo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADDRESS_FIELD_NUMBER = 6;
  private volatile java.lang.Object address_;
  /**
   * <pre>
   *详细地址
   * </pre>
   *
   * <code>string address = 6;</code>
   * @return The address.
   */
  @java.lang.Override
  public java.lang.String getAddress() {
    java.lang.Object ref = address_;
    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();
      address_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *详细地址
   * </pre>
   *
   * <code>string address = 6;</code>
   * @return The bytes for address.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAddressBytes() {
    java.lang.Object ref = address_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      address_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGISTERABLE_FIELD_NUMBER = 7;
  private int registerable_;
  /**
   * <pre>
   *能否挂号
   * </pre>
   *
   * <code>int32 registerable = 7;</code>
   * @return The registerable.
   */
  @java.lang.Override
  public int getRegisterable() {
    return registerable_;
  }

  public static final int STATUS_FIELD_NUMBER = 8;
  private int status_;
  /**
   * <pre>
   *状态(暂用于表示用户是否关注)
   * </pre>
   *
   * <code>int32 status = 8;</code>
   * @return The status.
   */
  @java.lang.Override
  public int getStatus() {
    return status_;
  }

  public static final int PARENTID_FIELD_NUMBER = 9;
  private int parentId_;
  /**
   * <pre>
   *父ID
   * </pre>
   *
   * <code>int32 parentId = 9;</code>
   * @return The parentId.
   */
  @java.lang.Override
  public int getParentId() {
    return parentId_;
  }

  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 (hospitalId_ != 0) {
      output.writeInt32(1, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(areaIds_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, areaIds_);
    }
    if (level_ != 0) {
      output.writeInt32(4, level_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, logo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, address_);
    }
    if (registerable_ != 0) {
      output.writeInt32(7, registerable_);
    }
    if (status_ != 0) {
      output.writeInt32(8, status_);
    }
    if (parentId_ != 0) {
      output.writeInt32(9, parentId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(areaIds_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, areaIds_);
    }
    if (level_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, level_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, logo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, address_);
    }
    if (registerable_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, registerable_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, status_);
    }
    if (parentId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, parentId_);
    }
    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.system.Hospital)) {
      return super.equals(obj);
    }
    com.ywt.gapi.system.Hospital other = (com.ywt.gapi.system.Hospital) obj;

    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getHospitalName()
        .equals(other.getHospitalName())) return false;
    if (!getAreaIds()
        .equals(other.getAreaIds())) return false;
    if (getLevel()
        != other.getLevel()) return false;
    if (!getLogo()
        .equals(other.getLogo())) return false;
    if (!getAddress()
        .equals(other.getAddress())) return false;
    if (getRegisterable()
        != other.getRegisterable()) return false;
    if (getStatus()
        != other.getStatus()) return false;
    if (getParentId()
        != other.getParentId()) 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) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + AREAIDS_FIELD_NUMBER;
    hash = (53 * hash) + getAreaIds().hashCode();
    hash = (37 * hash) + LEVEL_FIELD_NUMBER;
    hash = (53 * hash) + getLevel();
    hash = (37 * hash) + LOGO_FIELD_NUMBER;
    hash = (53 * hash) + getLogo().hashCode();
    hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + REGISTERABLE_FIELD_NUMBER;
    hash = (53 * hash) + getRegisterable();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + PARENTID_FIELD_NUMBER;
    hash = (53 * hash) + getParentId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.system.Hospital parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.system.Hospital 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.system.Hospital parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.system.Hospital 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.system.Hospital parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.system.Hospital parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.system.Hospital parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.system.Hospital 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.system.Hospital parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.system.Hospital 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.system.Hospital parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.system.Hospital 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.system.Hospital 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.system.Hospital}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.system.Hospital)
      com.ywt.gapi.system.HospitalOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Hospital_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Hospital_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.system.Hospital.class, com.ywt.gapi.system.Hospital.Builder.class);
    }

    // Construct using com.ywt.gapi.system.Hospital.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();
      hospitalId_ = 0;

      hospitalName_ = "";

      areaIds_ = "";

      level_ = 0;

      logo_ = "";

      address_ = "";

      registerable_ = 0;

      status_ = 0;

      parentId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Hospital_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.system.Hospital buildPartial() {
      com.ywt.gapi.system.Hospital result = new com.ywt.gapi.system.Hospital(this);
      result.hospitalId_ = hospitalId_;
      result.hospitalName_ = hospitalName_;
      result.areaIds_ = areaIds_;
      result.level_ = level_;
      result.logo_ = logo_;
      result.address_ = address_;
      result.registerable_ = registerable_;
      result.status_ = status_;
      result.parentId_ = parentId_;
      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.system.Hospital) {
        return mergeFrom((com.ywt.gapi.system.Hospital)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.system.Hospital other) {
      if (other == com.ywt.gapi.system.Hospital.getDefaultInstance()) return this;
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getAreaIds().isEmpty()) {
        areaIds_ = other.areaIds_;
        onChanged();
      }
      if (other.getLevel() != 0) {
        setLevel(other.getLevel());
      }
      if (!other.getLogo().isEmpty()) {
        logo_ = other.logo_;
        onChanged();
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (other.getRegisterable() != 0) {
        setRegisterable(other.getRegisterable());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getParentId() != 0) {
        setParentId(other.getParentId());
      }
      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.system.Hospital parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.system.Hospital) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int hospitalId_ ;
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hospitalId = 1;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hospitalId = 1;</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 = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hospitalName_ = "";
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 2;</code>
     * @return The hospitalName.
     */
    public java.lang.String getHospitalName() {
      java.lang.Object ref = hospitalName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hospitalName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 2;</code>
     * @return The bytes for hospitalName.
     */
    public com.google.protobuf.ByteString
        getHospitalNameBytes() {
      java.lang.Object ref = hospitalName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hospitalName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 2;</code>
     * @param value The hospitalName to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 2;</code>
     * @param value The bytes for hospitalName to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hospitalName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object areaIds_ = "";
    /**
     * <pre>
     *地区Id
     * </pre>
     *
     * <code>string areaIds = 3;</code>
     * @return The areaIds.
     */
    public java.lang.String getAreaIds() {
      java.lang.Object ref = areaIds_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        areaIds_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *地区Id
     * </pre>
     *
     * <code>string areaIds = 3;</code>
     * @return The bytes for areaIds.
     */
    public com.google.protobuf.ByteString
        getAreaIdsBytes() {
      java.lang.Object ref = areaIds_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        areaIds_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *地区Id
     * </pre>
     *
     * <code>string areaIds = 3;</code>
     * @param value The areaIds to set.
     * @return This builder for chaining.
     */
    public Builder setAreaIds(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      areaIds_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地区Id
     * </pre>
     *
     * <code>string areaIds = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearAreaIds() {
      
      areaIds_ = getDefaultInstance().getAreaIds();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地区Id
     * </pre>
     *
     * <code>string areaIds = 3;</code>
     * @param value The bytes for areaIds to set.
     * @return This builder for chaining.
     */
    public Builder setAreaIdsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      areaIds_ = value;
      onChanged();
      return this;
    }

    private int level_ ;
    /**
     * <pre>
     *医院等级
     * </pre>
     *
     * <code>int32 level = 4;</code>
     * @return The level.
     */
    @java.lang.Override
    public int getLevel() {
      return level_;
    }
    /**
     * <pre>
     *医院等级
     * </pre>
     *
     * <code>int32 level = 4;</code>
     * @param value The level to set.
     * @return This builder for chaining.
     */
    public Builder setLevel(int value) {
      
      level_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院等级
     * </pre>
     *
     * <code>int32 level = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearLevel() {
      
      level_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object logo_ = "";
    /**
     * <pre>
     *医院Logo
     * </pre>
     *
     * <code>string logo = 5;</code>
     * @return The logo.
     */
    public java.lang.String getLogo() {
      java.lang.Object ref = logo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        logo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院Logo
     * </pre>
     *
     * <code>string logo = 5;</code>
     * @return The bytes for logo.
     */
    public com.google.protobuf.ByteString
        getLogoBytes() {
      java.lang.Object ref = logo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        logo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院Logo
     * </pre>
     *
     * <code>string logo = 5;</code>
     * @param value The logo to set.
     * @return This builder for chaining.
     */
    public Builder setLogo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      logo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院Logo
     * </pre>
     *
     * <code>string logo = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearLogo() {
      
      logo_ = getDefaultInstance().getLogo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院Logo
     * </pre>
     *
     * <code>string logo = 5;</code>
     * @param value The bytes for logo to set.
     * @return This builder for chaining.
     */
    public Builder setLogoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      logo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object address_ = "";
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 6;</code>
     * @return The address.
     */
    public java.lang.String getAddress() {
      java.lang.Object ref = address_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        address_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 6;</code>
     * @return The bytes for address.
     */
    public com.google.protobuf.ByteString
        getAddressBytes() {
      java.lang.Object ref = address_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        address_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 6;</code>
     * @param value The address to set.
     * @return This builder for chaining.
     */
    public Builder setAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      address_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearAddress() {
      
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 6;</code>
     * @param value The bytes for address to set.
     * @return This builder for chaining.
     */
    public Builder setAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      address_ = value;
      onChanged();
      return this;
    }

    private int registerable_ ;
    /**
     * <pre>
     *能否挂号
     * </pre>
     *
     * <code>int32 registerable = 7;</code>
     * @return The registerable.
     */
    @java.lang.Override
    public int getRegisterable() {
      return registerable_;
    }
    /**
     * <pre>
     *能否挂号
     * </pre>
     *
     * <code>int32 registerable = 7;</code>
     * @param value The registerable to set.
     * @return This builder for chaining.
     */
    public Builder setRegisterable(int value) {
      
      registerable_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *能否挂号
     * </pre>
     *
     * <code>int32 registerable = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegisterable() {
      
      registerable_ = 0;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <pre>
     *状态(暂用于表示用户是否关注)
     * </pre>
     *
     * <code>int32 status = 8;</code>
     * @return The status.
     */
    @java.lang.Override
    public int getStatus() {
      return status_;
    }
    /**
     * <pre>
     *状态(暂用于表示用户是否关注)
     * </pre>
     *
     * <code>int32 status = 8;</code>
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *状态(暂用于表示用户是否关注)
     * </pre>
     *
     * <code>int32 status = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private int parentId_ ;
    /**
     * <pre>
     *父ID
     * </pre>
     *
     * <code>int32 parentId = 9;</code>
     * @return The parentId.
     */
    @java.lang.Override
    public int getParentId() {
      return parentId_;
    }
    /**
     * <pre>
     *父ID
     * </pre>
     *
     * <code>int32 parentId = 9;</code>
     * @param value The parentId to set.
     * @return This builder for chaining.
     */
    public Builder setParentId(int value) {
      
      parentId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *父ID
     * </pre>
     *
     * <code>int32 parentId = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearParentId() {
      
      parentId_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.system.Hospital)
  }

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

  public static com.ywt.gapi.system.Hospital getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

