com.google.api.services.content.model.AccountShippingLocationGroup Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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://code.google.com/p/google-apis-client-generator/
* (build: 2015-01-14 17:53:03 UTC)
* on 2015-03-19 at 20:50:58 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* A user-defined locations group in a given country. All the locations of the group must be of the
* same type.
*
* 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:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AccountShippingLocationGroup extends com.google.api.client.json.GenericJson {
/**
* The country in which this location group is, represented as ISO 3166-1 Alpha-2 code.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String country;
/**
* A location ID (also called criteria ID) representing administrative areas, smaller country
* subdivisions (counties), or cities.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.util.List locationIds;
/**
* The name of the location group.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* A postal code range representing a city or a set of cities.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List postalCodeRanges;
static {
// hack to force ProGuard to consider AccountShippingPostalCodeRange used, since otherwise it would be stripped out
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
com.google.api.client.util.Data.nullOf(AccountShippingPostalCodeRange.class);
}
/**
* A postal code representing a city or a set of cities. - A single postal code (e.g., 12345) - A
* postal code prefix followed by a star (e.g., 1234*)
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List postalCodes;
/**
* The country in which this location group is, represented as ISO 3166-1 Alpha-2 code.
* @return value or {@code null} for none
*/
public java.lang.String getCountry() {
return country;
}
/**
* The country in which this location group is, represented as ISO 3166-1 Alpha-2 code.
* @param country country or {@code null} for none
*/
public AccountShippingLocationGroup setCountry(java.lang.String country) {
this.country = country;
return this;
}
/**
* A location ID (also called criteria ID) representing administrative areas, smaller country
* subdivisions (counties), or cities.
* @return value or {@code null} for none
*/
public java.util.List getLocationIds() {
return locationIds;
}
/**
* A location ID (also called criteria ID) representing administrative areas, smaller country
* subdivisions (counties), or cities.
* @param locationIds locationIds or {@code null} for none
*/
public AccountShippingLocationGroup setLocationIds(java.util.List locationIds) {
this.locationIds = locationIds;
return this;
}
/**
* The name of the location group.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of the location group.
* @param name name or {@code null} for none
*/
public AccountShippingLocationGroup setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* A postal code range representing a city or a set of cities.
* @return value or {@code null} for none
*/
public java.util.List getPostalCodeRanges() {
return postalCodeRanges;
}
/**
* A postal code range representing a city or a set of cities.
* @param postalCodeRanges postalCodeRanges or {@code null} for none
*/
public AccountShippingLocationGroup setPostalCodeRanges(java.util.List postalCodeRanges) {
this.postalCodeRanges = postalCodeRanges;
return this;
}
/**
* A postal code representing a city or a set of cities. - A single postal code (e.g., 12345) - A
* postal code prefix followed by a star (e.g., 1234*)
* @return value or {@code null} for none
*/
public java.util.List getPostalCodes() {
return postalCodes;
}
/**
* A postal code representing a city or a set of cities. - A single postal code (e.g., 12345) - A
* postal code prefix followed by a star (e.g., 1234*)
* @param postalCodes postalCodes or {@code null} for none
*/
public AccountShippingLocationGroup setPostalCodes(java.util.List postalCodes) {
this.postalCodes = postalCodes;
return this;
}
@Override
public AccountShippingLocationGroup set(String fieldName, Object value) {
return (AccountShippingLocationGroup) super.set(fieldName, value);
}
@Override
public AccountShippingLocationGroup clone() {
return (AccountShippingLocationGroup) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy