Interface AudienceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Audience, Audience.Builder

@Generated public interface AudienceOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    getAgeGroups(int index)
    The age groups of the audience.
    com.google.protobuf.ByteString
    getAgeGroupsBytes(int index)
    The age groups of the audience.
    int
    The age groups of the audience.
    The age groups of the audience.
    getGenders(int index)
    The genders of the audience.
    com.google.protobuf.ByteString
    getGendersBytes(int index)
    The genders of the audience.
    int
    The genders of the audience.
    The genders of the audience.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getGendersList

      List<String> getGendersList()
       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).
       
      repeated string genders = 1;
      Returns:
      A list containing the genders.
    • getGendersCount

      int getGendersCount()
       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).
       
      repeated string genders = 1;
      Returns:
      The count of genders.
    • getGenders

      String getGenders(int index)
       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).
       
      repeated string genders = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The genders at the given index.
    • getGendersBytes

      com.google.protobuf.ByteString getGendersBytes(int index)
       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).
       
      repeated string genders = 1;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the genders at the given index.
    • getAgeGroupsList

      List<String> getAgeGroupsList()
       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).
       
      repeated string age_groups = 2;
      Returns:
      A list containing the ageGroups.
    • getAgeGroupsCount

      int getAgeGroupsCount()
       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).
       
      repeated string age_groups = 2;
      Returns:
      The count of ageGroups.
    • getAgeGroups

      String getAgeGroups(int index)
       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).
       
      repeated string age_groups = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The ageGroups at the given index.
    • getAgeGroupsBytes

      com.google.protobuf.ByteString getAgeGroupsBytes(int index)
       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).
       
      repeated string age_groups = 2;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ageGroups at the given index.