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

package com.ywt.gapi.system;

/**
 * <pre>
 *保存收货地址请求
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.system.SaveAddressRequest}
 */
public  final class SaveAddressRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.system.SaveAddressRequest)
    SaveAddressRequestOrBuilder {
  // Use SaveAddressRequest.newBuilder() to construct.
  private SaveAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SaveAddressRequest() {
    userId_ = 0;
    province_ = "";
    city_ = "";
    area_ = "";
    address_ = "";
    contact_ = "";
    appellation_ = "";
    mobile_ = "";
    id_ = 0;
    provinceId_ = 0;
    cityId_ = 0;
    areaId_ = 0;
  }

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

            userId_ = 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: {

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

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

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

            areaId_ = 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.system.System.internal_static_com_ywt_gapi_system_SaveAddressRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.system.System.internal_static_com_ywt_gapi_system_SaveAddressRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.system.SaveAddressRequest.class, com.ywt.gapi.system.SaveAddressRequest.Builder.class);
  }

  public static final int USERID_FIELD_NUMBER = 1;
  private int userId_;
  /**
   * <pre>
   *用户Id
   * </pre>
   *
   * <code>int32 userId = 1;</code>
   */
  public int getUserId() {
    return userId_;
  }

  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 ID_FIELD_NUMBER = 9;
  private int id_;
  /**
   * <pre>
   *地址Id，大于0时表示修改，为0表示新增
   * </pre>
   *
   * <code>int32 id = 9;</code>
   */
  public int getId() {
    return id_;
  }

  public static final int PROVINCEID_FIELD_NUMBER = 10;
  private int provinceId_;
  /**
   * <pre>
   *省Id
   * </pre>
   *
   * <code>int32 provinceId = 10;</code>
   */
  public int getProvinceId() {
    return provinceId_;
  }

  public static final int CITYID_FIELD_NUMBER = 11;
  private int cityId_;
  /**
   * <pre>
   *市Id
   * </pre>
   *
   * <code>int32 cityId = 11;</code>
   */
  public int getCityId() {
    return cityId_;
  }

  public static final int AREAID_FIELD_NUMBER = 12;
  private int areaId_;
  /**
   * <pre>
   *区Id
   * </pre>
   *
   * <code>int32 areaId = 12;</code>
   */
  public int getAreaId() {
    return areaId_;
  }

  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 (userId_ != 0) {
      output.writeInt32(1, userId_);
    }
    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 (id_ != 0) {
      output.writeInt32(9, id_);
    }
    if (provinceId_ != 0) {
      output.writeInt32(10, provinceId_);
    }
    if (cityId_ != 0) {
      output.writeInt32(11, cityId_);
    }
    if (areaId_ != 0) {
      output.writeInt32(12, areaId_);
    }
  }

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

    size = 0;
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, userId_);
    }
    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 (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, id_);
    }
    if (provinceId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, provinceId_);
    }
    if (cityId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, cityId_);
    }
    if (areaId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, areaId_);
    }
    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.system.SaveAddressRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.system.SaveAddressRequest other = (com.ywt.gapi.system.SaveAddressRequest) obj;

    boolean result = true;
    result = result && (getUserId()
        == other.getUserId());
    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 && (getId()
        == other.getId());
    result = result && (getProvinceId()
        == other.getProvinceId());
    result = result && (getCityId()
        == other.getCityId());
    result = result && (getAreaId()
        == other.getAreaId());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    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) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + PROVINCEID_FIELD_NUMBER;
    hash = (53 * hash) + getProvinceId();
    hash = (37 * hash) + CITYID_FIELD_NUMBER;
    hash = (53 * hash) + getCityId();
    hash = (37 * hash) + AREAID_FIELD_NUMBER;
    hash = (53 * hash) + getAreaId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.system.System.internal_static_com_ywt_gapi_system_SaveAddressRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.system.SaveAddressRequest.class, com.ywt.gapi.system.SaveAddressRequest.Builder.class);
    }

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

      province_ = "";

      city_ = "";

      area_ = "";

      address_ = "";

      contact_ = "";

      appellation_ = "";

      mobile_ = "";

      id_ = 0;

      provinceId_ = 0;

      cityId_ = 0;

      areaId_ = 0;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.system.System.internal_static_com_ywt_gapi_system_SaveAddressRequest_descriptor;
    }

    public com.ywt.gapi.system.SaveAddressRequest getDefaultInstanceForType() {
      return com.ywt.gapi.system.SaveAddressRequest.getDefaultInstance();
    }

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

    public com.ywt.gapi.system.SaveAddressRequest buildPartial() {
      com.ywt.gapi.system.SaveAddressRequest result = new com.ywt.gapi.system.SaveAddressRequest(this);
      result.userId_ = userId_;
      result.province_ = province_;
      result.city_ = city_;
      result.area_ = area_;
      result.address_ = address_;
      result.contact_ = contact_;
      result.appellation_ = appellation_;
      result.mobile_ = mobile_;
      result.id_ = id_;
      result.provinceId_ = provinceId_;
      result.cityId_ = cityId_;
      result.areaId_ = areaId_;
      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.system.SaveAddressRequest) {
        return mergeFrom((com.ywt.gapi.system.SaveAddressRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.system.SaveAddressRequest other) {
      if (other == com.ywt.gapi.system.SaveAddressRequest.getDefaultInstance()) return this;
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      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.getId() != 0) {
        setId(other.getId());
      }
      if (other.getProvinceId() != 0) {
        setProvinceId(other.getProvinceId());
      }
      if (other.getCityId() != 0) {
        setCityId(other.getCityId());
      }
      if (other.getAreaId() != 0) {
        setAreaId(other.getAreaId());
      }
      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.system.SaveAddressRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.system.SaveAddressRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int userId_ ;
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 1;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 1;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 1;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 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 id_ ;
    /**
     * <pre>
     *地址Id，大于0时表示修改，为0表示新增
     * </pre>
     *
     * <code>int32 id = 9;</code>
     */
    public int getId() {
      return id_;
    }
    /**
     * <pre>
     *地址Id，大于0时表示修改，为0表示新增
     * </pre>
     *
     * <code>int32 id = 9;</code>
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地址Id，大于0时表示修改，为0表示新增
     * </pre>
     *
     * <code>int32 id = 9;</code>
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

    private int provinceId_ ;
    /**
     * <pre>
     *省Id
     * </pre>
     *
     * <code>int32 provinceId = 10;</code>
     */
    public int getProvinceId() {
      return provinceId_;
    }
    /**
     * <pre>
     *省Id
     * </pre>
     *
     * <code>int32 provinceId = 10;</code>
     */
    public Builder setProvinceId(int value) {
      
      provinceId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *省Id
     * </pre>
     *
     * <code>int32 provinceId = 10;</code>
     */
    public Builder clearProvinceId() {
      
      provinceId_ = 0;
      onChanged();
      return this;
    }

    private int cityId_ ;
    /**
     * <pre>
     *市Id
     * </pre>
     *
     * <code>int32 cityId = 11;</code>
     */
    public int getCityId() {
      return cityId_;
    }
    /**
     * <pre>
     *市Id
     * </pre>
     *
     * <code>int32 cityId = 11;</code>
     */
    public Builder setCityId(int value) {
      
      cityId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *市Id
     * </pre>
     *
     * <code>int32 cityId = 11;</code>
     */
    public Builder clearCityId() {
      
      cityId_ = 0;
      onChanged();
      return this;
    }

    private int areaId_ ;
    /**
     * <pre>
     *区Id
     * </pre>
     *
     * <code>int32 areaId = 12;</code>
     */
    public int getAreaId() {
      return areaId_;
    }
    /**
     * <pre>
     *区Id
     * </pre>
     *
     * <code>int32 areaId = 12;</code>
     */
    public Builder setAreaId(int value) {
      
      areaId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *区Id
     * </pre>
     *
     * <code>int32 areaId = 12;</code>
     */
    public Builder clearAreaId() {
      
      areaId_ = 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.system.SaveAddressRequest)
  }

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

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

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

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

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

  public com.ywt.gapi.system.SaveAddressRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

