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

package com.ywt.gapi.order;

/**
 * <pre>
 *保存处方快递地址请求
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.order.SavePrescriptionAddressRequest}
 */
public  final class SavePrescriptionAddressRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.SavePrescriptionAddressRequest)
    SavePrescriptionAddressRequestOrBuilder {
  // Use SavePrescriptionAddressRequest.newBuilder() to construct.
  private SavePrescriptionAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SavePrescriptionAddressRequest() {
    orderId_ = 0;
    province_ = "";
    city_ = "";
    area_ = "";
    address_ = "";
    contact_ = "";
    appellation_ = "";
    mobile_ = "";
    addressId_ = 0;
    freight_ = 0;
    individual_ = 0;
    needPrintStatus_ = 0;
    deliveryMethod_ = 0;
    pharmacyId_ = 0;
    timeStandard_ = "";
  }

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

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

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

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

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

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

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

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

            mobile_ = s;
            break;
          }
          case 72: {

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

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

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

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

            deliveryMethod_ = input.readInt32();
            break;
          }
          case 112: {

            pharmacyId_ = input.readInt32();
            break;
          }
          case 122: {
            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.order.OrderOuterClass.internal_static_com_ywt_gapi_order_SavePrescriptionAddressRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_SavePrescriptionAddressRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.order.SavePrescriptionAddressRequest.class, com.ywt.gapi.order.SavePrescriptionAddressRequest.Builder.class);
  }

  public static final int ORDERID_FIELD_NUMBER = 1;
  private int orderId_;
  /**
   * <pre>
   *订单Id
   * </pre>
   *
   * <code>int32 orderId = 1;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  public static final int PROVINCE_FIELD_NUMBER = 2;
  private volatile java.lang.Object province_;
  /**
   * <pre>
   *省
   * </pre>
   *
   * <code>string province = 2;</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 = 2;</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 = 3;
  private volatile java.lang.Object city_;
  /**
   * <pre>
   *市
   * </pre>
   *
   * <code>string city = 3;</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 = 3;</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 = 4;
  private volatile java.lang.Object area_;
  /**
   * <pre>
   *区
   * </pre>
   *
   * <code>string area = 4;</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 = 4;</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 ADDRESS_FIELD_NUMBER = 5;
  private volatile java.lang.Object address_;
  /**
   * <pre>
   *详细地址
   * </pre>
   *
   * <code>string address = 5;</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 = 5;</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 CONTACT_FIELD_NUMBER = 6;
  private volatile java.lang.Object contact_;
  /**
   * <pre>
   *联系人
   * </pre>
   *
   * <code>string contact = 6;</code>
   */
  public java.lang.String getContact() {
    java.lang.Object ref = contact_;
    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();
      contact_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *联系人
   * </pre>
   *
   * <code>string contact = 6;</code>
   */
  public com.google.protobuf.ByteString
      getContactBytes() {
    java.lang.Object ref = contact_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      contact_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int APPELLATION_FIELD_NUMBER = 7;
  private volatile java.lang.Object appellation_;
  /**
   * <pre>
   *称呼
   * </pre>
   *
   * <code>string appellation = 7;</code>
   */
  public java.lang.String getAppellation() {
    java.lang.Object ref = appellation_;
    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();
      appellation_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *称呼
   * </pre>
   *
   * <code>string appellation = 7;</code>
   */
  public com.google.protobuf.ByteString
      getAppellationBytes() {
    java.lang.Object ref = appellation_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      appellation_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MOBILE_FIELD_NUMBER = 8;
  private volatile java.lang.Object mobile_;
  /**
   * <pre>
   *联系手机号
   * </pre>
   *
   * <code>string mobile = 8;</code>
   */
  public java.lang.String getMobile() {
    java.lang.Object ref = mobile_;
    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();
      mobile_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *联系手机号
   * </pre>
   *
   * <code>string mobile = 8;</code>
   */
  public com.google.protobuf.ByteString
      getMobileBytes() {
    java.lang.Object ref = mobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADDRESSID_FIELD_NUMBER = 9;
  private int addressId_;
  /**
   * <pre>
   *地址ID(当值不为0时,表示药房地址ID，直接保存该ID到处方表)
   * </pre>
   *
   * <code>int32 addressId = 9;</code>
   */
  public int getAddressId() {
    return addressId_;
  }

  public static final int FREIGHT_FIELD_NUMBER = 10;
  private int freight_;
  /**
   * <pre>
   *快递费
   * </pre>
   *
   * <code>int32 freight = 10;</code>
   */
  public int getFreight() {
    return freight_;
  }

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

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

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

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

  public static final int TIMESTANDARD_FIELD_NUMBER = 15;
  private volatile java.lang.Object timeStandard_;
  /**
   * <pre>
   * 时效标准(快递的预计送达时间)
   * </pre>
   *
   * <code>string timeStandard = 15;</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 = 15;</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 (orderId_ != 0) {
      output.writeInt32(1, orderId_);
    }
    if (!getProvinceBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, province_);
    }
    if (!getCityBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, city_);
    }
    if (!getAreaBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, area_);
    }
    if (!getAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, address_);
    }
    if (!getContactBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, contact_);
    }
    if (!getAppellationBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, appellation_);
    }
    if (!getMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mobile_);
    }
    if (addressId_ != 0) {
      output.writeInt32(9, addressId_);
    }
    if (freight_ != 0) {
      output.writeInt32(10, freight_);
    }
    if (individual_ != 0) {
      output.writeInt32(11, individual_);
    }
    if (needPrintStatus_ != 0) {
      output.writeInt32(12, needPrintStatus_);
    }
    if (deliveryMethod_ != 0) {
      output.writeInt32(13, deliveryMethod_);
    }
    if (pharmacyId_ != 0) {
      output.writeInt32(14, pharmacyId_);
    }
    if (!getTimeStandardBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, timeStandard_);
    }
  }

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

    size = 0;
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, orderId_);
    }
    if (!getProvinceBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, province_);
    }
    if (!getCityBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, city_);
    }
    if (!getAreaBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, area_);
    }
    if (!getAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, address_);
    }
    if (!getContactBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, contact_);
    }
    if (!getAppellationBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, appellation_);
    }
    if (!getMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mobile_);
    }
    if (addressId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, addressId_);
    }
    if (freight_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, freight_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, individual_);
    }
    if (needPrintStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, needPrintStatus_);
    }
    if (deliveryMethod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, deliveryMethod_);
    }
    if (pharmacyId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, pharmacyId_);
    }
    if (!getTimeStandardBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, 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.order.SavePrescriptionAddressRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.SavePrescriptionAddressRequest other = (com.ywt.gapi.order.SavePrescriptionAddressRequest) obj;

    boolean result = true;
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && getProvince()
        .equals(other.getProvince());
    result = result && getCity()
        .equals(other.getCity());
    result = result && getArea()
        .equals(other.getArea());
    result = result && getAddress()
        .equals(other.getAddress());
    result = result && getContact()
        .equals(other.getContact());
    result = result && getAppellation()
        .equals(other.getAppellation());
    result = result && getMobile()
        .equals(other.getMobile());
    result = result && (getAddressId()
        == other.getAddressId());
    result = result && (getFreight()
        == other.getFreight());
    result = result && (getIndividual()
        == other.getIndividual());
    result = result && (getNeedPrintStatus()
        == other.getNeedPrintStatus());
    result = result && (getDeliveryMethod()
        == other.getDeliveryMethod());
    result = result && (getPharmacyId()
        == other.getPharmacyId());
    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) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    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) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + CONTACT_FIELD_NUMBER;
    hash = (53 * hash) + getContact().hashCode();
    hash = (37 * hash) + APPELLATION_FIELD_NUMBER;
    hash = (53 * hash) + getAppellation().hashCode();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + ADDRESSID_FIELD_NUMBER;
    hash = (53 * hash) + getAddressId();
    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) + DELIVERYMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getDeliveryMethod();
    hash = (37 * hash) + PHARMACYID_FIELD_NUMBER;
    hash = (53 * hash) + getPharmacyId();
    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.order.SavePrescriptionAddressRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.SavePrescriptionAddressRequest 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.order.SavePrescriptionAddressRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.SavePrescriptionAddressRequest 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.order.SavePrescriptionAddressRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.SavePrescriptionAddressRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.SavePrescriptionAddressRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.SavePrescriptionAddressRequest 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.order.SavePrescriptionAddressRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.SavePrescriptionAddressRequest 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.order.SavePrescriptionAddressRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.SavePrescriptionAddressRequest 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.order.SavePrescriptionAddressRequest 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.order.SavePrescriptionAddressRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.order.SavePrescriptionAddressRequest)
      com.ywt.gapi.order.SavePrescriptionAddressRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_SavePrescriptionAddressRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_SavePrescriptionAddressRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.order.SavePrescriptionAddressRequest.class, com.ywt.gapi.order.SavePrescriptionAddressRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.order.SavePrescriptionAddressRequest.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();
      orderId_ = 0;

      province_ = "";

      city_ = "";

      area_ = "";

      address_ = "";

      contact_ = "";

      appellation_ = "";

      mobile_ = "";

      addressId_ = 0;

      freight_ = 0;

      individual_ = 0;

      needPrintStatus_ = 0;

      deliveryMethod_ = 0;

      pharmacyId_ = 0;

      timeStandard_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_SavePrescriptionAddressRequest_descriptor;
    }

    public com.ywt.gapi.order.SavePrescriptionAddressRequest getDefaultInstanceForType() {
      return com.ywt.gapi.order.SavePrescriptionAddressRequest.getDefaultInstance();
    }

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

    public com.ywt.gapi.order.SavePrescriptionAddressRequest buildPartial() {
      com.ywt.gapi.order.SavePrescriptionAddressRequest result = new com.ywt.gapi.order.SavePrescriptionAddressRequest(this);
      result.orderId_ = orderId_;
      result.province_ = province_;
      result.city_ = city_;
      result.area_ = area_;
      result.address_ = address_;
      result.contact_ = contact_;
      result.appellation_ = appellation_;
      result.mobile_ = mobile_;
      result.addressId_ = addressId_;
      result.freight_ = freight_;
      result.individual_ = individual_;
      result.needPrintStatus_ = needPrintStatus_;
      result.deliveryMethod_ = deliveryMethod_;
      result.pharmacyId_ = pharmacyId_;
      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.order.SavePrescriptionAddressRequest) {
        return mergeFrom((com.ywt.gapi.order.SavePrescriptionAddressRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.SavePrescriptionAddressRequest other) {
      if (other == com.ywt.gapi.order.SavePrescriptionAddressRequest.getDefaultInstance()) return this;
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      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.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (!other.getContact().isEmpty()) {
        contact_ = other.contact_;
        onChanged();
      }
      if (!other.getAppellation().isEmpty()) {
        appellation_ = other.appellation_;
        onChanged();
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (other.getAddressId() != 0) {
        setAddressId(other.getAddressId());
      }
      if (other.getFreight() != 0) {
        setFreight(other.getFreight());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (other.getNeedPrintStatus() != 0) {
        setNeedPrintStatus(other.getNeedPrintStatus());
      }
      if (other.getDeliveryMethod() != 0) {
        setDeliveryMethod(other.getDeliveryMethod());
      }
      if (other.getPharmacyId() != 0) {
        setPharmacyId(other.getPharmacyId());
      }
      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.order.SavePrescriptionAddressRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.SavePrescriptionAddressRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int orderId_ ;
    /**
     * <pre>
     *订单Id
     * </pre>
     *
     * <code>int32 orderId = 1;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <pre>
     *订单Id
     * </pre>
     *
     * <code>int32 orderId = 1;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单Id
     * </pre>
     *
     * <code>int32 orderId = 1;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object province_ = "";
    /**
     * <pre>
     *省
     * </pre>
     *
     * <code>string province = 2;</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 = 2;</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 = 2;</code>
     */
    public Builder setProvince(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      province_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *省
     * </pre>
     *
     * <code>string province = 2;</code>
     */
    public Builder clearProvince() {
      
      province_ = getDefaultInstance().getProvince();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *省
     * </pre>
     *
     * <code>string province = 2;</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 = 3;</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 = 3;</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 = 3;</code>
     */
    public Builder setCity(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      city_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *市
     * </pre>
     *
     * <code>string city = 3;</code>
     */
    public Builder clearCity() {
      
      city_ = getDefaultInstance().getCity();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *市
     * </pre>
     *
     * <code>string city = 3;</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 = 4;</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 = 4;</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 = 4;</code>
     */
    public Builder setArea(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      area_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *区
     * </pre>
     *
     * <code>string area = 4;</code>
     */
    public Builder clearArea() {
      
      area_ = getDefaultInstance().getArea();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *区
     * </pre>
     *
     * <code>string area = 4;</code>
     */
    public Builder setAreaBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      area_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object address_ = "";
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 5;</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 = 5;</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 = 5;</code>
     */
    public Builder setAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      address_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 5;</code>
     */
    public Builder clearAddress() {
      
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *详细地址
     * </pre>
     *
     * <code>string address = 5;</code>
     */
    public Builder setAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      address_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object contact_ = "";
    /**
     * <pre>
     *联系人
     * </pre>
     *
     * <code>string contact = 6;</code>
     */
    public java.lang.String getContact() {
      java.lang.Object ref = contact_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        contact_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *联系人
     * </pre>
     *
     * <code>string contact = 6;</code>
     */
    public com.google.protobuf.ByteString
        getContactBytes() {
      java.lang.Object ref = contact_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        contact_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *联系人
     * </pre>
     *
     * <code>string contact = 6;</code>
     */
    public Builder setContact(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      contact_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *联系人
     * </pre>
     *
     * <code>string contact = 6;</code>
     */
    public Builder clearContact() {
      
      contact_ = getDefaultInstance().getContact();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *联系人
     * </pre>
     *
     * <code>string contact = 6;</code>
     */
    public Builder setContactBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      contact_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object appellation_ = "";
    /**
     * <pre>
     *称呼
     * </pre>
     *
     * <code>string appellation = 7;</code>
     */
    public java.lang.String getAppellation() {
      java.lang.Object ref = appellation_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        appellation_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *称呼
     * </pre>
     *
     * <code>string appellation = 7;</code>
     */
    public com.google.protobuf.ByteString
        getAppellationBytes() {
      java.lang.Object ref = appellation_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        appellation_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *称呼
     * </pre>
     *
     * <code>string appellation = 7;</code>
     */
    public Builder setAppellation(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      appellation_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *称呼
     * </pre>
     *
     * <code>string appellation = 7;</code>
     */
    public Builder clearAppellation() {
      
      appellation_ = getDefaultInstance().getAppellation();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *称呼
     * </pre>
     *
     * <code>string appellation = 7;</code>
     */
    public Builder setAppellationBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      appellation_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <pre>
     *联系手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public java.lang.String getMobile() {
      java.lang.Object ref = mobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *联系手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      java.lang.Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *联系手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *联系手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *联系手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = value;
      onChanged();
      return this;
    }

    private int addressId_ ;
    /**
     * <pre>
     *地址ID(当值不为0时,表示药房地址ID，直接保存该ID到处方表)
     * </pre>
     *
     * <code>int32 addressId = 9;</code>
     */
    public int getAddressId() {
      return addressId_;
    }
    /**
     * <pre>
     *地址ID(当值不为0时,表示药房地址ID，直接保存该ID到处方表)
     * </pre>
     *
     * <code>int32 addressId = 9;</code>
     */
    public Builder setAddressId(int value) {
      
      addressId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地址ID(当值不为0时,表示药房地址ID，直接保存该ID到处方表)
     * </pre>
     *
     * <code>int32 addressId = 9;</code>
     */
    public Builder clearAddressId() {
      
      addressId_ = 0;
      onChanged();
      return this;
    }

    private int freight_ ;
    /**
     * <pre>
     *快递费
     * </pre>
     *
     * <code>int32 freight = 10;</code>
     */
    public int getFreight() {
      return freight_;
    }
    /**
     * <pre>
     *快递费
     * </pre>
     *
     * <code>int32 freight = 10;</code>
     */
    public Builder setFreight(int value) {
      
      freight_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *快递费
     * </pre>
     *
     * <code>int32 freight = 10;</code>
     */
    public Builder clearFreight() {
      
      freight_ = 0;
      onChanged();
      return this;
    }

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

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

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

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

    private java.lang.Object timeStandard_ = "";
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 15;</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 = 15;</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 = 15;</code>
     */
    public Builder setTimeStandard(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      timeStandard_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 15;</code>
     */
    public Builder clearTimeStandard() {
      
      timeStandard_ = getDefaultInstance().getTimeStandard();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 时效标准(快递的预计送达时间)
     * </pre>
     *
     * <code>string timeStandard = 15;</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.order.SavePrescriptionAddressRequest)
  }

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

  public static com.ywt.gapi.order.SavePrescriptionAddressRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.order.SavePrescriptionAddressRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

