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

target.apidocs.com.google.api.services.content.model.DeliveryArea.html Maven / Gradle / Ivy







DeliveryArea (Content API for Shopping v2.1-rev20240609-2.0.0)












com.google.api.services.content.model

Class DeliveryArea

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class DeliveryArea
    extends com.google.api.client.json.GenericJson
    A delivery area for the product. Only one of `countryCode` or `postalCodeRange` must be set.

    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.
    • Constructor Detail

      • DeliveryArea

        public DeliveryArea()
    • Method Detail

      • getCountryCode

        public String getCountryCode()
        Required. The country that the product can be delivered to. Submit a [unicode CLDR region](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) such as `US` or `CH`.
        Returns:
        value or null for none
      • setCountryCode

        public DeliveryArea setCountryCode(String countryCode)
        Required. The country that the product can be delivered to. Submit a [unicode CLDR region](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) such as `US` or `CH`.
        Parameters:
        countryCode - countryCode or null for none
      • getPostalCodeRange

        public DeliveryAreaPostalCodeRange getPostalCodeRange()
        A postal code, postal code range or postal code prefix that defines this area. Limited to US and AUS.
        Returns:
        value or null for none
      • setPostalCodeRange

        public DeliveryArea setPostalCodeRange(DeliveryAreaPostalCodeRange postalCodeRange)
        A postal code, postal code range or postal code prefix that defines this area. Limited to US and AUS.
        Parameters:
        postalCodeRange - postalCodeRange or null for none
      • getRegionCode

        public String getRegionCode()
        A state, territory, or prefecture. This is supported for the United States, Australia, and Japan. Provide a subdivision code from the ISO 3166-2 code tables ([US](https://en.wikipedia.org/wiki/ISO_3166-2:US), [AU](https://en.wikipedia.org/wiki/ISO_3166-2:AU), or [JP](https://en.wikipedia.org/wiki/ISO_3166-2:JP)) without country prefix (for example, `"NY"`, `"NSW"`, `"03"`).
        Returns:
        value or null for none
      • setRegionCode

        public DeliveryArea setRegionCode(String regionCode)
        A state, territory, or prefecture. This is supported for the United States, Australia, and Japan. Provide a subdivision code from the ISO 3166-2 code tables ([US](https://en.wikipedia.org/wiki/ISO_3166-2:US), [AU](https://en.wikipedia.org/wiki/ISO_3166-2:AU), or [JP](https://en.wikipedia.org/wiki/ISO_3166-2:JP)) without country prefix (for example, `"NY"`, `"NSW"`, `"03"`).
        Parameters:
        regionCode - regionCode or null for none
      • set

        public DeliveryArea set(String fieldName,
                                Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public DeliveryArea clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy