Class Audience

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.Audience
All Implemented Interfaces:
AudienceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Audience extends com.google.protobuf.GeneratedMessage implements AudienceOrBuilder
 An intended audience of the [Product][google.cloud.retail.v2alpha.Product]
 for whom it's sold.
 
Protobuf type google.cloud.retail.v2alpha.Audience
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    An intended audience of the [Product][google.cloud.retail.v2alpha.Product] for whom it's sold.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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.
    com.google.protobuf.ProtocolStringList
    The age groups of the audience.
    static Audience
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    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.
    com.google.protobuf.ProtocolStringList
    The genders of the audience.
    com.google.protobuf.Parser<Audience>
     
    int
     
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Audience prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Audience
     
    static Audience
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Audience
    parseFrom(byte[] data)
     
    static Audience
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Audience
    parseFrom(com.google.protobuf.ByteString data)
     
    static Audience
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Audience
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Audience
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Audience
     
    static Audience
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Audience
     
    static Audience
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Audience>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getGendersList

      public com.google.protobuf.ProtocolStringList 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;
      Specified by:
      getGendersList in interface AudienceOrBuilder
      Returns:
      A list containing the genders.
    • getGendersCount

      public 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;
      Specified by:
      getGendersCount in interface AudienceOrBuilder
      Returns:
      The count of genders.
    • getGenders

      public 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;
      Specified by:
      getGenders in interface AudienceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The genders at the given index.
    • getGendersBytes

      public 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;
      Specified by:
      getGendersBytes in interface AudienceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the genders at the given index.
    • getAgeGroupsList

      public com.google.protobuf.ProtocolStringList 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;
      Specified by:
      getAgeGroupsList in interface AudienceOrBuilder
      Returns:
      A list containing the ageGroups.
    • getAgeGroupsCount

      public 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;
      Specified by:
      getAgeGroupsCount in interface AudienceOrBuilder
      Returns:
      The count of ageGroups.
    • getAgeGroups

      public 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;
      Specified by:
      getAgeGroups in interface AudienceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ageGroups at the given index.
    • getAgeGroupsBytes

      public 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;
      Specified by:
      getAgeGroupsBytes in interface AudienceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ageGroups at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Audience parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Audience parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Audience parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Audience parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Audience parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Audience parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Audience parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Audience parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Audience parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Audience parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Audience parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Audience parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Audience.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Audience.Builder newBuilder()
    • newBuilder

      public static Audience.Builder newBuilder(Audience prototype)
    • toBuilder

      public Audience.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Audience.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Audience getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Audience> parser()
    • getParserForType

      public com.google.protobuf.Parser<Audience> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Audience getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder