/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/maps/addressvalidation/v1/usps_data.proto

package com.google.maps.addressvalidation.v1;

/**
 *
 *
 * <pre>
 * USPS representation of a US address.
 * </pre>
 *
 * Protobuf type {@code google.maps.addressvalidation.v1.UspsAddress}
 */
public final class UspsAddress extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.maps.addressvalidation.v1.UspsAddress)
    UspsAddressOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use UspsAddress.newBuilder() to construct.
  private UspsAddress(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private UspsAddress() {
    firstAddressLine_ = "";
    firm_ = "";
    secondAddressLine_ = "";
    urbanization_ = "";
    cityStateZipAddressLine_ = "";
    city_ = "";
    state_ = "";
    zipCode_ = "";
    zipCodeExtension_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new UspsAddress();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.maps.addressvalidation.v1.UspsDataProto
        .internal_static_google_maps_addressvalidation_v1_UspsAddress_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.maps.addressvalidation.v1.UspsDataProto
        .internal_static_google_maps_addressvalidation_v1_UspsAddress_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.maps.addressvalidation.v1.UspsAddress.class,
            com.google.maps.addressvalidation.v1.UspsAddress.Builder.class);
  }

  public static final int FIRST_ADDRESS_LINE_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object firstAddressLine_ = "";
  /**
   *
   *
   * <pre>
   * First address line.
   * </pre>
   *
   * <code>string first_address_line = 1;</code>
   *
   * @return The firstAddressLine.
   */
  @java.lang.Override
  public java.lang.String getFirstAddressLine() {
    java.lang.Object ref = firstAddressLine_;
    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();
      firstAddressLine_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * First address line.
   * </pre>
   *
   * <code>string first_address_line = 1;</code>
   *
   * @return The bytes for firstAddressLine.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getFirstAddressLineBytes() {
    java.lang.Object ref = firstAddressLine_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      firstAddressLine_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FIRM_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object firm_ = "";
  /**
   *
   *
   * <pre>
   * Firm name.
   * </pre>
   *
   * <code>string firm = 2;</code>
   *
   * @return The firm.
   */
  @java.lang.Override
  public java.lang.String getFirm() {
    java.lang.Object ref = firm_;
    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();
      firm_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Firm name.
   * </pre>
   *
   * <code>string firm = 2;</code>
   *
   * @return The bytes for firm.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getFirmBytes() {
    java.lang.Object ref = firm_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      firm_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SECOND_ADDRESS_LINE_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object secondAddressLine_ = "";
  /**
   *
   *
   * <pre>
   * Second address line.
   * </pre>
   *
   * <code>string second_address_line = 3;</code>
   *
   * @return The secondAddressLine.
   */
  @java.lang.Override
  public java.lang.String getSecondAddressLine() {
    java.lang.Object ref = secondAddressLine_;
    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();
      secondAddressLine_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Second address line.
   * </pre>
   *
   * <code>string second_address_line = 3;</code>
   *
   * @return The bytes for secondAddressLine.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSecondAddressLineBytes() {
    java.lang.Object ref = secondAddressLine_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      secondAddressLine_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int URBANIZATION_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object urbanization_ = "";
  /**
   *
   *
   * <pre>
   * Puerto Rican urbanization name.
   * </pre>
   *
   * <code>string urbanization = 4;</code>
   *
   * @return The urbanization.
   */
  @java.lang.Override
  public java.lang.String getUrbanization() {
    java.lang.Object ref = urbanization_;
    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();
      urbanization_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Puerto Rican urbanization name.
   * </pre>
   *
   * <code>string urbanization = 4;</code>
   *
   * @return The bytes for urbanization.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getUrbanizationBytes() {
    java.lang.Object ref = urbanization_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      urbanization_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CITY_STATE_ZIP_ADDRESS_LINE_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object cityStateZipAddressLine_ = "";
  /**
   *
   *
   * <pre>
   * City + state + postal code.
   * </pre>
   *
   * <code>string city_state_zip_address_line = 5;</code>
   *
   * @return The cityStateZipAddressLine.
   */
  @java.lang.Override
  public java.lang.String getCityStateZipAddressLine() {
    java.lang.Object ref = cityStateZipAddressLine_;
    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();
      cityStateZipAddressLine_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * City + state + postal code.
   * </pre>
   *
   * <code>string city_state_zip_address_line = 5;</code>
   *
   * @return The bytes for cityStateZipAddressLine.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getCityStateZipAddressLineBytes() {
    java.lang.Object ref = cityStateZipAddressLine_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      cityStateZipAddressLine_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CITY_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object city_ = "";
  /**
   *
   *
   * <pre>
   * City name.
   * </pre>
   *
   * <code>string city = 6;</code>
   *
   * @return The city.
   */
  @java.lang.Override
  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>
   * City name.
   * </pre>
   *
   * <code>string city = 6;</code>
   *
   * @return The bytes for city.
   */
  @java.lang.Override
  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 STATE_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private volatile java.lang.Object state_ = "";
  /**
   *
   *
   * <pre>
   * 2 letter state code.
   * </pre>
   *
   * <code>string state = 7;</code>
   *
   * @return The state.
   */
  @java.lang.Override
  public java.lang.String getState() {
    java.lang.Object ref = state_;
    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();
      state_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * 2 letter state code.
   * </pre>
   *
   * <code>string state = 7;</code>
   *
   * @return The bytes for state.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getStateBytes() {
    java.lang.Object ref = state_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      state_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ZIP_CODE_FIELD_NUMBER = 8;

  @SuppressWarnings("serial")
  private volatile java.lang.Object zipCode_ = "";
  /**
   *
   *
   * <pre>
   * Postal code e.g. 10009.
   * </pre>
   *
   * <code>string zip_code = 8;</code>
   *
   * @return The zipCode.
   */
  @java.lang.Override
  public java.lang.String getZipCode() {
    java.lang.Object ref = zipCode_;
    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();
      zipCode_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Postal code e.g. 10009.
   * </pre>
   *
   * <code>string zip_code = 8;</code>
   *
   * @return The bytes for zipCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getZipCodeBytes() {
    java.lang.Object ref = zipCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      zipCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ZIP_CODE_EXTENSION_FIELD_NUMBER = 9;

  @SuppressWarnings("serial")
  private volatile java.lang.Object zipCodeExtension_ = "";
  /**
   *
   *
   * <pre>
   * 4-digit postal code extension e.g. 5023.
   * </pre>
   *
   * <code>string zip_code_extension = 9;</code>
   *
   * @return The zipCodeExtension.
   */
  @java.lang.Override
  public java.lang.String getZipCodeExtension() {
    java.lang.Object ref = zipCodeExtension_;
    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();
      zipCodeExtension_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * 4-digit postal code extension e.g. 5023.
   * </pre>
   *
   * <code>string zip_code_extension = 9;</code>
   *
   * @return The bytes for zipCodeExtension.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getZipCodeExtensionBytes() {
    java.lang.Object ref = zipCodeExtension_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      zipCodeExtension_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstAddressLine_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firstAddressLine_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firm_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firm_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondAddressLine_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secondAddressLine_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urbanization_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, urbanization_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cityStateZipAddressLine_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cityStateZipAddressLine_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, city_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zipCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, zipCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zipCodeExtension_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, zipCodeExtension_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstAddressLine_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firstAddressLine_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firm_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firm_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondAddressLine_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secondAddressLine_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urbanization_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, urbanization_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cityStateZipAddressLine_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cityStateZipAddressLine_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, city_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zipCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, zipCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zipCodeExtension_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, zipCodeExtension_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.maps.addressvalidation.v1.UspsAddress)) {
      return super.equals(obj);
    }
    com.google.maps.addressvalidation.v1.UspsAddress other =
        (com.google.maps.addressvalidation.v1.UspsAddress) obj;

    if (!getFirstAddressLine().equals(other.getFirstAddressLine())) return false;
    if (!getFirm().equals(other.getFirm())) return false;
    if (!getSecondAddressLine().equals(other.getSecondAddressLine())) return false;
    if (!getUrbanization().equals(other.getUrbanization())) return false;
    if (!getCityStateZipAddressLine().equals(other.getCityStateZipAddressLine())) return false;
    if (!getCity().equals(other.getCity())) return false;
    if (!getState().equals(other.getState())) return false;
    if (!getZipCode().equals(other.getZipCode())) return false;
    if (!getZipCodeExtension().equals(other.getZipCodeExtension())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + FIRST_ADDRESS_LINE_FIELD_NUMBER;
    hash = (53 * hash) + getFirstAddressLine().hashCode();
    hash = (37 * hash) + FIRM_FIELD_NUMBER;
    hash = (53 * hash) + getFirm().hashCode();
    hash = (37 * hash) + SECOND_ADDRESS_LINE_FIELD_NUMBER;
    hash = (53 * hash) + getSecondAddressLine().hashCode();
    hash = (37 * hash) + URBANIZATION_FIELD_NUMBER;
    hash = (53 * hash) + getUrbanization().hashCode();
    hash = (37 * hash) + CITY_STATE_ZIP_ADDRESS_LINE_FIELD_NUMBER;
    hash = (53 * hash) + getCityStateZipAddressLine().hashCode();
    hash = (37 * hash) + CITY_FIELD_NUMBER;
    hash = (53 * hash) + getCity().hashCode();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + getState().hashCode();
    hash = (37 * hash) + ZIP_CODE_FIELD_NUMBER;
    hash = (53 * hash) + getZipCode().hashCode();
    hash = (37 * hash) + ZIP_CODE_EXTENSION_FIELD_NUMBER;
    hash = (53 * hash) + getZipCodeExtension().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress 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.google.maps.addressvalidation.v1.UspsAddress parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress 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.google.maps.addressvalidation.v1.UspsAddress parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.maps.addressvalidation.v1.UspsAddress prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  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>
   * USPS representation of a US address.
   * </pre>
   *
   * Protobuf type {@code google.maps.addressvalidation.v1.UspsAddress}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.maps.addressvalidation.v1.UspsAddress)
      com.google.maps.addressvalidation.v1.UspsAddressOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.maps.addressvalidation.v1.UspsDataProto
          .internal_static_google_maps_addressvalidation_v1_UspsAddress_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.maps.addressvalidation.v1.UspsDataProto
          .internal_static_google_maps_addressvalidation_v1_UspsAddress_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.maps.addressvalidation.v1.UspsAddress.class,
              com.google.maps.addressvalidation.v1.UspsAddress.Builder.class);
    }

    // Construct using com.google.maps.addressvalidation.v1.UspsAddress.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      firstAddressLine_ = "";
      firm_ = "";
      secondAddressLine_ = "";
      urbanization_ = "";
      cityStateZipAddressLine_ = "";
      city_ = "";
      state_ = "";
      zipCode_ = "";
      zipCodeExtension_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.maps.addressvalidation.v1.UspsDataProto
          .internal_static_google_maps_addressvalidation_v1_UspsAddress_descriptor;
    }

    @java.lang.Override
    public com.google.maps.addressvalidation.v1.UspsAddress getDefaultInstanceForType() {
      return com.google.maps.addressvalidation.v1.UspsAddress.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.maps.addressvalidation.v1.UspsAddress build() {
      com.google.maps.addressvalidation.v1.UspsAddress result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.maps.addressvalidation.v1.UspsAddress buildPartial() {
      com.google.maps.addressvalidation.v1.UspsAddress result =
          new com.google.maps.addressvalidation.v1.UspsAddress(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.maps.addressvalidation.v1.UspsAddress result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.firstAddressLine_ = firstAddressLine_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.firm_ = firm_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.secondAddressLine_ = secondAddressLine_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.urbanization_ = urbanization_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.cityStateZipAddressLine_ = cityStateZipAddressLine_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.city_ = city_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.zipCode_ = zipCode_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.zipCodeExtension_ = zipCodeExtension_;
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.maps.addressvalidation.v1.UspsAddress) {
        return mergeFrom((com.google.maps.addressvalidation.v1.UspsAddress) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.maps.addressvalidation.v1.UspsAddress other) {
      if (other == com.google.maps.addressvalidation.v1.UspsAddress.getDefaultInstance())
        return this;
      if (!other.getFirstAddressLine().isEmpty()) {
        firstAddressLine_ = other.firstAddressLine_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getFirm().isEmpty()) {
        firm_ = other.firm_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getSecondAddressLine().isEmpty()) {
        secondAddressLine_ = other.secondAddressLine_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getUrbanization().isEmpty()) {
        urbanization_ = other.urbanization_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getCityStateZipAddressLine().isEmpty()) {
        cityStateZipAddressLine_ = other.cityStateZipAddressLine_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (!other.getCity().isEmpty()) {
        city_ = other.city_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (!other.getState().isEmpty()) {
        state_ = other.state_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (!other.getZipCode().isEmpty()) {
        zipCode_ = other.zipCode_;
        bitField0_ |= 0x00000080;
        onChanged();
      }
      if (!other.getZipCodeExtension().isEmpty()) {
        zipCodeExtension_ = other.zipCodeExtension_;
        bitField0_ |= 0x00000100;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                firstAddressLine_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                firm_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                secondAddressLine_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                urbanization_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                cityStateZipAddressLine_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                city_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                state_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 66:
              {
                zipCode_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000080;
                break;
              } // case 66
            case 74:
              {
                zipCodeExtension_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000100;
                break;
              } // case 74
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object firstAddressLine_ = "";
    /**
     *
     *
     * <pre>
     * First address line.
     * </pre>
     *
     * <code>string first_address_line = 1;</code>
     *
     * @return The firstAddressLine.
     */
    public java.lang.String getFirstAddressLine() {
      java.lang.Object ref = firstAddressLine_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        firstAddressLine_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * First address line.
     * </pre>
     *
     * <code>string first_address_line = 1;</code>
     *
     * @return The bytes for firstAddressLine.
     */
    public com.google.protobuf.ByteString getFirstAddressLineBytes() {
      java.lang.Object ref = firstAddressLine_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        firstAddressLine_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * First address line.
     * </pre>
     *
     * <code>string first_address_line = 1;</code>
     *
     * @param value The firstAddressLine to set.
     * @return This builder for chaining.
     */
    public Builder setFirstAddressLine(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      firstAddressLine_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * First address line.
     * </pre>
     *
     * <code>string first_address_line = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearFirstAddressLine() {
      firstAddressLine_ = getDefaultInstance().getFirstAddressLine();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * First address line.
     * </pre>
     *
     * <code>string first_address_line = 1;</code>
     *
     * @param value The bytes for firstAddressLine to set.
     * @return This builder for chaining.
     */
    public Builder setFirstAddressLineBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      firstAddressLine_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object firm_ = "";
    /**
     *
     *
     * <pre>
     * Firm name.
     * </pre>
     *
     * <code>string firm = 2;</code>
     *
     * @return The firm.
     */
    public java.lang.String getFirm() {
      java.lang.Object ref = firm_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        firm_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Firm name.
     * </pre>
     *
     * <code>string firm = 2;</code>
     *
     * @return The bytes for firm.
     */
    public com.google.protobuf.ByteString getFirmBytes() {
      java.lang.Object ref = firm_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        firm_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Firm name.
     * </pre>
     *
     * <code>string firm = 2;</code>
     *
     * @param value The firm to set.
     * @return This builder for chaining.
     */
    public Builder setFirm(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      firm_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Firm name.
     * </pre>
     *
     * <code>string firm = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearFirm() {
      firm_ = getDefaultInstance().getFirm();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Firm name.
     * </pre>
     *
     * <code>string firm = 2;</code>
     *
     * @param value The bytes for firm to set.
     * @return This builder for chaining.
     */
    public Builder setFirmBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      firm_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object secondAddressLine_ = "";
    /**
     *
     *
     * <pre>
     * Second address line.
     * </pre>
     *
     * <code>string second_address_line = 3;</code>
     *
     * @return The secondAddressLine.
     */
    public java.lang.String getSecondAddressLine() {
      java.lang.Object ref = secondAddressLine_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        secondAddressLine_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Second address line.
     * </pre>
     *
     * <code>string second_address_line = 3;</code>
     *
     * @return The bytes for secondAddressLine.
     */
    public com.google.protobuf.ByteString getSecondAddressLineBytes() {
      java.lang.Object ref = secondAddressLine_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        secondAddressLine_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Second address line.
     * </pre>
     *
     * <code>string second_address_line = 3;</code>
     *
     * @param value The secondAddressLine to set.
     * @return This builder for chaining.
     */
    public Builder setSecondAddressLine(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      secondAddressLine_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Second address line.
     * </pre>
     *
     * <code>string second_address_line = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSecondAddressLine() {
      secondAddressLine_ = getDefaultInstance().getSecondAddressLine();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Second address line.
     * </pre>
     *
     * <code>string second_address_line = 3;</code>
     *
     * @param value The bytes for secondAddressLine to set.
     * @return This builder for chaining.
     */
    public Builder setSecondAddressLineBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      secondAddressLine_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object urbanization_ = "";
    /**
     *
     *
     * <pre>
     * Puerto Rican urbanization name.
     * </pre>
     *
     * <code>string urbanization = 4;</code>
     *
     * @return The urbanization.
     */
    public java.lang.String getUrbanization() {
      java.lang.Object ref = urbanization_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        urbanization_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Puerto Rican urbanization name.
     * </pre>
     *
     * <code>string urbanization = 4;</code>
     *
     * @return The bytes for urbanization.
     */
    public com.google.protobuf.ByteString getUrbanizationBytes() {
      java.lang.Object ref = urbanization_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        urbanization_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Puerto Rican urbanization name.
     * </pre>
     *
     * <code>string urbanization = 4;</code>
     *
     * @param value The urbanization to set.
     * @return This builder for chaining.
     */
    public Builder setUrbanization(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      urbanization_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Puerto Rican urbanization name.
     * </pre>
     *
     * <code>string urbanization = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUrbanization() {
      urbanization_ = getDefaultInstance().getUrbanization();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Puerto Rican urbanization name.
     * </pre>
     *
     * <code>string urbanization = 4;</code>
     *
     * @param value The bytes for urbanization to set.
     * @return This builder for chaining.
     */
    public Builder setUrbanizationBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      urbanization_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object cityStateZipAddressLine_ = "";
    /**
     *
     *
     * <pre>
     * City + state + postal code.
     * </pre>
     *
     * <code>string city_state_zip_address_line = 5;</code>
     *
     * @return The cityStateZipAddressLine.
     */
    public java.lang.String getCityStateZipAddressLine() {
      java.lang.Object ref = cityStateZipAddressLine_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cityStateZipAddressLine_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * City + state + postal code.
     * </pre>
     *
     * <code>string city_state_zip_address_line = 5;</code>
     *
     * @return The bytes for cityStateZipAddressLine.
     */
    public com.google.protobuf.ByteString getCityStateZipAddressLineBytes() {
      java.lang.Object ref = cityStateZipAddressLine_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        cityStateZipAddressLine_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * City + state + postal code.
     * </pre>
     *
     * <code>string city_state_zip_address_line = 5;</code>
     *
     * @param value The cityStateZipAddressLine to set.
     * @return This builder for chaining.
     */
    public Builder setCityStateZipAddressLine(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      cityStateZipAddressLine_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * City + state + postal code.
     * </pre>
     *
     * <code>string city_state_zip_address_line = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCityStateZipAddressLine() {
      cityStateZipAddressLine_ = getDefaultInstance().getCityStateZipAddressLine();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * City + state + postal code.
     * </pre>
     *
     * <code>string city_state_zip_address_line = 5;</code>
     *
     * @param value The bytes for cityStateZipAddressLine to set.
     * @return This builder for chaining.
     */
    public Builder setCityStateZipAddressLineBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      cityStateZipAddressLine_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private java.lang.Object city_ = "";
    /**
     *
     *
     * <pre>
     * City name.
     * </pre>
     *
     * <code>string city = 6;</code>
     *
     * @return The city.
     */
    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>
     * City name.
     * </pre>
     *
     * <code>string city = 6;</code>
     *
     * @return The bytes for city.
     */
    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>
     * City name.
     * </pre>
     *
     * <code>string city = 6;</code>
     *
     * @param value The city to set.
     * @return This builder for chaining.
     */
    public Builder setCity(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      city_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * City name.
     * </pre>
     *
     * <code>string city = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCity() {
      city_ = getDefaultInstance().getCity();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * City name.
     * </pre>
     *
     * <code>string city = 6;</code>
     *
     * @param value The bytes for city to set.
     * @return This builder for chaining.
     */
    public Builder setCityBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      city_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private java.lang.Object state_ = "";
    /**
     *
     *
     * <pre>
     * 2 letter state code.
     * </pre>
     *
     * <code>string state = 7;</code>
     *
     * @return The state.
     */
    public java.lang.String getState() {
      java.lang.Object ref = state_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        state_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 2 letter state code.
     * </pre>
     *
     * <code>string state = 7;</code>
     *
     * @return The bytes for state.
     */
    public com.google.protobuf.ByteString getStateBytes() {
      java.lang.Object ref = state_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        state_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 2 letter state code.
     * </pre>
     *
     * <code>string state = 7;</code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      state_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 2 letter state code.
     * </pre>
     *
     * <code>string state = 7;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      state_ = getDefaultInstance().getState();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 2 letter state code.
     * </pre>
     *
     * <code>string state = 7;</code>
     *
     * @param value The bytes for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      state_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    private java.lang.Object zipCode_ = "";
    /**
     *
     *
     * <pre>
     * Postal code e.g. 10009.
     * </pre>
     *
     * <code>string zip_code = 8;</code>
     *
     * @return The zipCode.
     */
    public java.lang.String getZipCode() {
      java.lang.Object ref = zipCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        zipCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Postal code e.g. 10009.
     * </pre>
     *
     * <code>string zip_code = 8;</code>
     *
     * @return The bytes for zipCode.
     */
    public com.google.protobuf.ByteString getZipCodeBytes() {
      java.lang.Object ref = zipCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        zipCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Postal code e.g. 10009.
     * </pre>
     *
     * <code>string zip_code = 8;</code>
     *
     * @param value The zipCode to set.
     * @return This builder for chaining.
     */
    public Builder setZipCode(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      zipCode_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Postal code e.g. 10009.
     * </pre>
     *
     * <code>string zip_code = 8;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearZipCode() {
      zipCode_ = getDefaultInstance().getZipCode();
      bitField0_ = (bitField0_ & ~0x00000080);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Postal code e.g. 10009.
     * </pre>
     *
     * <code>string zip_code = 8;</code>
     *
     * @param value The bytes for zipCode to set.
     * @return This builder for chaining.
     */
    public Builder setZipCodeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      zipCode_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    private java.lang.Object zipCodeExtension_ = "";
    /**
     *
     *
     * <pre>
     * 4-digit postal code extension e.g. 5023.
     * </pre>
     *
     * <code>string zip_code_extension = 9;</code>
     *
     * @return The zipCodeExtension.
     */
    public java.lang.String getZipCodeExtension() {
      java.lang.Object ref = zipCodeExtension_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        zipCodeExtension_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 4-digit postal code extension e.g. 5023.
     * </pre>
     *
     * <code>string zip_code_extension = 9;</code>
     *
     * @return The bytes for zipCodeExtension.
     */
    public com.google.protobuf.ByteString getZipCodeExtensionBytes() {
      java.lang.Object ref = zipCodeExtension_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        zipCodeExtension_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * 4-digit postal code extension e.g. 5023.
     * </pre>
     *
     * <code>string zip_code_extension = 9;</code>
     *
     * @param value The zipCodeExtension to set.
     * @return This builder for chaining.
     */
    public Builder setZipCodeExtension(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      zipCodeExtension_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 4-digit postal code extension e.g. 5023.
     * </pre>
     *
     * <code>string zip_code_extension = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearZipCodeExtension() {
      zipCodeExtension_ = getDefaultInstance().getZipCodeExtension();
      bitField0_ = (bitField0_ & ~0x00000100);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 4-digit postal code extension e.g. 5023.
     * </pre>
     *
     * <code>string zip_code_extension = 9;</code>
     *
     * @param value The bytes for zipCodeExtension to set.
     * @return This builder for chaining.
     */
    public Builder setZipCodeExtensionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      zipCodeExtension_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.maps.addressvalidation.v1.UspsAddress)
  }

  // @@protoc_insertion_point(class_scope:google.maps.addressvalidation.v1.UspsAddress)
  private static final com.google.maps.addressvalidation.v1.UspsAddress DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.maps.addressvalidation.v1.UspsAddress();
  }

  public static com.google.maps.addressvalidation.v1.UspsAddress getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<UspsAddress> PARSER =
      new com.google.protobuf.AbstractParser<UspsAddress>() {
        @java.lang.Override
        public UspsAddress parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

  @java.lang.Override
  public com.google.maps.addressvalidation.v1.UspsAddress getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
