Class PlannableTargeting

  • All Implemented Interfaces:
    PlannableTargetingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.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.v10.services.PlannableTargeting
    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
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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 java.util.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.v10.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.v10.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.v10.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 java.util.List<java.lang.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.v10.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.v10.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.
      • getGendersCount

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

        public java.util.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.v10.common.DeviceInfo devices = 3;
        Specified by:
        getDevicesList in interface PlannableTargetingOrBuilder
      • getDevicesOrBuilderList

        public java.util.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.v10.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.v10.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.v10.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.v10.common.DeviceInfo devices = 3;
        Specified by:
        getDevicesOrBuilder in interface PlannableTargetingOrBuilder
      • getNetworksCount

        public int getNetworksCount()
         Targetable networks for the ad product.
         
        repeated .google.ads.googleads.v10.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.v10.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 java.util.List<java.lang.Integer> getNetworksValueList()
         Targetable networks for the ad product.
         
        repeated .google.ads.googleads.v10.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.v10.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.
      • 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 PlannableTargeting parseFrom​(java.nio.ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PlannableTargeting parseFrom​(java.nio.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​(java.io.InputStream input)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

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

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

        public PlannableTargeting.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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
      • 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