public static final class GrpDemographicBreakdown.Builder extends GeneratedMessage.Builder<GrpDemographicBreakdown.Builder> implements GrpDemographicBreakdownOrBuilderGRP forecast breakdown counts associated with a gender and age demographic.
Protobuf type google.ads.admanager.v1.GrpDemographicBreakdown
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GrpDemographicBreakdown.BuilderImplements
GrpDemographicBreakdownOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GrpDemographicBreakdown build()| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown |
|
buildPartial()
public GrpDemographicBreakdown buildPartial()| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown |
|
clear()
public GrpDemographicBreakdown.Builder clear()| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
|
clearAge()
public GrpDemographicBreakdown.Builder clearAge()The GrpAge associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpAgeEnum.ForecastingGrpAge age = 5;
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
clearAvailableUnits()
public GrpDemographicBreakdown.Builder clearAvailableUnits()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 |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
clearGender()
public GrpDemographicBreakdown.Builder clearGender()The GrpGender associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpGenderEnum.ForecastingGrpGender gender = 4;
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
clearMatchedUnits()
public GrpDemographicBreakdown.Builder clearMatchedUnits()The number of units matching the demographic and matching specified targeting and delivery settings.
optional int64 matched_units = 2;
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
clearUnitType()
public GrpDemographicBreakdown.Builder clearUnitType()The GrpUnitType associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpUnitEnum.ForecastingGrpUnit unit_type = 3;
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GrpDemographicBreakdown other)
public GrpDemographicBreakdown.Builder mergeFrom(GrpDemographicBreakdown other)| Parameter | |
|---|---|
| Name | Description |
other |
GrpDemographicBreakdown |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GrpDemographicBreakdown.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GrpDemographicBreakdown.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
|
setAge(ForecastingGrpAgeEnum.ForecastingGrpAge value)
public GrpDemographicBreakdown.Builder setAge(ForecastingGrpAgeEnum.ForecastingGrpAge value)The GrpAge associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpAgeEnum.ForecastingGrpAge age = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ForecastingGrpAgeEnum.ForecastingGrpAgeThe age to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
setAgeValue(int value)
public GrpDemographicBreakdown.Builder setAgeValue(int value)The GrpAge associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpAgeEnum.ForecastingGrpAge age = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for age to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
setAvailableUnits(long value)
public GrpDemographicBreakdown.Builder setAvailableUnits(long value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe availableUnits to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
setGender(ForecastingGrpGenderEnum.ForecastingGrpGender value)
public GrpDemographicBreakdown.Builder setGender(ForecastingGrpGenderEnum.ForecastingGrpGender value)The GrpGender associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpGenderEnum.ForecastingGrpGender gender = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ForecastingGrpGenderEnum.ForecastingGrpGenderThe gender to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
setGenderValue(int value)
public GrpDemographicBreakdown.Builder setGenderValue(int value)The GrpGender associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpGenderEnum.ForecastingGrpGender gender = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for gender to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
setMatchedUnits(long value)
public GrpDemographicBreakdown.Builder setMatchedUnits(long value)The number of units matching the demographic and matching specified targeting and delivery settings.
optional int64 matched_units = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe matchedUnits to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
setUnitType(ForecastingGrpUnitEnum.ForecastingGrpUnit value)
public GrpDemographicBreakdown.Builder setUnitType(ForecastingGrpUnitEnum.ForecastingGrpUnit value)The GrpUnitType associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpUnitEnum.ForecastingGrpUnit unit_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ForecastingGrpUnitEnum.ForecastingGrpUnitThe unitType to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |
setUnitTypeValue(int value)
public GrpDemographicBreakdown.Builder setUnitTypeValue(int value)The GrpUnitType associated with this demographic breakdown.
optional .google.ads.admanager.v1.ForecastingGrpUnitEnum.ForecastingGrpUnit unit_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for unitType to set. |
| Returns | |
|---|---|
| Type | Description |
GrpDemographicBreakdown.Builder |
This builder for chaining. |