All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.content.model.Address Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version
/*
 * 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.
 *
 * 

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: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @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 (for * example, neighborhoods or suburbs). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String city; /** * Required. [CLDR country code](https://github.com/unicode- * org/cldr/blob/latest/common/main/en.xml) (for example, "US"). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String country; /** * Required. Postal code or ZIP (for example, "94043"). * 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 (for * example, 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 (for * example, 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](https://github.com/unicode- * org/cldr/blob/latest/common/main/en.xml) (for example, "US"). * @return value or {@code null} for none */ public java.lang.String getCountry() { return country; } /** * Required. [CLDR country code](https://github.com/unicode- * org/cldr/blob/latest/common/main/en.xml) (for example, "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 (for example, "94043"). * @return value or {@code null} for none */ public java.lang.String getPostalCode() { return postalCode; } /** * Required. Postal code or ZIP (for example, "94043"). * @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(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy