Class BasicInsightsAudience

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.services.BasicInsightsAudience
All Implemented Interfaces:
BasicInsightsAudienceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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.v18.services.BasicInsightsAudience
See Also:
  • Field Details

    • COUNTRY_LOCATION_FIELD_NUMBER

      public static final int COUNTRY_LOCATION_FIELD_NUMBER
      See Also:
    • SUB_COUNTRY_LOCATIONS_FIELD_NUMBER

      public static final int SUB_COUNTRY_LOCATIONS_FIELD_NUMBER
      See Also:
    • GENDER_FIELD_NUMBER

      public static final int GENDER_FIELD_NUMBER
      See Also:
    • AGE_RANGES_FIELD_NUMBER

      public static final int AGE_RANGES_FIELD_NUMBER
      See Also:
    • USER_INTERESTS_FIELD_NUMBER

      public static final int USER_INTERESTS_FIELD_NUMBER
      See Also:
    • TOPICS_FIELD_NUMBER

      public static final int TOPICS_FIELD_NUMBER
      See Also:
  • Method Details

    • 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
    • getCountryLocationList

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

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

      public int getCountryLocationCount()
       Required. The countries for this audience.
       
      repeated .google.ads.googleads.v18.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.v18.common.LocationInfo country_location = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCountryLocation in interface BasicInsightsAudienceOrBuilder
    • getCountryLocationOrBuilder

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

      public 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.v18.common.LocationInfo sub_country_locations = 2;
      Specified by:
      getSubCountryLocationsList in interface BasicInsightsAudienceOrBuilder
    • getSubCountryLocationsOrBuilderList

      public 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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.common.GenderInfo gender = 3;
      Specified by:
      getGender in interface BasicInsightsAudienceOrBuilder
      Returns:
      The gender.
    • getGenderOrBuilder

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

      public 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.v18.common.AgeRangeInfo age_ranges = 4;
      Specified by:
      getAgeRangesList in interface BasicInsightsAudienceOrBuilder
    • getAgeRangesOrBuilderList

      public 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.v18.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.v18.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.v18.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.v18.common.AgeRangeInfo age_ranges = 4;
      Specified by:
      getAgeRangesOrBuilder in interface BasicInsightsAudienceOrBuilder
    • getUserInterestsList

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

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

      public int getUserInterestsCount()
       User interests defining this audience.  Affinity and In-Market audiences
       are supported.
       
      repeated .google.ads.googleads.v18.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.v18.common.UserInterestInfo user_interests = 5;
      Specified by:
      getUserInterests in interface BasicInsightsAudienceOrBuilder
    • getUserInterestsOrBuilder

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

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

      public List<? extends AudienceInsightsTopicOrBuilder> getTopicsOrBuilderList()
       Topics, represented by Knowledge Graph entities and/or Product & Service
       categories, that this audience is interested in.
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsTopic topics = 6;
      Specified by:
      getTopicsOrBuilderList 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.v18.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.v18.services.AudienceInsightsTopic topics = 6;
      Specified by:
      getTopics in interface BasicInsightsAudienceOrBuilder
    • getTopicsOrBuilder

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

      public static BasicInsightsAudience parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

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

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

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

      public static BasicInsightsAudience.Builder newBuilder()
    • newBuilder

      public static BasicInsightsAudience.Builder newBuilder(BasicInsightsAudience prototype)
    • 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
    • getDefaultInstance

      public static BasicInsightsAudience getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BasicInsightsAudience> parser()
    • 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