Class Audience

  • All Implemented Interfaces:
    AudienceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

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

      Nested Classes 
      Modifier and Type Class Description
      static class  Audience.Builder
      An intended audience of the [Product][google.cloud.retail.v2.Product] for whom it's sold.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

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

      Fields 
      Modifier and Type Field Description
      static int AGE_GROUPS_FIELD_NUMBER  
      static int GENDERS_FIELD_NUMBER  
      • Fields inherited from class com.google.protobuf.GeneratedMessageV3

        alwaysUseFieldBuilders, unknownFields
      • Fields inherited from class com.google.protobuf.AbstractMessage

        memoizedSize
      • Fields inherited from class com.google.protobuf.AbstractMessageLite

        memoizedHashCode
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      String getAgeGroups​(int index)
      The age groups of the audience.
      com.google.protobuf.ByteString getAgeGroupsBytes​(int index)
      The age groups of the audience.
      int getAgeGroupsCount()
      The age groups of the audience.
      com.google.protobuf.ProtocolStringList getAgeGroupsList()
      The age groups of the audience.
      static Audience getDefaultInstance()  
      Audience getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      String getGenders​(int index)
      The genders of the audience.
      com.google.protobuf.ByteString getGendersBytes​(int index)
      The genders of the audience.
      int getGendersCount()
      The genders of the audience.
      com.google.protobuf.ProtocolStringList getGendersList()
      The genders of the audience.
      com.google.protobuf.Parser<Audience> getParserForType()  
      int getSerializedSize()  
      int hashCode()  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static Audience.Builder newBuilder()  
      static Audience.Builder newBuilder​(Audience prototype)  
      Audience.Builder newBuilderForType()  
      protected Audience.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static Audience parseDelimitedFrom​(InputStream input)  
      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 parseFrom​(InputStream input)  
      static Audience parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Audience parseFrom​(ByteBuffer data)  
      static Audience parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Audience> parser()  
      Audience.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • 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
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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