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

com.google.api.services.content.model.PosInventoryRequest Maven / Gradle / Ivy

There is a newer version: v2.1-rev20240825-2.0.0
Show newest version
/*
 * 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 PosInventoryRequest.
 *
 * 

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 PosInventoryRequest extends com.google.api.client.json.GenericJson { /** * Required. The two-letter ISO 639-1 language code for the item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String contentLanguage; /** * Global Trade Item Number. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String gtin; /** * Required. A unique identifier for the item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String itemId; /** * Optional. Supported pickup method for this offer. Unless the value is "not supported", this * field must be submitted together with `pickupSla`. For accepted attribute values, see the * [local product inventory feed * specification](https://support.google.com/merchants/answer/3061342). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String pickupMethod; /** * Optional. Expected date that an order will be ready for pickup relative to the order date. Must * be submitted together with `pickupMethod`. For accepted attribute values, see the [local * product inventory feed specification](https://support.google.com/merchants/answer/3061342). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String pickupSla; /** * Required. The current price of the item. * The value may be {@code null}. */ @com.google.api.client.util.Key private Price price; /** * Required. The available quantity of the item. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long quantity; /** * Required. The identifier of the merchant's store. Either a `storeCode` inserted through the API * or the code of the store in a Business Profile. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String storeCode; /** * Required. The CLDR territory code for the item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String targetCountry; /** * Required. The inventory timestamp, in ISO 8601 format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String timestamp; /** * Required. The two-letter ISO 639-1 language code for the item. * @return value or {@code null} for none */ public java.lang.String getContentLanguage() { return contentLanguage; } /** * Required. The two-letter ISO 639-1 language code for the item. * @param contentLanguage contentLanguage or {@code null} for none */ public PosInventoryRequest setContentLanguage(java.lang.String contentLanguage) { this.contentLanguage = contentLanguage; return this; } /** * Global Trade Item Number. * @return value or {@code null} for none */ public java.lang.String getGtin() { return gtin; } /** * Global Trade Item Number. * @param gtin gtin or {@code null} for none */ public PosInventoryRequest setGtin(java.lang.String gtin) { this.gtin = gtin; return this; } /** * Required. A unique identifier for the item. * @return value or {@code null} for none */ public java.lang.String getItemId() { return itemId; } /** * Required. A unique identifier for the item. * @param itemId itemId or {@code null} for none */ public PosInventoryRequest setItemId(java.lang.String itemId) { this.itemId = itemId; return this; } /** * Optional. Supported pickup method for this offer. Unless the value is "not supported", this * field must be submitted together with `pickupSla`. For accepted attribute values, see the * [local product inventory feed * specification](https://support.google.com/merchants/answer/3061342). * @return value or {@code null} for none */ public java.lang.String getPickupMethod() { return pickupMethod; } /** * Optional. Supported pickup method for this offer. Unless the value is "not supported", this * field must be submitted together with `pickupSla`. For accepted attribute values, see the * [local product inventory feed * specification](https://support.google.com/merchants/answer/3061342). * @param pickupMethod pickupMethod or {@code null} for none */ public PosInventoryRequest setPickupMethod(java.lang.String pickupMethod) { this.pickupMethod = pickupMethod; return this; } /** * Optional. Expected date that an order will be ready for pickup relative to the order date. Must * be submitted together with `pickupMethod`. For accepted attribute values, see the [local * product inventory feed specification](https://support.google.com/merchants/answer/3061342). * @return value or {@code null} for none */ public java.lang.String getPickupSla() { return pickupSla; } /** * Optional. Expected date that an order will be ready for pickup relative to the order date. Must * be submitted together with `pickupMethod`. For accepted attribute values, see the [local * product inventory feed specification](https://support.google.com/merchants/answer/3061342). * @param pickupSla pickupSla or {@code null} for none */ public PosInventoryRequest setPickupSla(java.lang.String pickupSla) { this.pickupSla = pickupSla; return this; } /** * Required. The current price of the item. * @return value or {@code null} for none */ public Price getPrice() { return price; } /** * Required. The current price of the item. * @param price price or {@code null} for none */ public PosInventoryRequest setPrice(Price price) { this.price = price; return this; } /** * Required. The available quantity of the item. * @return value or {@code null} for none */ public java.lang.Long getQuantity() { return quantity; } /** * Required. The available quantity of the item. * @param quantity quantity or {@code null} for none */ public PosInventoryRequest setQuantity(java.lang.Long quantity) { this.quantity = quantity; return this; } /** * Required. The identifier of the merchant's store. Either a `storeCode` inserted through the API * or the code of the store in a Business Profile. * @return value or {@code null} for none */ public java.lang.String getStoreCode() { return storeCode; } /** * Required. The identifier of the merchant's store. Either a `storeCode` inserted through the API * or the code of the store in a Business Profile. * @param storeCode storeCode or {@code null} for none */ public PosInventoryRequest setStoreCode(java.lang.String storeCode) { this.storeCode = storeCode; return this; } /** * Required. The CLDR territory code for the item. * @return value or {@code null} for none */ public java.lang.String getTargetCountry() { return targetCountry; } /** * Required. The CLDR territory code for the item. * @param targetCountry targetCountry or {@code null} for none */ public PosInventoryRequest setTargetCountry(java.lang.String targetCountry) { this.targetCountry = targetCountry; return this; } /** * Required. The inventory timestamp, in ISO 8601 format. * @return value or {@code null} for none */ public java.lang.String getTimestamp() { return timestamp; } /** * Required. The inventory timestamp, in ISO 8601 format. * @param timestamp timestamp or {@code null} for none */ public PosInventoryRequest setTimestamp(java.lang.String timestamp) { this.timestamp = timestamp; return this; } @Override public PosInventoryRequest set(String fieldName, Object value) { return (PosInventoryRequest) super.set(fieldName, value); } @Override public PosInventoryRequest clone() { return (PosInventoryRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy