/*
 * 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
 *
 * http://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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.content.model;

/**
 * Model definition for Address.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class Address extends com.google.api.client.json.GenericJson {

  /**
   * Required. Top-level administrative subdivision of the country. For example, a state like
   * California ("CA") or a province like Quebec ("QC").
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String administrativeArea;

  /**
   * Required. City, town or commune. May also include dependent localities or sublocalities (e.g.
   * neighborhoods or suburbs).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String city;

  /**
   * Required. [CLDR country
   * code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)(e.g. "US").
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String country;

  /**
   * Required. Postal code or ZIP (e.g. "94043"). Required.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String postalCode;

  /**
   * Street-level part of the address.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String streetAddress;

  /**
   * Required. Top-level administrative subdivision of the country. For example, a state like
   * California ("CA") or a province like Quebec ("QC").
   * @return value or {@code null} for none
   */
  public java.lang.String getAdministrativeArea() {
    return administrativeArea;
  }

  /**
   * Required. Top-level administrative subdivision of the country. For example, a state like
   * California ("CA") or a province like Quebec ("QC").
   * @param administrativeArea administrativeArea or {@code null} for none
   */
  public Address setAdministrativeArea(java.lang.String administrativeArea) {
    this.administrativeArea = administrativeArea;
    return this;
  }

  /**
   * Required. City, town or commune. May also include dependent localities or sublocalities (e.g.
   * neighborhoods or suburbs).
   * @return value or {@code null} for none
   */
  public java.lang.String getCity() {
    return city;
  }

  /**
   * Required. City, town or commune. May also include dependent localities or sublocalities (e.g.
   * neighborhoods or suburbs).
   * @param city city or {@code null} for none
   */
  public Address setCity(java.lang.String city) {
    this.city = city;
    return this;
  }

  /**
   * Required. [CLDR country
   * code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)(e.g. "US").
   * @return value or {@code null} for none
   */
  public java.lang.String getCountry() {
    return country;
  }

  /**
   * Required. [CLDR country
   * code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)(e.g. "US").
   * @param country country or {@code null} for none
   */
  public Address setCountry(java.lang.String country) {
    this.country = country;
    return this;
  }

  /**
   * Required. Postal code or ZIP (e.g. "94043"). Required.
   * @return value or {@code null} for none
   */
  public java.lang.String getPostalCode() {
    return postalCode;
  }

  /**
   * Required. Postal code or ZIP (e.g. "94043"). Required.
   * @param postalCode postalCode or {@code null} for none
   */
  public Address setPostalCode(java.lang.String postalCode) {
    this.postalCode = postalCode;
    return this;
  }

  /**
   * Street-level part of the address.
   * @return value or {@code null} for none
   */
  public java.lang.String getStreetAddress() {
    return streetAddress;
  }

  /**
   * Street-level part of the address.
   * @param streetAddress streetAddress or {@code null} for none
   */
  public Address setStreetAddress(java.lang.String streetAddress) {
    this.streetAddress = streetAddress;
    return this;
  }

  @Override
  public Address set(String fieldName, Object value) {
    return (Address) super.set(fieldName, value);
  }

  @Override
  public Address clone() {
    return (Address) super.clone();
  }

}
