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

com.google.api.services.retail.v2.model.GoogleCloudRetailV2Audience Maven / Gradle / Ivy

The 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.retail.v2.model;

/**
 * An intended audience of the Product for whom it's sold.
 *
 * 

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 Vertex AI Search for Retail API. 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 GoogleCloudRetailV2Audience extends com.google.api.client.json.GenericJson { /** * The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up * to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years * old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a * UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT * error is returned. Google Merchant Center property * [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property * [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and * [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List ageGroups; /** * The genders of the audience. Strongly encouraged to use the standard values: "male", "female", * "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length * limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant * Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org * property [Product.audience.suggestedGender](https://schema.org/suggestedGender). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List genders; /** * The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up * to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years * old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a * UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT * error is returned. Google Merchant Center property * [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property * [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and * [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge). * @return value or {@code null} for none */ public java.util.List getAgeGroups() { return ageGroups; } /** * The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up * to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years * old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a * UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT * error is returned. Google Merchant Center property * [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property * [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and * [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge). * @param ageGroups ageGroups or {@code null} for none */ public GoogleCloudRetailV2Audience setAgeGroups(java.util.List ageGroups) { this.ageGroups = ageGroups; return this; } /** * The genders of the audience. Strongly encouraged to use the standard values: "male", "female", * "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length * limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant * Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org * property [Product.audience.suggestedGender](https://schema.org/suggestedGender). * @return value or {@code null} for none */ public java.util.List getGenders() { return genders; } /** * The genders of the audience. Strongly encouraged to use the standard values: "male", "female", * "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length * limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant * Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org * property [Product.audience.suggestedGender](https://schema.org/suggestedGender). * @param genders genders or {@code null} for none */ public GoogleCloudRetailV2Audience setGenders(java.util.List genders) { this.genders = genders; return this; } @Override public GoogleCloudRetailV2Audience set(String fieldName, Object value) { return (GoogleCloudRetailV2Audience) super.set(fieldName, value); } @Override public GoogleCloudRetailV2Audience clone() { return (GoogleCloudRetailV2Audience) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy