Class AudienceInsightsAttribute

  • All Implemented Interfaces:
    AudienceInsightsAttributeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class AudienceInsightsAttribute
    extends com.google.protobuf.GeneratedMessageV3
    implements AudienceInsightsAttributeOrBuilder
     An audience attribute that can be used to request insights about the
     audience.
     
    Protobuf type google.ads.googleads.v15.services.AudienceInsightsAttribute
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected java.lang.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
      • hasAgeRange

        public boolean hasAgeRange()
         An audience attribute defined by an age range.
         
        .google.ads.googleads.v15.common.AgeRangeInfo age_range = 1;
        Specified by:
        hasAgeRange in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the ageRange field is set.
      • hasGender

        public boolean hasGender()
         An audience attribute defined by a gender.
         
        .google.ads.googleads.v15.common.GenderInfo gender = 2;
        Specified by:
        hasGender in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the gender field is set.
      • hasLocation

        public boolean hasLocation()
         An audience attribute defined by a geographic location.
         
        .google.ads.googleads.v15.common.LocationInfo location = 3;
        Specified by:
        hasLocation in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the location field is set.
      • hasUserInterest

        public boolean hasUserInterest()
         An Affinity or In-Market audience.
         
        .google.ads.googleads.v15.common.UserInterestInfo user_interest = 4;
        Specified by:
        hasUserInterest in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the userInterest field is set.
      • hasEntity

        public boolean hasEntity()
         An audience attribute defined by interest in a topic represented by a
         Knowledge Graph entity.
         
        .google.ads.googleads.v15.services.AudienceInsightsEntity entity = 5;
        Specified by:
        hasEntity in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the entity field is set.
      • hasCategory

        public boolean hasCategory()
         An audience attribute defined by interest in a Product & Service
         category.
         
        .google.ads.googleads.v15.services.AudienceInsightsCategory category = 6;
        Specified by:
        hasCategory in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the category field is set.
      • hasDynamicLineup

        public boolean hasDynamicLineup()
         A YouTube Dynamic Lineup
         
        .google.ads.googleads.v15.services.AudienceInsightsDynamicLineup dynamic_lineup = 7;
        Specified by:
        hasDynamicLineup in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the dynamicLineup field is set.
      • hasParentalStatus

        public boolean hasParentalStatus()
         A Parental Status value (parent, or not a parent).
         
        .google.ads.googleads.v15.common.ParentalStatusInfo parental_status = 8;
        Specified by:
        hasParentalStatus in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the parentalStatus field is set.
      • hasIncomeRange

        public boolean hasIncomeRange()
         A household income percentile range.
         
        .google.ads.googleads.v15.common.IncomeRangeInfo income_range = 9;
        Specified by:
        hasIncomeRange in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the incomeRange field is set.
      • hasYoutubeChannel

        public boolean hasYoutubeChannel()
         A YouTube channel.
         
        .google.ads.googleads.v15.common.YouTubeChannelInfo youtube_channel = 10;
        Specified by:
        hasYoutubeChannel in interface AudienceInsightsAttributeOrBuilder
        Returns:
        Whether the youtubeChannel field is set.
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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 AudienceInsightsAttribute parseFrom​(java.nio.ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AudienceInsightsAttribute parseFrom​(java.nio.ByteBuffer data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        public static AudienceInsightsAttribute parseFrom​(java.io.InputStream input)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static AudienceInsightsAttribute parseDelimitedFrom​(java.io.InputStream input)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

        public static AudienceInsightsAttribute parseFrom​(com.google.protobuf.CodedInputStream input)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

        protected AudienceInsightsAttribute.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AudienceInsightsAttribute> 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 AudienceInsightsAttribute getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder