// 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.SavePrescriptionExpressAddressRequest}
 */
public  final class SavePrescriptionExpressAddressRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest)
    SavePrescriptionExpressAddressRequestOrBuilder {
  // Use SavePrescriptionExpressAddressRequest.newBuilder() to construct.
  private SavePrescriptionExpressAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SavePrescriptionExpressAddressRequest() {
    hisOrderNo_ = "";
    addressId_ = 0;
    pharmacyId_ = 0;
    freight_ = 0;
    individual_ = 0;
    needPrintStatus_ = 0;
    preId_ = 0;
    deliveryMethod_ = 0;
    timeStandard_ = "";
  }

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

            hisOrderNo_ = s;
            break;
          }
          case 16: {

            addressId_ = input.readInt32();
            break;
          }
          case 24: {

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

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

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

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

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

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

            timeStandard_ = s;
            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_SavePrescriptionExpressAddressRequest_descriptor;
  }

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

  public static final int HISORDERNO_FIELD_NUMBER = 1;
  private volatile java.lang.Object hisOrderNo_;
  /**
   * <pre>
   *医院his订单号（处方有更改，预留）
   * </pre>
   *
   * <code>string hisOrderNo = 1;</code>
   */
  public java.lang.String getHisOrderNo() {
    java.lang.Object ref = hisOrderNo_;
    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();
      hisOrderNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院his订单号（处方有更改，预留）
   * </pre>
   *
   * <code>string hisOrderNo = 1;</code>
   */
  public com.google.protobuf.ByteString
      getHisOrderNoBytes() {
    java.lang.Object ref = hisOrderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOrderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADDRESSID_FIELD_NUMBER = 2;
  private int addressId_;
  /**
   * <pre>
   *地址ID
   * </pre>
   *
   * <code>int32 addressId = 2;</code>
   */
  public int getAddressId() {
    return addressId_;
  }

  public static final int PHARMACYID_FIELD_NUMBER = 3;
  private int pharmacyId_;
  /**
   * <pre>
   *药房地址ID
   * </pre>
   *
   * <code>int32 pharmacyId = 3;</code>
   */
  public int getPharmacyId() {
    return pharmacyId_;
  }

  public static final int FREIGHT_FIELD_NUMBER = 4;
  private int freight_;
  /**
   * <pre>
   *药品配送费（快递费）
   * </pre>
   *
   * <code>int32 freight = 4;</code>
   */
  public int getFreight() {
    return freight_;
  }

  public static final int INDIVIDUAL_FIELD_NUMBER = 5;
  private int individual_;
  /**
   * <pre>
   *个人支付总金额
   * </pre>
   *
   * <code>int32 individual = 5;</code>
   */
  public int getIndividual() {
    return individual_;
  }

  public static final int NEEDPRINTSTATUS_FIELD_NUMBER = 6;
  private int needPrintStatus_;
  /**
   * <pre>
   * 是否需要打印发票，0-不需要，1-需要
   * </pre>
   *
   * <code>int32 needPrintStatus = 6;</code>
   */
  public int getNeedPrintStatus() {
    return needPrintStatus_;
  }

  public static final int PREID_FIELD_NUMBER = 7;
  private int preId_;
  /**
   * <pre>
   * 处方表ID
   * </pre>
   *
   * <code>int32 preId = 7;</code>
   */
  public int getPreId() {
    return preId_;
  }

  public static final int DELIVERYMETHOD_FIELD_NUMBER = 8;
  private int deliveryMethod_;
  /**
   * <pre>
   * 1-快递到家，2-自取
   * </pre>
   *
   * <code>int32 deliveryMethod = 8;</code>
   */
  public int getDeliveryMethod() {
    return deliveryMethod_;
  }

  public static final int TIMESTANDARD_FIELD_NUMBER = 9;
  private volatile java.lang.Object timeStandard_;
  /**
   * <pre>
   * 时效标准(快递的预计送达时间)
   * </pre>
   *
   * <code>string timeStandard = 9;</code>
   */
  public java.lang.String getTimeStandard() {
    java.lang.Object ref = timeStandard_;
    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();
      timeStandard_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 时效标准(快递的预计送达时间)
   * </pre>
   *
   * <code>string timeStandard = 9;</code>
   */
  public com.google.protobuf.ByteString
      getTimeStandardBytes() {
    java.lang.Object ref = timeStandard_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      timeStandard_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 (!getHisOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hisOrderNo_);
    }
    if (addressId_ != 0) {
      output.writeInt32(2, addressId_);
    }
    if (pharmacyId_ != 0) {
      output.writeInt32(3, pharmacyId_);
    }
    if (freight_ != 0) {
      output.writeInt32(4, freight_);
    }
    if (individual_ != 0) {
      output.writeInt32(5, individual_);
    }
    if (needPrintStatus_ != 0) {
      output.writeInt32(6, needPrintStatus_);
    }
    if (preId_ != 0) {
      output.writeInt32(7, preId_);
    }
    if (deliveryMethod_ != 0) {
      output.writeInt32(8, deliveryMethod_);
    }
    if (!getTimeStandardBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timeStandard_);
    }
  }

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

    size = 0;
    if (!getHisOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hisOrderNo_);
    }
    if (addressId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, addressId_);
    }
    if (pharmacyId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, pharmacyId_);
    }
    if (freight_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, freight_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, individual_);
    }
    if (needPrintStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, needPrintStatus_);
    }
    if (preId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, preId_);
    }
    if (deliveryMethod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, deliveryMethod_);
    }
    if (!getTimeStandardBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, timeStandard_);
    }
    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.SavePrescriptionExpressAddressRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest other = (com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest) obj;

    boolean result = true;
    result = result && getHisOrderNo()
        .equals(other.getHisOrderNo());
    result = result && (getAddressId()
        == other.getAddressId());
    result = result && (getPharmacyId()
        == other.getPharmacyId());
    result = result && (getFreight()
        == other.getFreight());
    result = result && (getIndividual()
        == other.getIndividual());
    result = result && (getNeedPrintStatus()
        == other.getNeedPrintStatus());
    result = result && (getPreId()
        == other.getPreId());
    result = result && (getDeliveryMethod()
        == other.getDeliveryMethod());
    result = result && getTimeStandard()
        .equals(other.getTimeStandard());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + HISORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrderNo().hashCode();
    hash = (37 * hash) + ADDRESSID_FIELD_NUMBER;
    hash = (53 * hash) + getAddressId();
    hash = (37 * hash) + PHARMACYID_FIELD_NUMBER;
    hash = (53 * hash) + getPharmacyId();
    hash = (37 * hash) + FREIGHT_FIELD_NUMBER;
    hash = (53 * hash) + getFreight();
    hash = (37 * hash) + INDIVIDUAL_FIELD_NUMBER;
    hash = (53 * hash) + getIndividual();
    hash = (37 * hash) + NEEDPRINTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getNeedPrintStatus();
    hash = (37 * hash) + PREID_FIELD_NUMBER;
    hash = (53 * hash) + getPreId();
    hash = (37 * hash) + DELIVERYMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getDeliveryMethod();
    hash = (37 * hash) + TIMESTANDARD_FIELD_NUMBER;
    hash = (53 * hash) + getTimeStandard().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest.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();
      hisOrderNo_ = "";

      addressId_ = 0;

      pharmacyId_ = 0;

      freight_ = 0;

      individual_ = 0;

      needPrintStatus_ = 0;

      preId_ = 0;

      deliveryMethod_ = 0;

      timeStandard_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest buildPartial() {
      com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest result = new com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest(this);
      result.hisOrderNo_ = hisOrderNo_;
      result.addressId_ = addressId_;
      result.pharmacyId_ = pharmacyId_;
      result.freight_ = freight_;
      result.individual_ = individual_;
      result.needPrintStatus_ = needPrintStatus_;
      result.preId_ = preId_;
      result.deliveryMethod_ = deliveryMethod_;
      result.timeStandard_ = timeStandard_;
      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.SavePrescriptionExpressAddressRequest) {
        return mergeFrom((com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest other) {
      if (other == com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest.getDefaultInstance()) return this;
      if (!other.getHisOrderNo().isEmpty()) {
        hisOrderNo_ = other.hisOrderNo_;
        onChanged();
      }
      if (other.getAddressId() != 0) {
        setAddressId(other.getAddressId());
      }
      if (other.getPharmacyId() != 0) {
        setPharmacyId(other.getPharmacyId());
      }
      if (other.getFreight() != 0) {
        setFreight(other.getFreight());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (other.getNeedPrintStatus() != 0) {
        setNeedPrintStatus(other.getNeedPrintStatus());
      }
      if (other.getPreId() != 0) {
        setPreId(other.getPreId());
      }
      if (other.getDeliveryMethod() != 0) {
        setDeliveryMethod(other.getDeliveryMethod());
      }
      if (!other.getTimeStandard().isEmpty()) {
        timeStandard_ = other.timeStandard_;
        onChanged();
      }
      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.SavePrescriptionExpressAddressRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.drug.SavePrescriptionExpressAddressRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object hisOrderNo_ = "";
    /**
     * <pre>
     *医院his订单号（处方有更改，预留）
     * </pre>
     *
     * <code>string hisOrderNo = 1;</code>
     */
    public java.lang.String getHisOrderNo() {
      java.lang.Object ref = hisOrderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOrderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院his订单号（处方有更改，预留）
     * </pre>
     *
     * <code>string hisOrderNo = 1;</code>
     */
    public com.google.protobuf.ByteString
        getHisOrderNoBytes() {
      java.lang.Object ref = hisOrderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOrderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院his订单号（处方有更改，预留）
     * </pre>
     *
     * <code>string hisOrderNo = 1;</code>
     */
    public Builder setHisOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院his订单号（处方有更改，预留）
     * </pre>
     *
     * <code>string hisOrderNo = 1;</code>
     */
    public Builder clearHisOrderNo() {
      
      hisOrderNo_ = getDefaultInstance().getHisOrderNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院his订单号（处方有更改，预留）
     * </pre>
     *
     * <code>string hisOrderNo = 1;</code>
     */
    public Builder setHisOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrderNo_ = value;
      onChanged();
      return this;
    }

    private int addressId_ ;
    /**
     * <pre>
     *地址ID
     * </pre>
     *
     * <code>int32 addressId = 2;</code>
     */
    public int getAddressId() {
      return addressId_;
    }
    /**
     * <pre>
     *地址ID
     * </pre>
     *
     * <code>int32 addressId = 2;</code>
     */
    public Builder setAddressId(int value) {
      
      addressId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地址ID
     * </pre>
     *
     * <code>int32 addressId = 2;</code>
     */
    public Builder clearAddressId() {
      
      addressId_ = 0;
      onChanged();
      return this;
    }

    private int pharmacyId_ ;
    /**
     * <pre>
     *药房地址ID
     * </pre>
     *
     * <code>int32 pharmacyId = 3;</code>
     */
    public int getPharmacyId() {
      return pharmacyId_;
    }
    /**
     * <pre>
     *药房地址ID
     * </pre>
     *
     * <code>int32 pharmacyId = 3;</code>
     */
    public Builder setPharmacyId(int value) {
      
      pharmacyId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药房地址ID
     * </pre>
     *
     * <code>int32 pharmacyId = 3;</code>
     */
    public Builder clearPharmacyId() {
      
      pharmacyId_ = 0;
      onChanged();
      return this;
    }

    private int freight_ ;
    /**
     * <pre>
     *药品配送费（快递费）
     * </pre>
     *
     * <code>int32 freight = 4;</code>
     */
    public int getFreight() {
      return freight_;
    }
    /**
     * <pre>
     *药品配送费（快递费）
     * </pre>
     *
     * <code>int32 freight = 4;</code>
     */
    public Builder setFreight(int value) {
      
      freight_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *药品配送费（快递费）
     * </pre>
     *
     * <code>int32 freight = 4;</code>
     */
    public Builder clearFreight() {
      
      freight_ = 0;
      onChanged();
      return this;
    }

    private int individual_ ;
    /**
     * <pre>
     *个人支付总金额
     * </pre>
     *
     * <code>int32 individual = 5;</code>
     */
    public int getIndividual() {
      return individual_;
    }
    /**
     * <pre>
     *个人支付总金额
     * </pre>
     *
     * <code>int32 individual = 5;</code>
     */
    public Builder setIndividual(int value) {
      
      individual_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *个人支付总金额
     * </pre>
     *
     * <code>int32 individual = 5;</code>
     */
    public Builder clearIndividual() {
      
      individual_ = 0;
      onChanged();
      return this;
    }

    private int needPrintStatus_ ;
    /**
     * <pre>
     * 是否需要打印发票，0-不需要，1-需要
     * </pre>
     *
     * <code>int32 needPrintStatus = 6;</code>
     */
    public int getNeedPrintStatus() {
      return needPrintStatus_;
    }
    /**
     * <pre>
     * 是否需要打印发票，0-不需要，1-需要
     * </pre>
     *
     * <code>int32 needPrintStatus = 6;</code>
     */
    public Builder setNeedPrintStatus(int value) {
      
      needPrintStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 是否需要打印发票，0-不需要，1-需要
     * </pre>
     *
     * <code>int32 needPrintStatus = 6;</code>
     */
    public Builder clearNeedPrintStatus() {
      
      needPrintStatus_ = 0;
      onChanged();
      return this;
    }

    private int preId_ ;
    /**
     * <pre>
     * 处方表ID
     * </pre>
     *
     * <code>int32 preId = 7;</code>
     */
    public int getPreId() {
      return preId_;
    }
    /**
     * <pre>
     * 处方表ID
     * </pre>
     *
     * <code>int32 preId = 7;</code>
     */
    public Builder setPreId(int value) {
      
      preId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 处方表ID
     * </pre>
     *
     * <code>int32 preId = 7;</code>
     */
    public Builder clearPreId() {
      
      preId_ = 0;
      onChanged();
      return this;
    }

    private int deliveryMethod_ ;
    /**
     * <pre>
     * 1-快递到家，2-自取
     * </pre>
     *
     * <code>int32 deliveryMethod = 8;</code>
     */
    public int getDeliveryMethod() {
      return deliveryMethod_;
    }
    /**
     * <pre>
     * 1-快递到家，2-自取
     * </pre>
     *
     * <code>int32 deliveryMethod = 8;</code>
     */
    public Builder setDeliveryMethod(int value) {
      
      deliveryMethod_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 1-快递到家，2-自取
     * </pre>
     *
     * <code>int32 deliveryMethod = 8;</code>
     */
    public Builder clearDeliveryMethod() {
      
      deliveryMethod_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object timeStandard_ = "";
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 9;</code>
     */
    public java.lang.String getTimeStandard() {
      java.lang.Object ref = timeStandard_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        timeStandard_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 9;</code>
     */
    public com.google.protobuf.ByteString
        getTimeStandardBytes() {
      java.lang.Object ref = timeStandard_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        timeStandard_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 9;</code>
     */
    public Builder setTimeStandard(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      timeStandard_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 9;</code>
     */
    public Builder clearTimeStandard() {
      
      timeStandard_ = getDefaultInstance().getTimeStandard();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 9;</code>
     */
    public Builder setTimeStandardBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      timeStandard_ = value;
      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.SavePrescriptionExpressAddressRequest)
  }

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

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

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

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

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

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

}

