Class GrpDemographicBreakdown (0.62.0)

public final class GrpDemographicBreakdown extends GeneratedMessage implements GrpDemographicBreakdownOrBuilder

GRP forecast breakdown counts associated with a gender and age demographic.

Protobuf type google.ads.admanager.v1.GrpDemographicBreakdown

Static Fields

AGE_FIELD_NUMBER

public static final int AGE_FIELD_NUMBER
Field Value
Type Description
int

AVAILABLE_UNITS_FIELD_NUMBER

public static final int AVAILABLE_UNITS_FIELD_NUMBER
Field Value
Type Description
int

GENDER_FIELD_NUMBER

public static final int GENDER_FIELD_NUMBER
Field Value
Type Description
int

MATCHED_UNITS_FIELD_NUMBER

public static final int MATCHED_UNITS_FIELD_NUMBER
Field Value
Type Description
int

UNIT_TYPE_FIELD_NUMBER

public static final int UNIT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GrpDemographicBreakdown getDefaultInstance()
Returns
Type Description
GrpDemographicBreakdown

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GrpDemographicBreakdown.Builder newBuilder()
Returns
Type Description
GrpDemographicBreakdown.Builder

newBuilder(GrpDemographicBreakdown prototype)

public static GrpDemographicBreakdown.Builder newBuilder(GrpDemographicBreakdown prototype)
Parameter
Name Description
prototype GrpDemographicBreakdown
Returns
Type Description
GrpDemographicBreakdown.Builder

parseDelimitedFrom(InputStream input)

public static GrpDemographicBreakdown parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpDemographicBreakdown parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GrpDemographicBreakdown parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GrpDemographicBreakdown parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GrpDemographicBreakdown parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GrpDemographicBreakdown parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GrpDemographicBreakdown parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpDemographicBreakdown parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GrpDemographicBreakdown parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpDemographicBreakdown parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GrpDemographicBreakdown parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GrpDemographicBreakdown parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpDemographicBreakdown
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GrpDemographicBreakdown> parser()
Returns
Type Description
Parser<GrpDemographicBreakdown>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAge()

public ForecastingGrpAgeEnum.ForecastingGrpAge getAge()

The GrpAge associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpAgeEnum.ForecastingGrpAge age = 5;

Returns
Type Description
ForecastingGrpAgeEnum.ForecastingGrpAge

The age.

getAgeValue()

public int getAgeValue()

The GrpAge associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpAgeEnum.ForecastingGrpAge age = 5;

Returns
Type Description
int

The enum numeric value on the wire for age.

getAvailableUnits()

public long getAvailableUnits()

The number of units matching the demographic breakdown that can be booked without affecting the delivery of any reserved line items.

optional int64 available_units = 1;

Returns
Type Description
long

The availableUnits.

getDefaultInstanceForType()

public GrpDemographicBreakdown getDefaultInstanceForType()
Returns
Type Description
GrpDemographicBreakdown

getGender()

public ForecastingGrpGenderEnum.ForecastingGrpGender getGender()

The GrpGender associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpGenderEnum.ForecastingGrpGender gender = 4;

Returns
Type Description
ForecastingGrpGenderEnum.ForecastingGrpGender

The gender.

getGenderValue()

public int getGenderValue()

The GrpGender associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpGenderEnum.ForecastingGrpGender gender = 4;

Returns
Type Description
int

The enum numeric value on the wire for gender.

getMatchedUnits()

public long getMatchedUnits()

The number of units matching the demographic and matching specified targeting and delivery settings.

optional int64 matched_units = 2;

Returns
Type Description
long

The matchedUnits.

getParserForType()

public Parser<GrpDemographicBreakdown> getParserForType()
Returns
Type Description
Parser<GrpDemographicBreakdown>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnitType()

public ForecastingGrpUnitEnum.ForecastingGrpUnit getUnitType()

The GrpUnitType associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpUnitEnum.ForecastingGrpUnit unit_type = 3;

Returns
Type Description
ForecastingGrpUnitEnum.ForecastingGrpUnit

The unitType.

getUnitTypeValue()

public int getUnitTypeValue()

The GrpUnitType associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpUnitEnum.ForecastingGrpUnit unit_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for unitType.

hasAge()

public boolean hasAge()

The GrpAge associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpAgeEnum.ForecastingGrpAge age = 5;

Returns
Type Description
boolean

Whether the age field is set.

hasAvailableUnits()

public boolean hasAvailableUnits()

The number of units matching the demographic breakdown that can be booked without affecting the delivery of any reserved line items.

optional int64 available_units = 1;

Returns
Type Description
boolean

Whether the availableUnits field is set.

hasGender()

public boolean hasGender()

The GrpGender associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpGenderEnum.ForecastingGrpGender gender = 4;

Returns
Type Description
boolean

Whether the gender field is set.

hasMatchedUnits()

public boolean hasMatchedUnits()

The number of units matching the demographic and matching specified targeting and delivery settings.

optional int64 matched_units = 2;

Returns
Type Description
boolean

Whether the matchedUnits field is set.

hasUnitType()

public boolean hasUnitType()

The GrpUnitType associated with this demographic breakdown.

optional .google.ads.admanager.v1.ForecastingGrpUnitEnum.ForecastingGrpUnit unit_type = 3;

Returns
Type Description
boolean

Whether the unitType field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GrpDemographicBreakdown.Builder newBuilderForType()
Returns
Type Description
GrpDemographicBreakdown.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected GrpDemographicBreakdown.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GrpDemographicBreakdown.Builder
Overrides

toBuilder()

public GrpDemographicBreakdown.Builder toBuilder()
Returns
Type Description
GrpDemographicBreakdown.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException