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

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

There is a newer version: v2.1-rev20241217-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 TestOrderLineItemProduct.
 *
 * 

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 TestOrderLineItemProduct extends com.google.api.client.json.GenericJson { /** * Required. Brand of the item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String brand; /** * Deprecated. * * Acceptable values are: - "`online`" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String channel; /** * Required. Condition or state of the item. * * Acceptable values are: - "`new`" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String condition; /** * Required. The two-letter ISO 639-1 language code for the item. * * Acceptable values are: - "`en`" - "`fr`" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String contentLanguage; /** * Fees for the item. Optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List fees; static { // hack to force ProGuard to consider OrderLineItemProductFee used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(OrderLineItemProductFee.class); } /** * Global Trade Item Number (GTIN) of the item. Optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String gtin; /** * Required. URL of an image of the item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String imageLink; /** * Shared identifier for all variants of the same product. Optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String itemGroupId; /** * Manufacturer Part Number (MPN) of the item. Optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mpn; /** * Required. An identifier of the item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String offerId; /** * Required. The price for the product. Tax is automatically calculated for orders where * marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center * are applied. * The value may be {@code null}. */ @com.google.api.client.util.Key private Price price; /** * Required. The CLDR territory code of the target country of the product. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String targetCountry; /** * Required. The title of the product. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String title; /** * Variant attributes for the item. Optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List variantAttributes; static { // hack to force ProGuard to consider OrderLineItemProductVariantAttribute used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(OrderLineItemProductVariantAttribute.class); } /** * Required. Brand of the item. * @return value or {@code null} for none */ public java.lang.String getBrand() { return brand; } /** * Required. Brand of the item. * @param brand brand or {@code null} for none */ public TestOrderLineItemProduct setBrand(java.lang.String brand) { this.brand = brand; return this; } /** * Deprecated. * * Acceptable values are: - "`online`" * @return value or {@code null} for none */ public java.lang.String getChannel() { return channel; } /** * Deprecated. * * Acceptable values are: - "`online`" * @param channel channel or {@code null} for none */ public TestOrderLineItemProduct setChannel(java.lang.String channel) { this.channel = channel; return this; } /** * Required. Condition or state of the item. * * Acceptable values are: - "`new`" * @return value or {@code null} for none */ public java.lang.String getCondition() { return condition; } /** * Required. Condition or state of the item. * * Acceptable values are: - "`new`" * @param condition condition or {@code null} for none */ public TestOrderLineItemProduct setCondition(java.lang.String condition) { this.condition = condition; return this; } /** * Required. The two-letter ISO 639-1 language code for the item. * * Acceptable values are: - "`en`" - "`fr`" * @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. * * Acceptable values are: - "`en`" - "`fr`" * @param contentLanguage contentLanguage or {@code null} for none */ public TestOrderLineItemProduct setContentLanguage(java.lang.String contentLanguage) { this.contentLanguage = contentLanguage; return this; } /** * Fees for the item. Optional. * @return value or {@code null} for none */ public java.util.List getFees() { return fees; } /** * Fees for the item. Optional. * @param fees fees or {@code null} for none */ public TestOrderLineItemProduct setFees(java.util.List fees) { this.fees = fees; return this; } /** * Global Trade Item Number (GTIN) of the item. Optional. * @return value or {@code null} for none */ public java.lang.String getGtin() { return gtin; } /** * Global Trade Item Number (GTIN) of the item. Optional. * @param gtin gtin or {@code null} for none */ public TestOrderLineItemProduct setGtin(java.lang.String gtin) { this.gtin = gtin; return this; } /** * Required. URL of an image of the item. * @return value or {@code null} for none */ public java.lang.String getImageLink() { return imageLink; } /** * Required. URL of an image of the item. * @param imageLink imageLink or {@code null} for none */ public TestOrderLineItemProduct setImageLink(java.lang.String imageLink) { this.imageLink = imageLink; return this; } /** * Shared identifier for all variants of the same product. Optional. * @return value or {@code null} for none */ public java.lang.String getItemGroupId() { return itemGroupId; } /** * Shared identifier for all variants of the same product. Optional. * @param itemGroupId itemGroupId or {@code null} for none */ public TestOrderLineItemProduct setItemGroupId(java.lang.String itemGroupId) { this.itemGroupId = itemGroupId; return this; } /** * Manufacturer Part Number (MPN) of the item. Optional. * @return value or {@code null} for none */ public java.lang.String getMpn() { return mpn; } /** * Manufacturer Part Number (MPN) of the item. Optional. * @param mpn mpn or {@code null} for none */ public TestOrderLineItemProduct setMpn(java.lang.String mpn) { this.mpn = mpn; return this; } /** * Required. An identifier of the item. * @return value or {@code null} for none */ public java.lang.String getOfferId() { return offerId; } /** * Required. An identifier of the item. * @param offerId offerId or {@code null} for none */ public TestOrderLineItemProduct setOfferId(java.lang.String offerId) { this.offerId = offerId; return this; } /** * Required. The price for the product. Tax is automatically calculated for orders where * marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center * are applied. * @return value or {@code null} for none */ public Price getPrice() { return price; } /** * Required. The price for the product. Tax is automatically calculated for orders where * marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center * are applied. * @param price price or {@code null} for none */ public TestOrderLineItemProduct setPrice(Price price) { this.price = price; return this; } /** * Required. The CLDR territory code of the target country of the product. * @return value or {@code null} for none */ public java.lang.String getTargetCountry() { return targetCountry; } /** * Required. The CLDR territory code of the target country of the product. * @param targetCountry targetCountry or {@code null} for none */ public TestOrderLineItemProduct setTargetCountry(java.lang.String targetCountry) { this.targetCountry = targetCountry; return this; } /** * Required. The title of the product. * @return value or {@code null} for none */ public java.lang.String getTitle() { return title; } /** * Required. The title of the product. * @param title title or {@code null} for none */ public TestOrderLineItemProduct setTitle(java.lang.String title) { this.title = title; return this; } /** * Variant attributes for the item. Optional. * @return value or {@code null} for none */ public java.util.List getVariantAttributes() { return variantAttributes; } /** * Variant attributes for the item. Optional. * @param variantAttributes variantAttributes or {@code null} for none */ public TestOrderLineItemProduct setVariantAttributes(java.util.List variantAttributes) { this.variantAttributes = variantAttributes; return this; } @Override public TestOrderLineItemProduct set(String fieldName, Object value) { return (TestOrderLineItemProduct) super.set(fieldName, value); } @Override public TestOrderLineItemProduct clone() { return (TestOrderLineItemProduct) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy