Class Targeting

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

    public final class Targeting
    extends com.google.protobuf.GeneratedMessageV3
    implements TargetingOrBuilder
     The targeting for which traffic metrics will be reported.
     
    Protobuf type google.ads.googleads.v10.services.Targeting
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Targeting.Builder
      The targeting for which traffic metrics will be reported.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • hasPlannableLocationId

        public boolean hasPlannableLocationId()
         Required. The ID of the selected location. Plannable location IDs can be
         obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
         
        optional string plannable_location_id = 6;
        Specified by:
        hasPlannableLocationId in interface TargetingOrBuilder
        Returns:
        Whether the plannableLocationId field is set.
      • getPlannableLocationId

        public java.lang.String getPlannableLocationId()
         Required. The ID of the selected location. Plannable location IDs can be
         obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
         
        optional string plannable_location_id = 6;
        Specified by:
        getPlannableLocationId in interface TargetingOrBuilder
        Returns:
        The plannableLocationId.
      • getPlannableLocationIdBytes

        public com.google.protobuf.ByteString getPlannableLocationIdBytes()
         Required. The ID of the selected location. Plannable location IDs can be
         obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations].
         
        optional string plannable_location_id = 6;
        Specified by:
        getPlannableLocationIdBytes in interface TargetingOrBuilder
        Returns:
        The bytes for plannableLocationId.
      • getAgeRangeValue

        public int getAgeRangeValue()
         Targeted age range.
         An unset value is equivalent to targeting all ages.
         
        .google.ads.googleads.v10.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2;
        Specified by:
        getAgeRangeValue in interface TargetingOrBuilder
        Returns:
        The enum numeric value on the wire for ageRange.
      • getGendersList

        public java.util.List<GenderInfo> getGendersList()
         Targeted genders.
         An unset value is equivalent to targeting MALE and FEMALE.
         
        repeated .google.ads.googleads.v10.common.GenderInfo genders = 3;
        Specified by:
        getGendersList in interface TargetingOrBuilder
      • getGendersOrBuilderList

        public java.util.List<? extends GenderInfoOrBuilder> getGendersOrBuilderList()
         Targeted genders.
         An unset value is equivalent to targeting MALE and FEMALE.
         
        repeated .google.ads.googleads.v10.common.GenderInfo genders = 3;
        Specified by:
        getGendersOrBuilderList in interface TargetingOrBuilder
      • getGendersCount

        public int getGendersCount()
         Targeted genders.
         An unset value is equivalent to targeting MALE and FEMALE.
         
        repeated .google.ads.googleads.v10.common.GenderInfo genders = 3;
        Specified by:
        getGendersCount in interface TargetingOrBuilder
      • getGenders

        public GenderInfo getGenders​(int index)
         Targeted genders.
         An unset value is equivalent to targeting MALE and FEMALE.
         
        repeated .google.ads.googleads.v10.common.GenderInfo genders = 3;
        Specified by:
        getGenders in interface TargetingOrBuilder
      • getGendersOrBuilder

        public GenderInfoOrBuilder getGendersOrBuilder​(int index)
         Targeted genders.
         An unset value is equivalent to targeting MALE and FEMALE.
         
        repeated .google.ads.googleads.v10.common.GenderInfo genders = 3;
        Specified by:
        getGendersOrBuilder in interface TargetingOrBuilder
      • getDevicesList

        public java.util.List<DeviceInfo> getDevicesList()
         Targeted devices.
         If not specified, targets all applicable devices. Applicable devices vary
         by product and region and can be obtained from
         [ReachPlanService.ListPlannableProducts][google.ads.googleads.v10.services.ReachPlanService.ListPlannableProducts].
         
        repeated .google.ads.googleads.v10.common.DeviceInfo devices = 4;
        Specified by:
        getDevicesList in interface TargetingOrBuilder
      • getDevicesOrBuilderList

        public java.util.List<? extends DeviceInfoOrBuilder> getDevicesOrBuilderList()
         Targeted devices.
         If not specified, targets all applicable devices. Applicable devices vary
         by product and region and can be obtained from
         [ReachPlanService.ListPlannableProducts][google.ads.googleads.v10.services.ReachPlanService.ListPlannableProducts].
         
        repeated .google.ads.googleads.v10.common.DeviceInfo devices = 4;
        Specified by:
        getDevicesOrBuilderList in interface TargetingOrBuilder
      • getDevicesCount

        public int getDevicesCount()
         Targeted devices.
         If not specified, targets all applicable devices. Applicable devices vary
         by product and region and can be obtained from
         [ReachPlanService.ListPlannableProducts][google.ads.googleads.v10.services.ReachPlanService.ListPlannableProducts].
         
        repeated .google.ads.googleads.v10.common.DeviceInfo devices = 4;
        Specified by:
        getDevicesCount in interface TargetingOrBuilder
      • getDevices

        public DeviceInfo getDevices​(int index)
         Targeted devices.
         If not specified, targets all applicable devices. Applicable devices vary
         by product and region and can be obtained from
         [ReachPlanService.ListPlannableProducts][google.ads.googleads.v10.services.ReachPlanService.ListPlannableProducts].
         
        repeated .google.ads.googleads.v10.common.DeviceInfo devices = 4;
        Specified by:
        getDevices in interface TargetingOrBuilder
      • getDevicesOrBuilder

        public DeviceInfoOrBuilder getDevicesOrBuilder​(int index)
         Targeted devices.
         If not specified, targets all applicable devices. Applicable devices vary
         by product and region and can be obtained from
         [ReachPlanService.ListPlannableProducts][google.ads.googleads.v10.services.ReachPlanService.ListPlannableProducts].
         
        repeated .google.ads.googleads.v10.common.DeviceInfo devices = 4;
        Specified by:
        getDevicesOrBuilder in interface TargetingOrBuilder
      • getNetworkValue

        public int getNetworkValue()
         Targetable network for the ad product.
         If not specified, targets all applicable networks. Applicable networks vary
         by product and region and can be obtained from
         [ReachPlanService.ListPlannableProducts][google.ads.googleads.v10.services.ReachPlanService.ListPlannableProducts].
         
        .google.ads.googleads.v10.enums.ReachPlanNetworkEnum.ReachPlanNetwork network = 5;
        Specified by:
        getNetworkValue in interface TargetingOrBuilder
        Returns:
        The enum numeric value on the wire for network.
      • getNetwork

        public ReachPlanNetworkEnum.ReachPlanNetwork getNetwork()
         Targetable network for the ad product.
         If not specified, targets all applicable networks. Applicable networks vary
         by product and region and can be obtained from
         [ReachPlanService.ListPlannableProducts][google.ads.googleads.v10.services.ReachPlanService.ListPlannableProducts].
         
        .google.ads.googleads.v10.enums.ReachPlanNetworkEnum.ReachPlanNetwork network = 5;
        Specified by:
        getNetwork in interface TargetingOrBuilder
        Returns:
        The network.
      • 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 Targeting parseFrom​(java.nio.ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static Targeting getDefaultInstance()
      • parser

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

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