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

package com.ywt.gapi.drug;

/**
 * <pre>
 * 根据处方单ID、取药方式获取药房列表
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.drug.ListPharmacyResponse}
 */
public  final class ListPharmacyResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.ListPharmacyResponse)
    ListPharmacyResponseOrBuilder {
  // Use ListPharmacyResponse.newBuilder() to construct.
  private ListPharmacyResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ListPharmacyResponse() {
    code_ = 0;
    info_ = "";
    pharmacy_ = java.util.Collections.emptyList();
  }

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

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

            info_ = s;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              pharmacy_ = new java.util.ArrayList<com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice>();
              mutable_bitField0_ |= 0x00000004;
            }
            pharmacy_.add(
                input.readMessage(com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.parser(), extensionRegistry));
            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 {
      if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
        pharmacy_ = java.util.Collections.unmodifiableList(pharmacy_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_ListPharmacyResponse_descriptor;
  }

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

  public interface PharmacyWithPriceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * 药房
     * </pre>
     *
     * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
     */
    boolean hasPharmacy();
    /**
     * <pre>
     * 药房
     * </pre>
     *
     * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
     */
    com.ywt.gapi.drug.Pharmacy getPharmacy();
    /**
     * <pre>
     * 药房
     * </pre>
     *
     * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
     */
    com.ywt.gapi.drug.PharmacyOrBuilder getPharmacyOrBuilder();

    /**
     * <pre>
     * 处方单对应药房的价格，单位：分
     * </pre>
     *
     * <code>int32 total = 2;</code>
     */
    int getTotal();
  }
  /**
   * Protobuf type {@code com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice}
   */
  public  static final class PharmacyWithPrice extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice)
      PharmacyWithPriceOrBuilder {
    // Use PharmacyWithPrice.newBuilder() to construct.
    private PharmacyWithPrice(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PharmacyWithPrice() {
      total_ = 0;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private PharmacyWithPrice(
        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 10: {
              com.ywt.gapi.drug.Pharmacy.Builder subBuilder = null;
              if (pharmacy_ != null) {
                subBuilder = pharmacy_.toBuilder();
              }
              pharmacy_ = input.readMessage(com.ywt.gapi.drug.Pharmacy.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(pharmacy_);
                pharmacy_ = subBuilder.buildPartial();
              }

              break;
            }
            case 16: {

              total_ = 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_ListPharmacyResponse_PharmacyWithPrice_descriptor;
    }

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

    public static final int PHARMACY_FIELD_NUMBER = 1;
    private com.ywt.gapi.drug.Pharmacy pharmacy_;
    /**
     * <pre>
     * 药房
     * </pre>
     *
     * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
     */
    public boolean hasPharmacy() {
      return pharmacy_ != null;
    }
    /**
     * <pre>
     * 药房
     * </pre>
     *
     * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
     */
    public com.ywt.gapi.drug.Pharmacy getPharmacy() {
      return pharmacy_ == null ? com.ywt.gapi.drug.Pharmacy.getDefaultInstance() : pharmacy_;
    }
    /**
     * <pre>
     * 药房
     * </pre>
     *
     * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
     */
    public com.ywt.gapi.drug.PharmacyOrBuilder getPharmacyOrBuilder() {
      return getPharmacy();
    }

    public static final int TOTAL_FIELD_NUMBER = 2;
    private int total_;
    /**
     * <pre>
     * 处方单对应药房的价格，单位：分
     * </pre>
     *
     * <code>int32 total = 2;</code>
     */
    public int getTotal() {
      return total_;
    }

    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 (pharmacy_ != null) {
        output.writeMessage(1, getPharmacy());
      }
      if (total_ != 0) {
        output.writeInt32(2, total_);
      }
    }

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

      size = 0;
      if (pharmacy_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getPharmacy());
      }
      if (total_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, total_);
      }
      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.ListPharmacyResponse.PharmacyWithPrice)) {
        return super.equals(obj);
      }
      com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice other = (com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice) obj;

      boolean result = true;
      result = result && (hasPharmacy() == other.hasPharmacy());
      if (hasPharmacy()) {
        result = result && getPharmacy()
            .equals(other.getPharmacy());
      }
      result = result && (getTotal()
          == other.getTotal());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasPharmacy()) {
        hash = (37 * hash) + PHARMACY_FIELD_NUMBER;
        hash = (53 * hash) + getPharmacy().hashCode();
      }
      hash = (37 * hash) + TOTAL_FIELD_NUMBER;
      hash = (53 * hash) + getTotal();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

      // Construct using com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.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();
        if (pharmacyBuilder_ == null) {
          pharmacy_ = null;
        } else {
          pharmacy_ = null;
          pharmacyBuilder_ = null;
        }
        total_ = 0;

        return this;
      }

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

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

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

      public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice buildPartial() {
        com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice result = new com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice(this);
        if (pharmacyBuilder_ == null) {
          result.pharmacy_ = pharmacy_;
        } else {
          result.pharmacy_ = pharmacyBuilder_.build();
        }
        result.total_ = total_;
        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.ListPharmacyResponse.PharmacyWithPrice) {
          return mergeFrom((com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice other) {
        if (other == com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.getDefaultInstance()) return this;
        if (other.hasPharmacy()) {
          mergePharmacy(other.getPharmacy());
        }
        if (other.getTotal() != 0) {
          setTotal(other.getTotal());
        }
        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.ListPharmacyResponse.PharmacyWithPrice parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.ywt.gapi.drug.Pharmacy pharmacy_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.ywt.gapi.drug.Pharmacy, com.ywt.gapi.drug.Pharmacy.Builder, com.ywt.gapi.drug.PharmacyOrBuilder> pharmacyBuilder_;
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public boolean hasPharmacy() {
        return pharmacyBuilder_ != null || pharmacy_ != null;
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public com.ywt.gapi.drug.Pharmacy getPharmacy() {
        if (pharmacyBuilder_ == null) {
          return pharmacy_ == null ? com.ywt.gapi.drug.Pharmacy.getDefaultInstance() : pharmacy_;
        } else {
          return pharmacyBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public Builder setPharmacy(com.ywt.gapi.drug.Pharmacy value) {
        if (pharmacyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          pharmacy_ = value;
          onChanged();
        } else {
          pharmacyBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public Builder setPharmacy(
          com.ywt.gapi.drug.Pharmacy.Builder builderForValue) {
        if (pharmacyBuilder_ == null) {
          pharmacy_ = builderForValue.build();
          onChanged();
        } else {
          pharmacyBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public Builder mergePharmacy(com.ywt.gapi.drug.Pharmacy value) {
        if (pharmacyBuilder_ == null) {
          if (pharmacy_ != null) {
            pharmacy_ =
              com.ywt.gapi.drug.Pharmacy.newBuilder(pharmacy_).mergeFrom(value).buildPartial();
          } else {
            pharmacy_ = value;
          }
          onChanged();
        } else {
          pharmacyBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public Builder clearPharmacy() {
        if (pharmacyBuilder_ == null) {
          pharmacy_ = null;
          onChanged();
        } else {
          pharmacy_ = null;
          pharmacyBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public com.ywt.gapi.drug.Pharmacy.Builder getPharmacyBuilder() {
        
        onChanged();
        return getPharmacyFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      public com.ywt.gapi.drug.PharmacyOrBuilder getPharmacyOrBuilder() {
        if (pharmacyBuilder_ != null) {
          return pharmacyBuilder_.getMessageOrBuilder();
        } else {
          return pharmacy_ == null ?
              com.ywt.gapi.drug.Pharmacy.getDefaultInstance() : pharmacy_;
        }
      }
      /**
       * <pre>
       * 药房
       * </pre>
       *
       * <code>.com.ywt.gapi.drug.Pharmacy pharmacy = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.ywt.gapi.drug.Pharmacy, com.ywt.gapi.drug.Pharmacy.Builder, com.ywt.gapi.drug.PharmacyOrBuilder> 
          getPharmacyFieldBuilder() {
        if (pharmacyBuilder_ == null) {
          pharmacyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.ywt.gapi.drug.Pharmacy, com.ywt.gapi.drug.Pharmacy.Builder, com.ywt.gapi.drug.PharmacyOrBuilder>(
                  getPharmacy(),
                  getParentForChildren(),
                  isClean());
          pharmacy_ = null;
        }
        return pharmacyBuilder_;
      }

      private int total_ ;
      /**
       * <pre>
       * 处方单对应药房的价格，单位：分
       * </pre>
       *
       * <code>int32 total = 2;</code>
       */
      public int getTotal() {
        return total_;
      }
      /**
       * <pre>
       * 处方单对应药房的价格，单位：分
       * </pre>
       *
       * <code>int32 total = 2;</code>
       */
      public Builder setTotal(int value) {
        
        total_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 处方单对应药房的价格，单位：分
       * </pre>
       *
       * <code>int32 total = 2;</code>
       */
      public Builder clearTotal() {
        
        total_ = 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.ListPharmacyResponse.PharmacyWithPrice)
    }

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

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

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

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

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

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

  }

  private int bitField0_;
  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   */
  public int getCode() {
    return code_;
  }

  public static final int INFO_FIELD_NUMBER = 2;
  private volatile java.lang.Object info_;
  /**
   * <code>string info = 2;</code>
   */
  public java.lang.String getInfo() {
    java.lang.Object ref = info_;
    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();
      info_ = s;
      return s;
    }
  }
  /**
   * <code>string info = 2;</code>
   */
  public com.google.protobuf.ByteString
      getInfoBytes() {
    java.lang.Object ref = info_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      info_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PHARMACY_FIELD_NUMBER = 3;
  private java.util.List<com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice> pharmacy_;
  /**
   * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
   */
  public java.util.List<com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice> getPharmacyList() {
    return pharmacy_;
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
   */
  public java.util.List<? extends com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPriceOrBuilder> 
      getPharmacyOrBuilderList() {
    return pharmacy_;
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
   */
  public int getPharmacyCount() {
    return pharmacy_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
   */
  public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice getPharmacy(int index) {
    return pharmacy_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
   */
  public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPriceOrBuilder getPharmacyOrBuilder(
      int index) {
    return pharmacy_.get(index);
  }

  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 (code_ != 0) {
      output.writeInt32(1, code_);
    }
    if (!getInfoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_);
    }
    for (int i = 0; i < pharmacy_.size(); i++) {
      output.writeMessage(3, pharmacy_.get(i));
    }
  }

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

    size = 0;
    if (code_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, code_);
    }
    if (!getInfoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_);
    }
    for (int i = 0; i < pharmacy_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, pharmacy_.get(i));
    }
    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.ListPharmacyResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.drug.ListPharmacyResponse other = (com.ywt.gapi.drug.ListPharmacyResponse) obj;

    boolean result = true;
    result = result && (getCode()
        == other.getCode());
    result = result && getInfo()
        .equals(other.getInfo());
    result = result && getPharmacyList()
        .equals(other.getPharmacyList());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCode();
    hash = (37 * hash) + INFO_FIELD_NUMBER;
    hash = (53 * hash) + getInfo().hashCode();
    if (getPharmacyCount() > 0) {
      hash = (37 * hash) + PHARMACY_FIELD_NUMBER;
      hash = (53 * hash) + getPharmacyList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.drug.ListPharmacyResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.ListPharmacyResponse 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.ListPharmacyResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.ListPharmacyResponse 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.ListPharmacyResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.ListPharmacyResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.ListPharmacyResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.ListPharmacyResponse 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.ListPharmacyResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.ListPharmacyResponse 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.ListPharmacyResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.ListPharmacyResponse 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.ListPharmacyResponse 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>
   * 根据处方单ID、取药方式获取药房列表
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.drug.ListPharmacyResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.ListPharmacyResponse)
      com.ywt.gapi.drug.ListPharmacyResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_ListPharmacyResponse_descriptor;
    }

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

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

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

      info_ = "";

      if (pharmacyBuilder_ == null) {
        pharmacy_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        pharmacyBuilder_.clear();
      }
      return this;
    }

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

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

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

    public com.ywt.gapi.drug.ListPharmacyResponse buildPartial() {
      com.ywt.gapi.drug.ListPharmacyResponse result = new com.ywt.gapi.drug.ListPharmacyResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.code_ = code_;
      result.info_ = info_;
      if (pharmacyBuilder_ == null) {
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          pharmacy_ = java.util.Collections.unmodifiableList(pharmacy_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.pharmacy_ = pharmacy_;
      } else {
        result.pharmacy_ = pharmacyBuilder_.build();
      }
      result.bitField0_ = to_bitField0_;
      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.ListPharmacyResponse) {
        return mergeFrom((com.ywt.gapi.drug.ListPharmacyResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.drug.ListPharmacyResponse other) {
      if (other == com.ywt.gapi.drug.ListPharmacyResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getInfo().isEmpty()) {
        info_ = other.info_;
        onChanged();
      }
      if (pharmacyBuilder_ == null) {
        if (!other.pharmacy_.isEmpty()) {
          if (pharmacy_.isEmpty()) {
            pharmacy_ = other.pharmacy_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensurePharmacyIsMutable();
            pharmacy_.addAll(other.pharmacy_);
          }
          onChanged();
        }
      } else {
        if (!other.pharmacy_.isEmpty()) {
          if (pharmacyBuilder_.isEmpty()) {
            pharmacyBuilder_.dispose();
            pharmacyBuilder_ = null;
            pharmacy_ = other.pharmacy_;
            bitField0_ = (bitField0_ & ~0x00000004);
            pharmacyBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getPharmacyFieldBuilder() : null;
          } else {
            pharmacyBuilder_.addAllMessages(other.pharmacy_);
          }
        }
      }
      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.ListPharmacyResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.drug.ListPharmacyResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     */
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object info_ = "";
    /**
     * <code>string info = 2;</code>
     */
    public java.lang.String getInfo() {
      java.lang.Object ref = info_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        info_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string info = 2;</code>
     */
    public com.google.protobuf.ByteString
        getInfoBytes() {
      java.lang.Object ref = info_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        info_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder setInfo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      info_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder clearInfo() {
      
      info_ = getDefaultInstance().getInfo();
      onChanged();
      return this;
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder setInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      info_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice> pharmacy_ =
      java.util.Collections.emptyList();
    private void ensurePharmacyIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        pharmacy_ = new java.util.ArrayList<com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice>(pharmacy_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPriceOrBuilder> pharmacyBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public java.util.List<com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice> getPharmacyList() {
      if (pharmacyBuilder_ == null) {
        return java.util.Collections.unmodifiableList(pharmacy_);
      } else {
        return pharmacyBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public int getPharmacyCount() {
      if (pharmacyBuilder_ == null) {
        return pharmacy_.size();
      } else {
        return pharmacyBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice getPharmacy(int index) {
      if (pharmacyBuilder_ == null) {
        return pharmacy_.get(index);
      } else {
        return pharmacyBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder setPharmacy(
        int index, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice value) {
      if (pharmacyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePharmacyIsMutable();
        pharmacy_.set(index, value);
        onChanged();
      } else {
        pharmacyBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder setPharmacy(
        int index, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder builderForValue) {
      if (pharmacyBuilder_ == null) {
        ensurePharmacyIsMutable();
        pharmacy_.set(index, builderForValue.build());
        onChanged();
      } else {
        pharmacyBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder addPharmacy(com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice value) {
      if (pharmacyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePharmacyIsMutable();
        pharmacy_.add(value);
        onChanged();
      } else {
        pharmacyBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder addPharmacy(
        int index, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice value) {
      if (pharmacyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePharmacyIsMutable();
        pharmacy_.add(index, value);
        onChanged();
      } else {
        pharmacyBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder addPharmacy(
        com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder builderForValue) {
      if (pharmacyBuilder_ == null) {
        ensurePharmacyIsMutable();
        pharmacy_.add(builderForValue.build());
        onChanged();
      } else {
        pharmacyBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder addPharmacy(
        int index, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder builderForValue) {
      if (pharmacyBuilder_ == null) {
        ensurePharmacyIsMutable();
        pharmacy_.add(index, builderForValue.build());
        onChanged();
      } else {
        pharmacyBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder addAllPharmacy(
        java.lang.Iterable<? extends com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice> values) {
      if (pharmacyBuilder_ == null) {
        ensurePharmacyIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, pharmacy_);
        onChanged();
      } else {
        pharmacyBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder clearPharmacy() {
      if (pharmacyBuilder_ == null) {
        pharmacy_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        pharmacyBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public Builder removePharmacy(int index) {
      if (pharmacyBuilder_ == null) {
        ensurePharmacyIsMutable();
        pharmacy_.remove(index);
        onChanged();
      } else {
        pharmacyBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder getPharmacyBuilder(
        int index) {
      return getPharmacyFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPriceOrBuilder getPharmacyOrBuilder(
        int index) {
      if (pharmacyBuilder_ == null) {
        return pharmacy_.get(index);  } else {
        return pharmacyBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public java.util.List<? extends com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPriceOrBuilder> 
         getPharmacyOrBuilderList() {
      if (pharmacyBuilder_ != null) {
        return pharmacyBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(pharmacy_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder addPharmacyBuilder() {
      return getPharmacyFieldBuilder().addBuilder(
          com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder addPharmacyBuilder(
        int index) {
      return getPharmacyFieldBuilder().addBuilder(
          index, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice pharmacy = 3;</code>
     */
    public java.util.List<com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder> 
         getPharmacyBuilderList() {
      return getPharmacyFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPriceOrBuilder> 
        getPharmacyFieldBuilder() {
      if (pharmacyBuilder_ == null) {
        pharmacyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPrice.Builder, com.ywt.gapi.drug.ListPharmacyResponse.PharmacyWithPriceOrBuilder>(
                pharmacy_,
                ((bitField0_ & 0x00000004) == 0x00000004),
                getParentForChildren(),
                isClean());
        pharmacy_ = null;
      }
      return pharmacyBuilder_;
    }
    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.ListPharmacyResponse)
  }

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

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

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

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

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

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

}

