Class PlannableTargeting

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.services.PlannableTargeting
All Implemented Interfaces:
PlannableTargetingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class PlannableTargeting extends com.google.protobuf.GeneratedMessageV3 implements PlannableTargetingOrBuilder
 The targeting for which traffic metrics will be reported.
 
Protobuf type google.ads.googleads.v18.services.PlannableTargeting
See Also:
  • Field Details

    • AGE_RANGES_FIELD_NUMBER

      public static final int AGE_RANGES_FIELD_NUMBER
      See Also:
    • GENDERS_FIELD_NUMBER

      public static final int GENDERS_FIELD_NUMBER
      See Also:
    • DEVICES_FIELD_NUMBER

      public static final int DEVICES_FIELD_NUMBER
      See Also:
    • NETWORKS_FIELD_NUMBER

      public static final int NETWORKS_FIELD_NUMBER
      See Also:
    • YOUTUBE_SELECT_LINEUPS_FIELD_NUMBER

      public static final int YOUTUBE_SELECT_LINEUPS_FIELD_NUMBER
      See Also:
    • SURFACE_TARGETING_FIELD_NUMBER

      public static final int SURFACE_TARGETING_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
    • getAgeRangesList

      public List<ReachPlanAgeRangeEnum.ReachPlanAgeRange> getAgeRangesList()
       Allowed plannable age ranges for the product for which metrics will be
       reported. Actual targeting is computed by mapping this age range onto
       standard Google common.AgeRangeInfo values.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1;
      Specified by:
      getAgeRangesList in interface PlannableTargetingOrBuilder
      Returns:
      A list containing the ageRanges.
    • getAgeRangesCount

      public int getAgeRangesCount()
       Allowed plannable age ranges for the product for which metrics will be
       reported. Actual targeting is computed by mapping this age range onto
       standard Google common.AgeRangeInfo values.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1;
      Specified by:
      getAgeRangesCount in interface PlannableTargetingOrBuilder
      Returns:
      The count of ageRanges.
    • getAgeRanges

      public ReachPlanAgeRangeEnum.ReachPlanAgeRange getAgeRanges(int index)
       Allowed plannable age ranges for the product for which metrics will be
       reported. Actual targeting is computed by mapping this age range onto
       standard Google common.AgeRangeInfo values.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1;
      Specified by:
      getAgeRanges in interface PlannableTargetingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ageRanges at the given index.
    • getAgeRangesValueList

      public List<Integer> getAgeRangesValueList()
       Allowed plannable age ranges for the product for which metrics will be
       reported. Actual targeting is computed by mapping this age range onto
       standard Google common.AgeRangeInfo values.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1;
      Specified by:
      getAgeRangesValueList in interface PlannableTargetingOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for ageRanges.
    • getAgeRangesValue

      public int getAgeRangesValue(int index)
       Allowed plannable age ranges for the product for which metrics will be
       reported. Actual targeting is computed by mapping this age range onto
       standard Google common.AgeRangeInfo values.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1;
      Specified by:
      getAgeRangesValue in interface PlannableTargetingOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of ageRanges at the given index.
    • getGendersList

      public List<GenderInfo> getGendersList()
       Targetable genders for the ad product.
       
      repeated .google.ads.googleads.v18.common.GenderInfo genders = 2;
      Specified by:
      getGendersList in interface PlannableTargetingOrBuilder
    • getGendersOrBuilderList

      public List<? extends GenderInfoOrBuilder> getGendersOrBuilderList()
       Targetable genders for the ad product.
       
      repeated .google.ads.googleads.v18.common.GenderInfo genders = 2;
      Specified by:
      getGendersOrBuilderList in interface PlannableTargetingOrBuilder
    • getGendersCount

      public int getGendersCount()
       Targetable genders for the ad product.
       
      repeated .google.ads.googleads.v18.common.GenderInfo genders = 2;
      Specified by:
      getGendersCount in interface PlannableTargetingOrBuilder
    • getGenders

      public GenderInfo getGenders(int index)
       Targetable genders for the ad product.
       
      repeated .google.ads.googleads.v18.common.GenderInfo genders = 2;
      Specified by:
      getGenders in interface PlannableTargetingOrBuilder
    • getGendersOrBuilder

      public GenderInfoOrBuilder getGendersOrBuilder(int index)
       Targetable genders for the ad product.
       
      repeated .google.ads.googleads.v18.common.GenderInfo genders = 2;
      Specified by:
      getGendersOrBuilder in interface PlannableTargetingOrBuilder
    • getDevicesList

      public List<DeviceInfo> getDevicesList()
       Targetable devices for the ad product.
       TABLET device targeting is automatically applied to reported metrics
       when MOBILE targeting is selected for CPM_MASTHEAD,
       GOOGLE_PREFERRED_BUMPER, and GOOGLE_PREFERRED_SHORT products.
       
      repeated .google.ads.googleads.v18.common.DeviceInfo devices = 3;
      Specified by:
      getDevicesList in interface PlannableTargetingOrBuilder
    • getDevicesOrBuilderList

      public List<? extends DeviceInfoOrBuilder> getDevicesOrBuilderList()
       Targetable devices for the ad product.
       TABLET device targeting is automatically applied to reported metrics
       when MOBILE targeting is selected for CPM_MASTHEAD,
       GOOGLE_PREFERRED_BUMPER, and GOOGLE_PREFERRED_SHORT products.
       
      repeated .google.ads.googleads.v18.common.DeviceInfo devices = 3;
      Specified by:
      getDevicesOrBuilderList in interface PlannableTargetingOrBuilder
    • getDevicesCount

      public int getDevicesCount()
       Targetable devices for the ad product.
       TABLET device targeting is automatically applied to reported metrics
       when MOBILE targeting is selected for CPM_MASTHEAD,
       GOOGLE_PREFERRED_BUMPER, and GOOGLE_PREFERRED_SHORT products.
       
      repeated .google.ads.googleads.v18.common.DeviceInfo devices = 3;
      Specified by:
      getDevicesCount in interface PlannableTargetingOrBuilder
    • getDevices

      public DeviceInfo getDevices(int index)
       Targetable devices for the ad product.
       TABLET device targeting is automatically applied to reported metrics
       when MOBILE targeting is selected for CPM_MASTHEAD,
       GOOGLE_PREFERRED_BUMPER, and GOOGLE_PREFERRED_SHORT products.
       
      repeated .google.ads.googleads.v18.common.DeviceInfo devices = 3;
      Specified by:
      getDevices in interface PlannableTargetingOrBuilder
    • getDevicesOrBuilder

      public DeviceInfoOrBuilder getDevicesOrBuilder(int index)
       Targetable devices for the ad product.
       TABLET device targeting is automatically applied to reported metrics
       when MOBILE targeting is selected for CPM_MASTHEAD,
       GOOGLE_PREFERRED_BUMPER, and GOOGLE_PREFERRED_SHORT products.
       
      repeated .google.ads.googleads.v18.common.DeviceInfo devices = 3;
      Specified by:
      getDevicesOrBuilder in interface PlannableTargetingOrBuilder
    • getNetworksList

      public List<ReachPlanNetworkEnum.ReachPlanNetwork> getNetworksList()
       Targetable networks for the ad product.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork networks = 4;
      Specified by:
      getNetworksList in interface PlannableTargetingOrBuilder
      Returns:
      A list containing the networks.
    • getNetworksCount

      public int getNetworksCount()
       Targetable networks for the ad product.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork networks = 4;
      Specified by:
      getNetworksCount in interface PlannableTargetingOrBuilder
      Returns:
      The count of networks.
    • getNetworks

      public ReachPlanNetworkEnum.ReachPlanNetwork getNetworks(int index)
       Targetable networks for the ad product.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork networks = 4;
      Specified by:
      getNetworks in interface PlannableTargetingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The networks at the given index.
    • getNetworksValueList

      public List<Integer> getNetworksValueList()
       Targetable networks for the ad product.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork networks = 4;
      Specified by:
      getNetworksValueList in interface PlannableTargetingOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for networks.
    • getNetworksValue

      public int getNetworksValue(int index)
       Targetable networks for the ad product.
       
      repeated .google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork networks = 4;
      Specified by:
      getNetworksValue in interface PlannableTargetingOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of networks at the given index.
    • getYoutubeSelectLineupsList

      public List<YouTubeSelectLineUp> getYoutubeSelectLineupsList()
       Targetable YouTube Select Lineups for the ad product.
       
      repeated .google.ads.googleads.v18.services.YouTubeSelectLineUp youtube_select_lineups = 5;
      Specified by:
      getYoutubeSelectLineupsList in interface PlannableTargetingOrBuilder
    • getYoutubeSelectLineupsOrBuilderList

      public List<? extends YouTubeSelectLineUpOrBuilder> getYoutubeSelectLineupsOrBuilderList()
       Targetable YouTube Select Lineups for the ad product.
       
      repeated .google.ads.googleads.v18.services.YouTubeSelectLineUp youtube_select_lineups = 5;
      Specified by:
      getYoutubeSelectLineupsOrBuilderList in interface PlannableTargetingOrBuilder
    • getYoutubeSelectLineupsCount

      public int getYoutubeSelectLineupsCount()
       Targetable YouTube Select Lineups for the ad product.
       
      repeated .google.ads.googleads.v18.services.YouTubeSelectLineUp youtube_select_lineups = 5;
      Specified by:
      getYoutubeSelectLineupsCount in interface PlannableTargetingOrBuilder
    • getYoutubeSelectLineups

      public YouTubeSelectLineUp getYoutubeSelectLineups(int index)
       Targetable YouTube Select Lineups for the ad product.
       
      repeated .google.ads.googleads.v18.services.YouTubeSelectLineUp youtube_select_lineups = 5;
      Specified by:
      getYoutubeSelectLineups in interface PlannableTargetingOrBuilder
    • getYoutubeSelectLineupsOrBuilder

      public YouTubeSelectLineUpOrBuilder getYoutubeSelectLineupsOrBuilder(int index)
       Targetable YouTube Select Lineups for the ad product.
       
      repeated .google.ads.googleads.v18.services.YouTubeSelectLineUp youtube_select_lineups = 5;
      Specified by:
      getYoutubeSelectLineupsOrBuilder in interface PlannableTargetingOrBuilder
    • hasSurfaceTargeting

      public boolean hasSurfaceTargeting()
       Targetable surface combinations for the ad product.
       
      .google.ads.googleads.v18.services.SurfaceTargetingCombinations surface_targeting = 6;
      Specified by:
      hasSurfaceTargeting in interface PlannableTargetingOrBuilder
      Returns:
      Whether the surfaceTargeting field is set.
    • getSurfaceTargeting

      public SurfaceTargetingCombinations getSurfaceTargeting()
       Targetable surface combinations for the ad product.
       
      .google.ads.googleads.v18.services.SurfaceTargetingCombinations surface_targeting = 6;
      Specified by:
      getSurfaceTargeting in interface PlannableTargetingOrBuilder
      Returns:
      The surfaceTargeting.
    • getSurfaceTargetingOrBuilder

      public SurfaceTargetingCombinationsOrBuilder getSurfaceTargetingOrBuilder()
       Targetable surface combinations for the ad product.
       
      .google.ads.googleads.v18.services.SurfaceTargetingCombinations surface_targeting = 6;
      Specified by:
      getSurfaceTargetingOrBuilder in interface PlannableTargetingOrBuilder
    • 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 PlannableTargeting parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static PlannableTargeting.Builder newBuilder()
    • newBuilder

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

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

      protected PlannableTargeting.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static PlannableTargeting getDefaultInstance()
    • parser

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

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