Class AlternativeUnitTypeForecast.Builder (0.62.0)

public static final class AlternativeUnitTypeForecast.Builder extends GeneratedMessage.Builder<AlternativeUnitTypeForecast.Builder> implements AlternativeUnitTypeForecastOrBuilder

Views of this forecast, with alternative unit types.

Protobuf type google.ads.admanager.v1.AlternativeUnitTypeForecast

Static Methods

getDescriptor()

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

Methods

build()

public AlternativeUnitTypeForecast build()
Returns
Type Description
AlternativeUnitTypeForecast

buildPartial()

public AlternativeUnitTypeForecast buildPartial()
Returns
Type Description
AlternativeUnitTypeForecast

clear()

public AlternativeUnitTypeForecast.Builder clear()
Returns
Type Description
AlternativeUnitTypeForecast.Builder
Overrides

clearAvailableUnits()

public AlternativeUnitTypeForecast.Builder clearAvailableUnits()

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

optional int64 available_units = 3;

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

clearMatchedUnits()

public AlternativeUnitTypeForecast.Builder clearMatchedUnits()

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

optional int64 matched_units = 2;

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

clearPossibleUnits()

public AlternativeUnitTypeForecast.Builder clearPossibleUnits()

The number of units that can be booked without affecting the delivery of any reserved line items or lower priority line items.

optional int64 possible_units = 4;

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

clearUnitType()

public AlternativeUnitTypeForecast.Builder clearUnitType()

The alternative unit type being presented.

optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 1;

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

getAvailableUnits()

public long getAvailableUnits()

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

optional int64 available_units = 3;

Returns
Type Description
long

The availableUnits.

getDefaultInstanceForType()

public AlternativeUnitTypeForecast getDefaultInstanceForType()
Returns
Type Description
AlternativeUnitTypeForecast

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMatchedUnits()

public long getMatchedUnits()

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

optional int64 matched_units = 2;

Returns
Type Description
long

The matchedUnits.

getPossibleUnits()

public long getPossibleUnits()

The number of units that can be booked without affecting the delivery of any reserved line items or lower priority line items.

optional int64 possible_units = 4;

Returns
Type Description
long

The possibleUnits.

getUnitType()

public UnitTypeEnum.UnitType getUnitType()

The alternative unit type being presented.

optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 1;

Returns
Type Description
UnitTypeEnum.UnitType

The unitType.

getUnitTypeValue()

public int getUnitTypeValue()

The alternative unit type being presented.

optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for unitType.

hasAvailableUnits()

public boolean hasAvailableUnits()

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

optional int64 available_units = 3;

Returns
Type Description
boolean

Whether the availableUnits field is set.

hasMatchedUnits()

public boolean hasMatchedUnits()

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

optional int64 matched_units = 2;

Returns
Type Description
boolean

Whether the matchedUnits field is set.

hasPossibleUnits()

public boolean hasPossibleUnits()

The number of units that can be booked without affecting the delivery of any reserved line items or lower priority line items.

optional int64 possible_units = 4;

Returns
Type Description
boolean

Whether the possibleUnits field is set.

hasUnitType()

public boolean hasUnitType()

The alternative unit type being presented.

optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 1;

Returns
Type Description
boolean

Whether the unitType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlternativeUnitTypeForecast other)

public AlternativeUnitTypeForecast.Builder mergeFrom(AlternativeUnitTypeForecast other)
Parameter
Name Description
other AlternativeUnitTypeForecast
Returns
Type Description
AlternativeUnitTypeForecast.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlternativeUnitTypeForecast.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlternativeUnitTypeForecast.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AlternativeUnitTypeForecast.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AlternativeUnitTypeForecast.Builder
Overrides

setAvailableUnits(long value)

public AlternativeUnitTypeForecast.Builder setAvailableUnits(long value)

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

optional int64 available_units = 3;

Parameter
Name Description
value long

The availableUnits to set.

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

setMatchedUnits(long value)

public AlternativeUnitTypeForecast.Builder setMatchedUnits(long value)

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

optional int64 matched_units = 2;

Parameter
Name Description
value long

The matchedUnits to set.

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

setPossibleUnits(long value)

public AlternativeUnitTypeForecast.Builder setPossibleUnits(long value)

The number of units that can be booked without affecting the delivery of any reserved line items or lower priority line items.

optional int64 possible_units = 4;

Parameter
Name Description
value long

The possibleUnits to set.

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

setUnitType(UnitTypeEnum.UnitType value)

public AlternativeUnitTypeForecast.Builder setUnitType(UnitTypeEnum.UnitType value)

The alternative unit type being presented.

optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 1;

Parameter
Name Description
value UnitTypeEnum.UnitType

The unitType to set.

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.

setUnitTypeValue(int value)

public AlternativeUnitTypeForecast.Builder setUnitTypeValue(int value)

The alternative unit type being presented.

optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for unitType to set.

Returns
Type Description
AlternativeUnitTypeForecast.Builder

This builder for chaining.