com.google.api.services.content.model.Headers Maven / Gradle / Ivy
/*
* 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;
/**
* 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.
*/
@SuppressWarnings("javadoc")
public final class Headers extends com.google.api.client.json.GenericJson {
/**
* A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List locations;
/**
* 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", and ">
* 50 items". Must be non-empty. Can only be set if all other fields are not set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List numberOfItems;
/**
* 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.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List postalCodeGroupNames;
/**
* 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", and "> $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.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List prices;
/**
* 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", and "> 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.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List weights;
/**
* A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
* @return value or {@code null} for none
*/
public java.util.List getLocations() {
return locations;
}
/**
* A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
* @param locations locations or {@code null} for none
*/
public Headers setLocations(java.util.List locations) {
this.locations = locations;
return this;
}
/**
* 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", and ">
* 50 items". Must be non-empty. Can only be set if all other fields are not set.
* @return value or {@code null} for none
*/
public java.util.List getNumberOfItems() {
return 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", and ">
* 50 items". Must be non-empty. Can only be set if all other fields are not set.
* @param numberOfItems numberOfItems or {@code null} for none
*/
public Headers setNumberOfItems(java.util.List numberOfItems) {
this.numberOfItems = numberOfItems;
return this;
}
/**
* 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.
* @return value or {@code null} for none
*/
public java.util.List getPostalCodeGroupNames() {
return 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.
* @param postalCodeGroupNames postalCodeGroupNames or {@code null} for none
*/
public Headers setPostalCodeGroupNames(java.util.List postalCodeGroupNames) {
this.postalCodeGroupNames = postalCodeGroupNames;
return this;
}
/**
* 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", and "> $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.
* @return value or {@code null} for none
*/
public java.util.List getPrices() {
return 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", and "> $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.
* @param prices prices or {@code null} for none
*/
public Headers setPrices(java.util.List prices) {
this.prices = prices;
return this;
}
/**
* 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", and "> 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.
* @return value or {@code null} for none
*/
public java.util.List getWeights() {
return 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", and "> 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.
* @param weights weights or {@code null} for none
*/
public Headers setWeights(java.util.List weights) {
this.weights = weights;
return this;
}
@Override
public Headers set(String fieldName, Object value) {
return (Headers) super.set(fieldName, value);
}
@Override
public Headers clone() {
return (Headers) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy