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

package com.ywt.gapi.drug;

/**
 * <pre>
 *药房
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.drug.Pharmacy}
 */
public  final class Pharmacy extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.Pharmacy)
    PharmacyOrBuilder {
  // Use Pharmacy.newBuilder() to construct.
  private Pharmacy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Pharmacy() {
    id_ = 0;
    name_ = "";
    weight_ = 0;
    hospitalId_ = 0;
    hospitalName_ = "";
    address_ = "";
    createTime_ = 0L;
    province_ = "";
    city_ = "";
    area_ = "";
    insurance_ = 0;
    status_ = 0;
    extStatus_ = 0;
    openSourceIds_ = "";
    longitude_ = 0D;
    latitude_ = 0D;
    remind_ = 0;
  }

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

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

            name_ = s;
            break;
          }
          case 24: {

            weight_ = input.readInt32();
            break;
          }
          case 32: {

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

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

            address_ = s;
            break;
          }
          case 56: {

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

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

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

            area_ = s;
            break;
          }
          case 88: {

            insurance_ = input.readInt32();
            break;
          }
          case 96: {

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

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

            openSourceIds_ = s;
            break;
          }
          case 121: {

            longitude_ = input.readDouble();
            break;
          }
          case 129: {

            latitude_ = input.readDouble();
            break;
          }
          case 136: {

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

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

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

  public static final int NAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object name_;
  /**
   * <pre>
   *药房名称
   * </pre>
   *
   * <code>string name = 2;</code>
   */
  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;
    }
  }
  /**
   * <pre>
   *药房名称
   * </pre>
   *
   * <code>string name = 2;</code>
   */
  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 WEIGHT_FIELD_NUMBER = 3;
  private int weight_;
  /**
   * <pre>
   *权重
   * </pre>
   *
   * <code>int32 weight = 3;</code>
   */
  public int getWeight() {
    return weight_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 4;
  private int hospitalId_;
  /**
   * <pre>
   *医院Id
   * </pre>
   *
   * <code>int32 hospitalId = 4;</code>
   */
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int HOSPITALNAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object hospitalName_;
  /**
   * <pre>
   *医院名称
   * </pre>
   *
   * <code>string hospitalName = 5;</code>
   */
  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 = 5;</code>
   */
  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 ADDRESS_FIELD_NUMBER = 6;
  private volatile java.lang.Object address_;
  /**
   * <pre>
   *药房地址
   * </pre>
   *
   * <code>string address = 6;</code>
   */
  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>
   */
  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 CREATETIME_FIELD_NUMBER = 7;
  private long createTime_;
  /**
   * <pre>
   *创建时间
   * </pre>
   *
   * <code>int64 createTime = 7;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

  public static final int PROVINCE_FIELD_NUMBER = 8;
  private volatile java.lang.Object province_;
  /**
   * <pre>
   * 省名称
   * </pre>
   *
   * <code>string province = 8;</code>
   */
  public java.lang.String getProvince() {
    java.lang.Object ref = province_;
    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();
      province_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 省名称
   * </pre>
   *
   * <code>string province = 8;</code>
   */
  public com.google.protobuf.ByteString
      getProvinceBytes() {
    java.lang.Object ref = province_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      province_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CITY_FIELD_NUMBER = 9;
  private volatile java.lang.Object city_;
  /**
   * <pre>
   * 市名称
   * </pre>
   *
   * <code>string city = 9;</code>
   */
  public java.lang.String getCity() {
    java.lang.Object ref = city_;
    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();
      city_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 市名称
   * </pre>
   *
   * <code>string city = 9;</code>
   */
  public com.google.protobuf.ByteString
      getCityBytes() {
    java.lang.Object ref = city_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      city_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AREA_FIELD_NUMBER = 10;
  private volatile java.lang.Object area_;
  /**
   * <pre>
   * 区名称
   * </pre>
   *
   * <code>string area = 10;</code>
   */
  public java.lang.String getArea() {
    java.lang.Object ref = area_;
    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();
      area_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 区名称
   * </pre>
   *
   * <code>string area = 10;</code>
   */
  public com.google.protobuf.ByteString
      getAreaBytes() {
    java.lang.Object ref = area_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      area_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSURANCE_FIELD_NUMBER = 11;
  private int insurance_;
  /**
   * <pre>
   * 是否支持医保，0-不支持，1-支持
   * </pre>
   *
   * <code>int32 insurance = 11;</code>
   */
  public int getInsurance() {
    return insurance_;
  }

  public static final int STATUS_FIELD_NUMBER = 12;
  private int status_;
  /**
   * <pre>
   * 状态，0-正常，1-禁用
   * </pre>
   *
   * <code>int32 status = 12;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int EXTSTATUS_FIELD_NUMBER = 13;
  private int extStatus_;
  /**
   * <pre>
   *扩展状态：1-前端不显示；2-支持快递,4-不能开针剂或者肽类药品
   * </pre>
   *
   * <code>int32 extStatus = 13;</code>
   */
  public int getExtStatus() {
    return extStatus_;
  }

  public static final int OPENSOURCEIDS_FIELD_NUMBER = 14;
  private volatile java.lang.Object openSourceIds_;
  /**
   * <pre>
   *开放处方进入的渠道，对应PrescriptionInfoSourceEnum，eg:,2,  表示：对平台系统开放
   * </pre>
   *
   * <code>string openSourceIds = 14;</code>
   */
  public java.lang.String getOpenSourceIds() {
    java.lang.Object ref = openSourceIds_;
    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();
      openSourceIds_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *开放处方进入的渠道，对应PrescriptionInfoSourceEnum，eg:,2,  表示：对平台系统开放
   * </pre>
   *
   * <code>string openSourceIds = 14;</code>
   */
  public com.google.protobuf.ByteString
      getOpenSourceIdsBytes() {
    java.lang.Object ref = openSourceIds_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      openSourceIds_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LONGITUDE_FIELD_NUMBER = 15;
  private double longitude_;
  /**
   * <pre>
   * 经度
   * </pre>
   *
   * <code>double longitude = 15;</code>
   */
  public double getLongitude() {
    return longitude_;
  }

  public static final int LATITUDE_FIELD_NUMBER = 16;
  private double latitude_;
  /**
   * <pre>
   * 纬度
   * </pre>
   *
   * <code>double latitude = 16;</code>
   */
  public double getLatitude() {
    return latitude_;
  }

  public static final int REMIND_FIELD_NUMBER = 17;
  private int remind_;
  /**
   * <pre>
   *库存提醒
   * </pre>
   *
   * <code>int32 remind = 17;</code>
   */
  public int getRemind() {
    return remind_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (id_ != 0) {
      output.writeInt32(1, id_);
    }
    if (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
    }
    if (weight_ != 0) {
      output.writeInt32(3, weight_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(4, hospitalId_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hospitalName_);
    }
    if (!getAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, address_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(7, createTime_);
    }
    if (!getProvinceBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, province_);
    }
    if (!getCityBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, city_);
    }
    if (!getAreaBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, area_);
    }
    if (insurance_ != 0) {
      output.writeInt32(11, insurance_);
    }
    if (status_ != 0) {
      output.writeInt32(12, status_);
    }
    if (extStatus_ != 0) {
      output.writeInt32(13, extStatus_);
    }
    if (!getOpenSourceIdsBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, openSourceIds_);
    }
    if (longitude_ != 0D) {
      output.writeDouble(15, longitude_);
    }
    if (latitude_ != 0D) {
      output.writeDouble(16, latitude_);
    }
    if (remind_ != 0) {
      output.writeInt32(17, remind_);
    }
  }

  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 (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
    }
    if (weight_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, weight_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, hospitalId_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hospitalName_);
    }
    if (!getAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, address_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, createTime_);
    }
    if (!getProvinceBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, province_);
    }
    if (!getCityBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, city_);
    }
    if (!getAreaBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, area_);
    }
    if (insurance_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, insurance_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, status_);
    }
    if (extStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, extStatus_);
    }
    if (!getOpenSourceIdsBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, openSourceIds_);
    }
    if (longitude_ != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(15, longitude_);
    }
    if (latitude_ != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(16, latitude_);
    }
    if (remind_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(17, remind_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && (getId()
        == other.getId());
    result = result && getName()
        .equals(other.getName());
    result = result && (getWeight()
        == other.getWeight());
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && getHospitalName()
        .equals(other.getHospitalName());
    result = result && getAddress()
        .equals(other.getAddress());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && getProvince()
        .equals(other.getProvince());
    result = result && getCity()
        .equals(other.getCity());
    result = result && getArea()
        .equals(other.getArea());
    result = result && (getInsurance()
        == other.getInsurance());
    result = result && (getStatus()
        == other.getStatus());
    result = result && (getExtStatus()
        == other.getExtStatus());
    result = result && getOpenSourceIds()
        .equals(other.getOpenSourceIds());
    result = result && (
        java.lang.Double.doubleToLongBits(getLongitude())
        == java.lang.Double.doubleToLongBits(
            other.getLongitude()));
    result = result && (
        java.lang.Double.doubleToLongBits(getLatitude())
        == java.lang.Double.doubleToLongBits(
            other.getLatitude()));
    result = result && (getRemind()
        == other.getRemind());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
    hash = (53 * hash) + getWeight();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + PROVINCE_FIELD_NUMBER;
    hash = (53 * hash) + getProvince().hashCode();
    hash = (37 * hash) + CITY_FIELD_NUMBER;
    hash = (53 * hash) + getCity().hashCode();
    hash = (37 * hash) + AREA_FIELD_NUMBER;
    hash = (53 * hash) + getArea().hashCode();
    hash = (37 * hash) + INSURANCE_FIELD_NUMBER;
    hash = (53 * hash) + getInsurance();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + EXTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getExtStatus();
    hash = (37 * hash) + OPENSOURCEIDS_FIELD_NUMBER;
    hash = (53 * hash) + getOpenSourceIds().hashCode();
    hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getLongitude()));
    hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getLatitude()));
    hash = (37 * hash) + REMIND_FIELD_NUMBER;
    hash = (53 * hash) + getRemind();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

      name_ = "";

      weight_ = 0;

      hospitalId_ = 0;

      hospitalName_ = "";

      address_ = "";

      createTime_ = 0L;

      province_ = "";

      city_ = "";

      area_ = "";

      insurance_ = 0;

      status_ = 0;

      extStatus_ = 0;

      openSourceIds_ = "";

      longitude_ = 0D;

      latitude_ = 0D;

      remind_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.drug.Pharmacy buildPartial() {
      com.ywt.gapi.drug.Pharmacy result = new com.ywt.gapi.drug.Pharmacy(this);
      result.id_ = id_;
      result.name_ = name_;
      result.weight_ = weight_;
      result.hospitalId_ = hospitalId_;
      result.hospitalName_ = hospitalName_;
      result.address_ = address_;
      result.createTime_ = createTime_;
      result.province_ = province_;
      result.city_ = city_;
      result.area_ = area_;
      result.insurance_ = insurance_;
      result.status_ = status_;
      result.extStatus_ = extStatus_;
      result.openSourceIds_ = openSourceIds_;
      result.longitude_ = longitude_;
      result.latitude_ = latitude_;
      result.remind_ = remind_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.drug.Pharmacy other) {
      if (other == com.ywt.gapi.drug.Pharmacy.getDefaultInstance()) return this;
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (other.getWeight() != 0) {
        setWeight(other.getWeight());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (!other.getProvince().isEmpty()) {
        province_ = other.province_;
        onChanged();
      }
      if (!other.getCity().isEmpty()) {
        city_ = other.city_;
        onChanged();
      }
      if (!other.getArea().isEmpty()) {
        area_ = other.area_;
        onChanged();
      }
      if (other.getInsurance() != 0) {
        setInsurance(other.getInsurance());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getExtStatus() != 0) {
        setExtStatus(other.getExtStatus());
      }
      if (!other.getOpenSourceIds().isEmpty()) {
        openSourceIds_ = other.openSourceIds_;
        onChanged();
      }
      if (other.getLongitude() != 0D) {
        setLongitude(other.getLongitude());
      }
      if (other.getLatitude() != 0D) {
        setLatitude(other.getLatitude());
      }
      if (other.getRemind() != 0) {
        setRemind(other.getRemind());
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

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

    private java.lang.Object name_ = "";
    /**
     * <pre>
     *药房名称
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     *药房名称
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     *药房名称
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药房名称
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药房名称
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private int weight_ ;
    /**
     * <pre>
     *权重
     * </pre>
     *
     * <code>int32 weight = 3;</code>
     */
    public int getWeight() {
      return weight_;
    }
    /**
     * <pre>
     *权重
     * </pre>
     *
     * <code>int32 weight = 3;</code>
     */
    public Builder setWeight(int value) {
      
      weight_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *权重
     * </pre>
     *
     * <code>int32 weight = 3;</code>
     */
    public Builder clearWeight() {
      
      weight_ = 0;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hospitalId = 4;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hospitalId = 4;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院Id
     * </pre>
     *
     * <code>int32 hospitalId = 4;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hospitalName_ = "";
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 5;</code>
     */
    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 = 5;</code>
     */
    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 = 5;</code>
     */
    public Builder setHospitalName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 5;</code>
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 5;</code>
     */
    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 address_ = "";
    /**
     * <pre>
     *药房地址
     * </pre>
     *
     * <code>string address = 6;</code>
     */
    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>
     */
    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>
     */
    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>
     */
    public Builder clearAddress() {
      
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药房地址
     * </pre>
     *
     * <code>string address = 6;</code>
     */
    public Builder setAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      address_ = value;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <pre>
     *创建时间
     * </pre>
     *
     * <code>int64 createTime = 7;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <pre>
     *创建时间
     * </pre>
     *
     * <code>int64 createTime = 7;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *创建时间
     * </pre>
     *
     * <code>int64 createTime = 7;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object province_ = "";
    /**
     * <pre>
     * 省名称
     * </pre>
     *
     * <code>string province = 8;</code>
     */
    public java.lang.String getProvince() {
      java.lang.Object ref = province_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        province_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 省名称
     * </pre>
     *
     * <code>string province = 8;</code>
     */
    public com.google.protobuf.ByteString
        getProvinceBytes() {
      java.lang.Object ref = province_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        province_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 省名称
     * </pre>
     *
     * <code>string province = 8;</code>
     */
    public Builder setProvince(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      province_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 省名称
     * </pre>
     *
     * <code>string province = 8;</code>
     */
    public Builder clearProvince() {
      
      province_ = getDefaultInstance().getProvince();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 省名称
     * </pre>
     *
     * <code>string province = 8;</code>
     */
    public Builder setProvinceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      province_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object city_ = "";
    /**
     * <pre>
     * 市名称
     * </pre>
     *
     * <code>string city = 9;</code>
     */
    public java.lang.String getCity() {
      java.lang.Object ref = city_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        city_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 市名称
     * </pre>
     *
     * <code>string city = 9;</code>
     */
    public com.google.protobuf.ByteString
        getCityBytes() {
      java.lang.Object ref = city_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        city_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 市名称
     * </pre>
     *
     * <code>string city = 9;</code>
     */
    public Builder setCity(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      city_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 市名称
     * </pre>
     *
     * <code>string city = 9;</code>
     */
    public Builder clearCity() {
      
      city_ = getDefaultInstance().getCity();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 市名称
     * </pre>
     *
     * <code>string city = 9;</code>
     */
    public Builder setCityBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      city_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object area_ = "";
    /**
     * <pre>
     * 区名称
     * </pre>
     *
     * <code>string area = 10;</code>
     */
    public java.lang.String getArea() {
      java.lang.Object ref = area_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        area_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 区名称
     * </pre>
     *
     * <code>string area = 10;</code>
     */
    public com.google.protobuf.ByteString
        getAreaBytes() {
      java.lang.Object ref = area_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        area_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 区名称
     * </pre>
     *
     * <code>string area = 10;</code>
     */
    public Builder setArea(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      area_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 区名称
     * </pre>
     *
     * <code>string area = 10;</code>
     */
    public Builder clearArea() {
      
      area_ = getDefaultInstance().getArea();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 区名称
     * </pre>
     *
     * <code>string area = 10;</code>
     */
    public Builder setAreaBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      area_ = value;
      onChanged();
      return this;
    }

    private int insurance_ ;
    /**
     * <pre>
     * 是否支持医保，0-不支持，1-支持
     * </pre>
     *
     * <code>int32 insurance = 11;</code>
     */
    public int getInsurance() {
      return insurance_;
    }
    /**
     * <pre>
     * 是否支持医保，0-不支持，1-支持
     * </pre>
     *
     * <code>int32 insurance = 11;</code>
     */
    public Builder setInsurance(int value) {
      
      insurance_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 是否支持医保，0-不支持，1-支持
     * </pre>
     *
     * <code>int32 insurance = 11;</code>
     */
    public Builder clearInsurance() {
      
      insurance_ = 0;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <pre>
     * 状态，0-正常，1-禁用
     * </pre>
     *
     * <code>int32 status = 12;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <pre>
     * 状态，0-正常，1-禁用
     * </pre>
     *
     * <code>int32 status = 12;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 状态，0-正常，1-禁用
     * </pre>
     *
     * <code>int32 status = 12;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private int extStatus_ ;
    /**
     * <pre>
     *扩展状态：1-前端不显示；2-支持快递,4-不能开针剂或者肽类药品
     * </pre>
     *
     * <code>int32 extStatus = 13;</code>
     */
    public int getExtStatus() {
      return extStatus_;
    }
    /**
     * <pre>
     *扩展状态：1-前端不显示；2-支持快递,4-不能开针剂或者肽类药品
     * </pre>
     *
     * <code>int32 extStatus = 13;</code>
     */
    public Builder setExtStatus(int value) {
      
      extStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *扩展状态：1-前端不显示；2-支持快递,4-不能开针剂或者肽类药品
     * </pre>
     *
     * <code>int32 extStatus = 13;</code>
     */
    public Builder clearExtStatus() {
      
      extStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object openSourceIds_ = "";
    /**
     * <pre>
     *开放处方进入的渠道，对应PrescriptionInfoSourceEnum，eg:,2,  表示：对平台系统开放
     * </pre>
     *
     * <code>string openSourceIds = 14;</code>
     */
    public java.lang.String getOpenSourceIds() {
      java.lang.Object ref = openSourceIds_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        openSourceIds_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *开放处方进入的渠道，对应PrescriptionInfoSourceEnum，eg:,2,  表示：对平台系统开放
     * </pre>
     *
     * <code>string openSourceIds = 14;</code>
     */
    public com.google.protobuf.ByteString
        getOpenSourceIdsBytes() {
      java.lang.Object ref = openSourceIds_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        openSourceIds_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *开放处方进入的渠道，对应PrescriptionInfoSourceEnum，eg:,2,  表示：对平台系统开放
     * </pre>
     *
     * <code>string openSourceIds = 14;</code>
     */
    public Builder setOpenSourceIds(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      openSourceIds_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *开放处方进入的渠道，对应PrescriptionInfoSourceEnum，eg:,2,  表示：对平台系统开放
     * </pre>
     *
     * <code>string openSourceIds = 14;</code>
     */
    public Builder clearOpenSourceIds() {
      
      openSourceIds_ = getDefaultInstance().getOpenSourceIds();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *开放处方进入的渠道，对应PrescriptionInfoSourceEnum，eg:,2,  表示：对平台系统开放
     * </pre>
     *
     * <code>string openSourceIds = 14;</code>
     */
    public Builder setOpenSourceIdsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      openSourceIds_ = value;
      onChanged();
      return this;
    }

    private double longitude_ ;
    /**
     * <pre>
     * 经度
     * </pre>
     *
     * <code>double longitude = 15;</code>
     */
    public double getLongitude() {
      return longitude_;
    }
    /**
     * <pre>
     * 经度
     * </pre>
     *
     * <code>double longitude = 15;</code>
     */
    public Builder setLongitude(double value) {
      
      longitude_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 经度
     * </pre>
     *
     * <code>double longitude = 15;</code>
     */
    public Builder clearLongitude() {
      
      longitude_ = 0D;
      onChanged();
      return this;
    }

    private double latitude_ ;
    /**
     * <pre>
     * 纬度
     * </pre>
     *
     * <code>double latitude = 16;</code>
     */
    public double getLatitude() {
      return latitude_;
    }
    /**
     * <pre>
     * 纬度
     * </pre>
     *
     * <code>double latitude = 16;</code>
     */
    public Builder setLatitude(double value) {
      
      latitude_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 纬度
     * </pre>
     *
     * <code>double latitude = 16;</code>
     */
    public Builder clearLatitude() {
      
      latitude_ = 0D;
      onChanged();
      return this;
    }

    private int remind_ ;
    /**
     * <pre>
     *库存提醒
     * </pre>
     *
     * <code>int32 remind = 17;</code>
     */
    public int getRemind() {
      return remind_;
    }
    /**
     * <pre>
     *库存提醒
     * </pre>
     *
     * <code>int32 remind = 17;</code>
     */
    public Builder setRemind(int value) {
      
      remind_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *库存提醒
     * </pre>
     *
     * <code>int32 remind = 17;</code>
     */
    public Builder clearRemind() {
      
      remind_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


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

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

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

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

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

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

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

}

