com.google.api.services.content.model.TransitTable 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;
/**
* Model definition for TransitTable.
*
* 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 TransitTable extends com.google.api.client.json.GenericJson {
/**
* 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.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List postalCodeGroupNames;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List rows;
/**
* A list of transit time labels. The last value can be `"all other labels"`. Example: `["food",
* "electronics", "all other labels"]`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List transitTimeLabels;
/**
* 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.
* @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.
* @param postalCodeGroupNames postalCodeGroupNames or {@code null} for none
*/
public TransitTable setPostalCodeGroupNames(java.util.List postalCodeGroupNames) {
this.postalCodeGroupNames = postalCodeGroupNames;
return this;
}
/**
* @return value or {@code null} for none
*/
public java.util.List getRows() {
return rows;
}
/**
* @param rows rows or {@code null} for none
*/
public TransitTable setRows(java.util.List rows) {
this.rows = rows;
return this;
}
/**
* A list of transit time labels. The last value can be `"all other labels"`. Example: `["food",
* "electronics", "all other labels"]`.
* @return value or {@code null} for none
*/
public java.util.List getTransitTimeLabels() {
return transitTimeLabels;
}
/**
* A list of transit time labels. The last value can be `"all other labels"`. Example: `["food",
* "electronics", "all other labels"]`.
* @param transitTimeLabels transitTimeLabels or {@code null} for none
*/
public TransitTable setTransitTimeLabels(java.util.List transitTimeLabels) {
this.transitTimeLabels = transitTimeLabels;
return this;
}
@Override
public TransitTable set(String fieldName, Object value) {
return (TransitTable) super.set(fieldName, value);
}
@Override
public TransitTable clone() {
return (TransitTable) super.clone();
}
}