Class BasicInsightsAudience

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

    public final class BasicInsightsAudience
    extends com.google.protobuf.GeneratedMessageV3
    implements BasicInsightsAudienceOrBuilder
     A description of an audience used for requesting insights.
     
    Protobuf type google.ads.googleads.v14.services.BasicInsightsAudience
    See Also:
    Serialized Form
    • Field Detail

      • COUNTRY_LOCATION_FIELD_NUMBER

        public static final int COUNTRY_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUB_COUNTRY_LOCATIONS_FIELD_NUMBER

        public static final int SUB_COUNTRY_LOCATIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AGE_RANGES_FIELD_NUMBER

        public static final int AGE_RANGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • USER_INTERESTS_FIELD_NUMBER

        public static final int USER_INTERESTS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getCountryLocationList

        public java.util.List<LocationInfo> getCountryLocationList()
         Required. The countries for this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo country_location = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCountryLocationList in interface BasicInsightsAudienceOrBuilder
      • getCountryLocationCount

        public int getCountryLocationCount()
         Required. The countries for this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo country_location = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCountryLocationCount in interface BasicInsightsAudienceOrBuilder
      • getCountryLocation

        public LocationInfo getCountryLocation​(int index)
         Required. The countries for this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo country_location = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCountryLocation in interface BasicInsightsAudienceOrBuilder
      • getSubCountryLocationsList

        public java.util.List<LocationInfo> getSubCountryLocationsList()
         Sub-country geographic location attributes.  If present, each of these
         must be contained in one of the countries in this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo sub_country_locations = 2;
        Specified by:
        getSubCountryLocationsList in interface BasicInsightsAudienceOrBuilder
      • getSubCountryLocationsOrBuilderList

        public java.util.List<? extends LocationInfoOrBuilder> getSubCountryLocationsOrBuilderList()
         Sub-country geographic location attributes.  If present, each of these
         must be contained in one of the countries in this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo sub_country_locations = 2;
        Specified by:
        getSubCountryLocationsOrBuilderList in interface BasicInsightsAudienceOrBuilder
      • getSubCountryLocationsCount

        public int getSubCountryLocationsCount()
         Sub-country geographic location attributes.  If present, each of these
         must be contained in one of the countries in this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo sub_country_locations = 2;
        Specified by:
        getSubCountryLocationsCount in interface BasicInsightsAudienceOrBuilder
      • getSubCountryLocations

        public LocationInfo getSubCountryLocations​(int index)
         Sub-country geographic location attributes.  If present, each of these
         must be contained in one of the countries in this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo sub_country_locations = 2;
        Specified by:
        getSubCountryLocations in interface BasicInsightsAudienceOrBuilder
      • getSubCountryLocationsOrBuilder

        public LocationInfoOrBuilder getSubCountryLocationsOrBuilder​(int index)
         Sub-country geographic location attributes.  If present, each of these
         must be contained in one of the countries in this audience.
         
        repeated .google.ads.googleads.v14.common.LocationInfo sub_country_locations = 2;
        Specified by:
        getSubCountryLocationsOrBuilder in interface BasicInsightsAudienceOrBuilder
      • hasGender

        public boolean hasGender()
         Gender for the audience.  If absent, the audience does not restrict by
         gender.
         
        .google.ads.googleads.v14.common.GenderInfo gender = 3;
        Specified by:
        hasGender in interface BasicInsightsAudienceOrBuilder
        Returns:
        Whether the gender field is set.
      • getGender

        public GenderInfo getGender()
         Gender for the audience.  If absent, the audience does not restrict by
         gender.
         
        .google.ads.googleads.v14.common.GenderInfo gender = 3;
        Specified by:
        getGender in interface BasicInsightsAudienceOrBuilder
        Returns:
        The gender.
      • getAgeRangesList

        public java.util.List<AgeRangeInfo> getAgeRangesList()
         Age ranges for the audience.  If absent, the audience represents all people
         over 18 that match the other attributes.
         
        repeated .google.ads.googleads.v14.common.AgeRangeInfo age_ranges = 4;
        Specified by:
        getAgeRangesList in interface BasicInsightsAudienceOrBuilder
      • getAgeRangesOrBuilderList

        public java.util.List<? extends AgeRangeInfoOrBuilder> getAgeRangesOrBuilderList()
         Age ranges for the audience.  If absent, the audience represents all people
         over 18 that match the other attributes.
         
        repeated .google.ads.googleads.v14.common.AgeRangeInfo age_ranges = 4;
        Specified by:
        getAgeRangesOrBuilderList in interface BasicInsightsAudienceOrBuilder
      • getAgeRangesCount

        public int getAgeRangesCount()
         Age ranges for the audience.  If absent, the audience represents all people
         over 18 that match the other attributes.
         
        repeated .google.ads.googleads.v14.common.AgeRangeInfo age_ranges = 4;
        Specified by:
        getAgeRangesCount in interface BasicInsightsAudienceOrBuilder
      • getAgeRanges

        public AgeRangeInfo getAgeRanges​(int index)
         Age ranges for the audience.  If absent, the audience represents all people
         over 18 that match the other attributes.
         
        repeated .google.ads.googleads.v14.common.AgeRangeInfo age_ranges = 4;
        Specified by:
        getAgeRanges in interface BasicInsightsAudienceOrBuilder
      • getAgeRangesOrBuilder

        public AgeRangeInfoOrBuilder getAgeRangesOrBuilder​(int index)
         Age ranges for the audience.  If absent, the audience represents all people
         over 18 that match the other attributes.
         
        repeated .google.ads.googleads.v14.common.AgeRangeInfo age_ranges = 4;
        Specified by:
        getAgeRangesOrBuilder in interface BasicInsightsAudienceOrBuilder
      • getUserInterestsList

        public java.util.List<UserInterestInfo> getUserInterestsList()
         User interests defining this audience.  Affinity and In-Market audiences
         are supported.
         
        repeated .google.ads.googleads.v14.common.UserInterestInfo user_interests = 5;
        Specified by:
        getUserInterestsList in interface BasicInsightsAudienceOrBuilder
      • getUserInterestsCount

        public int getUserInterestsCount()
         User interests defining this audience.  Affinity and In-Market audiences
         are supported.
         
        repeated .google.ads.googleads.v14.common.UserInterestInfo user_interests = 5;
        Specified by:
        getUserInterestsCount in interface BasicInsightsAudienceOrBuilder
      • getUserInterests

        public UserInterestInfo getUserInterests​(int index)
         User interests defining this audience.  Affinity and In-Market audiences
         are supported.
         
        repeated .google.ads.googleads.v14.common.UserInterestInfo user_interests = 5;
        Specified by:
        getUserInterests in interface BasicInsightsAudienceOrBuilder
      • getTopicsList

        public java.util.List<AudienceInsightsTopic> getTopicsList()
         Topics, represented by Knowledge Graph entities and/or Product & Service
         categories, that this audience is interested in.
         
        repeated .google.ads.googleads.v14.services.AudienceInsightsTopic topics = 6;
        Specified by:
        getTopicsList in interface BasicInsightsAudienceOrBuilder
      • getTopicsCount

        public int getTopicsCount()
         Topics, represented by Knowledge Graph entities and/or Product & Service
         categories, that this audience is interested in.
         
        repeated .google.ads.googleads.v14.services.AudienceInsightsTopic topics = 6;
        Specified by:
        getTopicsCount in interface BasicInsightsAudienceOrBuilder
      • getTopics

        public AudienceInsightsTopic getTopics​(int index)
         Topics, represented by Knowledge Graph entities and/or Product & Service
         categories, that this audience is interested in.
         
        repeated .google.ads.googleads.v14.services.AudienceInsightsTopic topics = 6;
        Specified by:
        getTopics in interface BasicInsightsAudienceOrBuilder
      • 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 BasicInsightsAudience parseFrom​(java.nio.ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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