Class TargetingSuggestionMetrics
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v15.services.TargetingSuggestionMetrics
-
- All Implemented Interfaces:
TargetingSuggestionMetricsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class TargetingSuggestionMetrics extends com.google.protobuf.GeneratedMessageV3 implements TargetingSuggestionMetricsOrBuilder
A suggested targetable audience relevant to the requested audience.
Protobuf typegoogle.ads.googleads.v15.services.TargetingSuggestionMetrics- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTargetingSuggestionMetrics.BuilderA suggested targetable audience relevant to the requested audience.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAGE_RANGES_FIELD_NUMBERstatic intCOVERAGE_FIELD_NUMBERstatic intGENDER_FIELD_NUMBERstatic intINDEX_FIELD_NUMBERstatic intLOCATIONS_FIELD_NUMBERstatic intPOTENTIAL_YOUTUBE_REACH_FIELD_NUMBERstatic intUSER_INTERESTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AgeRangeInfogetAgeRanges(int index)Suggested age targeting; may be empty indicating no age targeting.intgetAgeRangesCount()Suggested age targeting; may be empty indicating no age targeting.java.util.List<AgeRangeInfo>getAgeRangesList()Suggested age targeting; may be empty indicating no age targeting.AgeRangeInfoOrBuildergetAgeRangesOrBuilder(int index)Suggested age targeting; may be empty indicating no age targeting.java.util.List<? extends AgeRangeInfoOrBuilder>getAgeRangesOrBuilderList()Suggested age targeting; may be empty indicating no age targeting.doublegetCoverage()The fraction (from 0 to 1 inclusive) of the requested audience that can be reached using the suggested targeting.static TargetingSuggestionMetricsgetDefaultInstance()TargetingSuggestionMetricsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GenderInfogetGender()Suggested gender targeting.GenderInfoOrBuildergetGenderOrBuilder()Suggested gender targeting.doublegetIndex()The ratio of coverage to the coverage of the baseline audience or zero if this ratio is undefined or is not meaningful.AudienceInsightsAttributeMetadatagetLocations(int index)Suggested location targeting.intgetLocationsCount()Suggested location targeting.java.util.List<AudienceInsightsAttributeMetadata>getLocationsList()Suggested location targeting.AudienceInsightsAttributeMetadataOrBuildergetLocationsOrBuilder(int index)Suggested location targeting.java.util.List<? extends AudienceInsightsAttributeMetadataOrBuilder>getLocationsOrBuilderList()Suggested location targeting.com.google.protobuf.Parser<TargetingSuggestionMetrics>getParserForType()longgetPotentialYoutubeReach()The approximate estimated number of people that can be reached on YouTube using this targeting.intgetSerializedSize()AudienceInsightsAttributeMetadatagetUserInterests(int index)Suggested audience segments to target.intgetUserInterestsCount()Suggested audience segments to target.java.util.List<AudienceInsightsAttributeMetadata>getUserInterestsList()Suggested audience segments to target.AudienceInsightsAttributeMetadataOrBuildergetUserInterestsOrBuilder(int index)Suggested audience segments to target.java.util.List<? extends AudienceInsightsAttributeMetadataOrBuilder>getUserInterestsOrBuilderList()Suggested audience segments to target.booleanhasGender()Suggested gender targeting.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TargetingSuggestionMetrics.BuildernewBuilder()static TargetingSuggestionMetrics.BuildernewBuilder(TargetingSuggestionMetrics prototype)TargetingSuggestionMetrics.BuildernewBuilderForType()protected TargetingSuggestionMetrics.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TargetingSuggestionMetricsparseDelimitedFrom(java.io.InputStream input)static TargetingSuggestionMetricsparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingSuggestionMetricsparseFrom(byte[] data)static TargetingSuggestionMetricsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingSuggestionMetricsparseFrom(com.google.protobuf.ByteString data)static TargetingSuggestionMetricsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingSuggestionMetricsparseFrom(com.google.protobuf.CodedInputStream input)static TargetingSuggestionMetricsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingSuggestionMetricsparseFrom(java.io.InputStream input)static TargetingSuggestionMetricsparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TargetingSuggestionMetricsparseFrom(java.nio.ByteBuffer data)static TargetingSuggestionMetricsparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TargetingSuggestionMetrics>parser()TargetingSuggestionMetrics.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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
-
LOCATIONS_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGE_RANGES_FIELD_NUMBER
public static final int AGE_RANGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GENDER_FIELD_NUMBER
public static final int GENDER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_INTERESTS_FIELD_NUMBER
public static final int USER_INTERESTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COVERAGE_FIELD_NUMBER
public static final int COVERAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POTENTIAL_YOUTUBE_REACH_FIELD_NUMBER
public static final int POTENTIAL_YOUTUBE_REACH_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
-
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
-
getLocationsList
public java.util.List<AudienceInsightsAttributeMetadata> getLocationsList()
Suggested location targeting. These attributes all have dimension GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;- Specified by:
getLocationsListin interfaceTargetingSuggestionMetricsOrBuilder
-
getLocationsOrBuilderList
public java.util.List<? extends AudienceInsightsAttributeMetadataOrBuilder> getLocationsOrBuilderList()
Suggested location targeting. These attributes all have dimension GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;- Specified by:
getLocationsOrBuilderListin interfaceTargetingSuggestionMetricsOrBuilder
-
getLocationsCount
public int getLocationsCount()
Suggested location targeting. These attributes all have dimension GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;- Specified by:
getLocationsCountin interfaceTargetingSuggestionMetricsOrBuilder
-
getLocations
public AudienceInsightsAttributeMetadata getLocations(int index)
Suggested location targeting. These attributes all have dimension GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;- Specified by:
getLocationsin interfaceTargetingSuggestionMetricsOrBuilder
-
getLocationsOrBuilder
public AudienceInsightsAttributeMetadataOrBuilder getLocationsOrBuilder(int index)
Suggested location targeting. These attributes all have dimension GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;- Specified by:
getLocationsOrBuilderin interfaceTargetingSuggestionMetricsOrBuilder
-
getAgeRangesList
public java.util.List<AgeRangeInfo> getAgeRangesList()
Suggested age targeting; may be empty indicating no age targeting.
repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;- Specified by:
getAgeRangesListin interfaceTargetingSuggestionMetricsOrBuilder
-
getAgeRangesOrBuilderList
public java.util.List<? extends AgeRangeInfoOrBuilder> getAgeRangesOrBuilderList()
Suggested age targeting; may be empty indicating no age targeting.
repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;- Specified by:
getAgeRangesOrBuilderListin interfaceTargetingSuggestionMetricsOrBuilder
-
getAgeRangesCount
public int getAgeRangesCount()
Suggested age targeting; may be empty indicating no age targeting.
repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;- Specified by:
getAgeRangesCountin interfaceTargetingSuggestionMetricsOrBuilder
-
getAgeRanges
public AgeRangeInfo getAgeRanges(int index)
Suggested age targeting; may be empty indicating no age targeting.
repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;- Specified by:
getAgeRangesin interfaceTargetingSuggestionMetricsOrBuilder
-
getAgeRangesOrBuilder
public AgeRangeInfoOrBuilder getAgeRangesOrBuilder(int index)
Suggested age targeting; may be empty indicating no age targeting.
repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;- Specified by:
getAgeRangesOrBuilderin interfaceTargetingSuggestionMetricsOrBuilder
-
hasGender
public boolean hasGender()
Suggested gender targeting. If present, this attribute has dimension GENDER.
.google.ads.googleads.v15.common.GenderInfo gender = 3;- Specified by:
hasGenderin interfaceTargetingSuggestionMetricsOrBuilder- Returns:
- Whether the gender field is set.
-
getGender
public GenderInfo getGender()
Suggested gender targeting. If present, this attribute has dimension GENDER.
.google.ads.googleads.v15.common.GenderInfo gender = 3;- Specified by:
getGenderin interfaceTargetingSuggestionMetricsOrBuilder- Returns:
- The gender.
-
getGenderOrBuilder
public GenderInfoOrBuilder getGenderOrBuilder()
Suggested gender targeting. If present, this attribute has dimension GENDER.
.google.ads.googleads.v15.common.GenderInfo gender = 3;- Specified by:
getGenderOrBuilderin interfaceTargetingSuggestionMetricsOrBuilder
-
getUserInterestsList
public java.util.List<AudienceInsightsAttributeMetadata> getUserInterestsList()
Suggested audience segments to target. These attributes all have dimension AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;- Specified by:
getUserInterestsListin interfaceTargetingSuggestionMetricsOrBuilder
-
getUserInterestsOrBuilderList
public java.util.List<? extends AudienceInsightsAttributeMetadataOrBuilder> getUserInterestsOrBuilderList()
Suggested audience segments to target. These attributes all have dimension AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;- Specified by:
getUserInterestsOrBuilderListin interfaceTargetingSuggestionMetricsOrBuilder
-
getUserInterestsCount
public int getUserInterestsCount()
Suggested audience segments to target. These attributes all have dimension AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;- Specified by:
getUserInterestsCountin interfaceTargetingSuggestionMetricsOrBuilder
-
getUserInterests
public AudienceInsightsAttributeMetadata getUserInterests(int index)
Suggested audience segments to target. These attributes all have dimension AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;- Specified by:
getUserInterestsin interfaceTargetingSuggestionMetricsOrBuilder
-
getUserInterestsOrBuilder
public AudienceInsightsAttributeMetadataOrBuilder getUserInterestsOrBuilder(int index)
Suggested audience segments to target. These attributes all have dimension AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;- Specified by:
getUserInterestsOrBuilderin interfaceTargetingSuggestionMetricsOrBuilder
-
getCoverage
public double getCoverage()
The fraction (from 0 to 1 inclusive) of the requested audience that can be reached using the suggested targeting.
double coverage = 5;- Specified by:
getCoveragein interfaceTargetingSuggestionMetricsOrBuilder- Returns:
- The coverage.
-
getIndex
public double getIndex()
The ratio of coverage to the coverage of the baseline audience or zero if this ratio is undefined or is not meaningful.
double index = 6;- Specified by:
getIndexin interfaceTargetingSuggestionMetricsOrBuilder- Returns:
- The index.
-
getPotentialYoutubeReach
public long getPotentialYoutubeReach()
The approximate estimated number of people that can be reached on YouTube using this targeting.
int64 potential_youtube_reach = 7;- Specified by:
getPotentialYoutubeReachin interfaceTargetingSuggestionMetricsOrBuilder- Returns:
- The potentialYoutubeReach.
-
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 TargetingSuggestionMetrics parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TargetingSuggestionMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TargetingSuggestionMetrics parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public TargetingSuggestionMetrics.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TargetingSuggestionMetrics.Builder newBuilder()
-
newBuilder
public static TargetingSuggestionMetrics.Builder newBuilder(TargetingSuggestionMetrics prototype)
-
toBuilder
public TargetingSuggestionMetrics.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TargetingSuggestionMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TargetingSuggestionMetrics getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TargetingSuggestionMetrics> parser()
-
getParserForType
public com.google.protobuf.Parser<TargetingSuggestionMetrics> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TargetingSuggestionMetrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-