Class Targeting
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.services.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 typegoogle.ads.googleads.v10.services.Targeting- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTargeting.BuilderThe 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
-
-
Field Summary
Fields Modifier and Type Field Description static intAGE_RANGE_FIELD_NUMBERstatic intDEVICES_FIELD_NUMBERstatic intGENDERS_FIELD_NUMBERstatic intNETWORK_FIELD_NUMBERstatic intPLANNABLE_LOCATION_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ReachPlanAgeRangeEnum.ReachPlanAgeRangegetAgeRange()Targeted age range.intgetAgeRangeValue()Targeted age range.static TargetinggetDefaultInstance()TargetinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DeviceInfogetDevices(int index)Targeted devices.intgetDevicesCount()Targeted devices.java.util.List<DeviceInfo>getDevicesList()Targeted devices.DeviceInfoOrBuildergetDevicesOrBuilder(int index)Targeted devices.java.util.List<? extends DeviceInfoOrBuilder>getDevicesOrBuilderList()Targeted devices.GenderInfogetGenders(int index)Targeted genders.intgetGendersCount()Targeted genders.java.util.List<GenderInfo>getGendersList()Targeted genders.GenderInfoOrBuildergetGendersOrBuilder(int index)Targeted genders.java.util.List<? extends GenderInfoOrBuilder>getGendersOrBuilderList()Targeted genders.ReachPlanNetworkEnum.ReachPlanNetworkgetNetwork()Targetable network for the ad product.intgetNetworkValue()Targetable network for the ad product.com.google.protobuf.Parser<Targeting>getParserForType()java.lang.StringgetPlannableLocationId()Required.com.google.protobuf.ByteStringgetPlannableLocationIdBytes()Required.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasPlannableLocationId()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Targeting.BuildernewBuilder()static Targeting.BuildernewBuilder(Targeting prototype)Targeting.BuildernewBuilderForType()protected Targeting.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TargetingparseDelimitedFrom(java.io.InputStream input)static TargetingparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingparseFrom(byte[] data)static TargetingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingparseFrom(com.google.protobuf.ByteString data)static TargetingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingparseFrom(com.google.protobuf.CodedInputStream input)static TargetingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingparseFrom(java.io.InputStream input)static TargetingparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingparseFrom(java.nio.ByteBuffer data)static TargetingparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Targeting>parser()Targeting.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PLANNABLE_LOCATION_ID_FIELD_NUMBER
public static final int PLANNABLE_LOCATION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGE_RANGE_FIELD_NUMBER
public static final int AGE_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GENDERS_FIELD_NUMBER
public static final int GENDERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEVICES_FIELD_NUMBER
public static final int DEVICES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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:
hasPlannableLocationIdin interfaceTargetingOrBuilder- 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:
getPlannableLocationIdin interfaceTargetingOrBuilder- 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:
getPlannableLocationIdBytesin interfaceTargetingOrBuilder- 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:
getAgeRangeValuein interfaceTargetingOrBuilder- Returns:
- The enum numeric value on the wire for ageRange.
-
getAgeRange
public ReachPlanAgeRangeEnum.ReachPlanAgeRange getAgeRange()
Targeted age range. An unset value is equivalent to targeting all ages.
.google.ads.googleads.v10.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2;- Specified by:
getAgeRangein interfaceTargetingOrBuilder- Returns:
- The 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:
getGendersListin interfaceTargetingOrBuilder
-
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:
getGendersOrBuilderListin interfaceTargetingOrBuilder
-
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:
getGendersCountin interfaceTargetingOrBuilder
-
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:
getGendersin interfaceTargetingOrBuilder
-
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:
getGendersOrBuilderin interfaceTargetingOrBuilder
-
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:
getDevicesListin interfaceTargetingOrBuilder
-
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:
getDevicesOrBuilderListin interfaceTargetingOrBuilder
-
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:
getDevicesCountin interfaceTargetingOrBuilder
-
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:
getDevicesin interfaceTargetingOrBuilder
-
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:
getDevicesOrBuilderin interfaceTargetingOrBuilder
-
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:
getNetworkValuein interfaceTargetingOrBuilder- 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:
getNetworkin interfaceTargetingOrBuilder- Returns:
- The network.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Targeting.Builder newBuilder()
-
newBuilder
public static Targeting.Builder newBuilder(Targeting prototype)
-
toBuilder
public Targeting.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Targeting.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Targeting getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-