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

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

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version






Headers (Content API for Shopping v2-rev20190308-1.26.0)












com.google.api.services.content.model

Class Headers

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


    public final class Headers
    extends com.google.api.client.json.GenericJson
    A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or location 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

      • Headers

        public Headers()
    • Method Detail

      • getLocations

        public List<LocationIdSet> getLocations()
        A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setLocations

        public Headers setLocations(List<LocationIdSet> locations)
        A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
        Parameters:
        locations - locations or null for none
      • getNumberOfItems

        public List<String> getNumberOfItems()
        A list of inclusive number of items upper bounds. The last value can be "infinity". For example ["10", "50", "infinity"] represents the headers "<= 10 items", " 50 items". Must be non-empty. Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setNumberOfItems

        public Headers setNumberOfItems(List<String> numberOfItems)
        A list of inclusive number of items upper bounds. The last value can be "infinity". For example ["10", "50", "infinity"] represents the headers "<= 10 items", " 50 items". Must be non-empty. Can only be set if all other fields are not set.
        Parameters:
        numberOfItems - numberOfItems or null for none
      • getPostalCodeGroupNames

        public List<String> getPostalCodeGroupNames()
        A list of postal group names. The last value can be "all other locations". Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setPostalCodeGroupNames

        public Headers setPostalCodeGroupNames(List<String> postalCodeGroupNames)
        A list of postal group names. The last value can be "all other locations". Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
        Parameters:
        postalCodeGroupNames - postalCodeGroupNames or null for none
      • getPrices

        public List<Price> getPrices()
        A list of inclusive order price upper bounds. The last price's value can be "infinity". For example [{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}] represents the headers "<= $10", " $500". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setPrices

        public Headers setPrices(List<Price> prices)
        A list of inclusive order price upper bounds. The last price's value can be "infinity". For example [{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}] represents the headers "<= $10", " $500". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
        Parameters:
        prices - prices or null for none
      • getWeights

        public List<Weight> getWeights()
        A list of inclusive order weight upper bounds. The last weight's value can be "infinity". For example [{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the headers "<= 10kg", " 50kg". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setWeights

        public Headers setWeights(List<Weight> weights)
        A list of inclusive order weight upper bounds. The last weight's value can be "infinity". For example [{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the headers "<= 10kg", " 50kg". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
        Parameters:
        weights - weights or null for none
      • set

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

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

Copyright © 2011–2019 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy