Class EarningsProductBreakdown.Builder (0.52.0)

public static final class EarningsProductBreakdown.Builder extends GeneratedMessage.Builder<EarningsProductBreakdown.Builder> implements EarningsProductBreakdownOrBuilder

The product type breakdown of earnings for a given month between a parent and child publisher in MCM.

Protobuf type google.ads.admanager.v1.EarningsProductBreakdown

Static Methods

getDescriptor()

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

Methods

build()

public EarningsProductBreakdown build()
Returns
Type Description
EarningsProductBreakdown

buildPartial()

public EarningsProductBreakdown buildPartial()
Returns
Type Description
EarningsProductBreakdown

clear()

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

clearChildPayment()

public EarningsProductBreakdown.Builder clearChildPayment()

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Returns
Type Description
EarningsProductBreakdown.Builder

clearDeductions()

public EarningsProductBreakdown.Builder clearDeductions()

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Returns
Type Description
EarningsProductBreakdown.Builder

clearParentPayment()

public EarningsProductBreakdown.Builder clearParentPayment()

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Returns
Type Description
EarningsProductBreakdown.Builder

clearProductType()

public EarningsProductBreakdown.Builder clearProductType()

The syndication product type of the child's earnings in MCM.

optional .google.ads.admanager.v1.McmEarningsProductTypeEnum.McmEarningsProductType product_type = 1;

Returns
Type Description
EarningsProductBreakdown.Builder

This builder for chaining.

clearTotalEarnings()

public EarningsProductBreakdown.Builder clearTotalEarnings()

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Returns
Type Description
EarningsProductBreakdown.Builder

getChildPayment()

public Money getChildPayment()

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Returns
Type Description
com.google.type.Money

The childPayment.

getChildPaymentBuilder()

public Money.Builder getChildPaymentBuilder()

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Returns
Type Description
com.google.type.Money.Builder

getChildPaymentOrBuilder()

public MoneyOrBuilder getChildPaymentOrBuilder()

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Returns
Type Description
com.google.type.MoneyOrBuilder

getDeductions()

public Money getDeductions()

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Returns
Type Description
com.google.type.Money

The deductions.

getDeductionsBuilder()

public Money.Builder getDeductionsBuilder()

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Returns
Type Description
com.google.type.Money.Builder

getDeductionsOrBuilder()

public MoneyOrBuilder getDeductionsOrBuilder()

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Returns
Type Description
com.google.type.MoneyOrBuilder

getDefaultInstanceForType()

public EarningsProductBreakdown getDefaultInstanceForType()
Returns
Type Description
EarningsProductBreakdown

getDescriptorForType()

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

getParentPayment()

public Money getParentPayment()

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Returns
Type Description
com.google.type.Money

The parentPayment.

getParentPaymentBuilder()

public Money.Builder getParentPaymentBuilder()

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Returns
Type Description
com.google.type.Money.Builder

getParentPaymentOrBuilder()

public MoneyOrBuilder getParentPaymentOrBuilder()

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Returns
Type Description
com.google.type.MoneyOrBuilder

getProductType()

public McmEarningsProductTypeEnum.McmEarningsProductType getProductType()

The syndication product type of the child's earnings in MCM.

optional .google.ads.admanager.v1.McmEarningsProductTypeEnum.McmEarningsProductType product_type = 1;

Returns
Type Description
McmEarningsProductTypeEnum.McmEarningsProductType

The productType.

getProductTypeValue()

public int getProductTypeValue()

The syndication product type of the child's earnings in MCM.

optional .google.ads.admanager.v1.McmEarningsProductTypeEnum.McmEarningsProductType product_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for productType.

getTotalEarnings()

public Money getTotalEarnings()

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Returns
Type Description
com.google.type.Money

The totalEarnings.

getTotalEarningsBuilder()

public Money.Builder getTotalEarningsBuilder()

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Returns
Type Description
com.google.type.Money.Builder

getTotalEarningsOrBuilder()

public MoneyOrBuilder getTotalEarningsOrBuilder()

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Returns
Type Description
com.google.type.MoneyOrBuilder

hasChildPayment()

public boolean hasChildPayment()

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Returns
Type Description
boolean

Whether the childPayment field is set.

hasDeductions()

public boolean hasDeductions()

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Returns
Type Description
boolean

Whether the deductions field is set.

hasParentPayment()

public boolean hasParentPayment()

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Returns
Type Description
boolean

Whether the parentPayment field is set.

hasProductType()

public boolean hasProductType()

The syndication product type of the child's earnings in MCM.

optional .google.ads.admanager.v1.McmEarningsProductTypeEnum.McmEarningsProductType product_type = 1;

Returns
Type Description
boolean

Whether the productType field is set.

hasTotalEarnings()

public boolean hasTotalEarnings()

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Returns
Type Description
boolean

Whether the totalEarnings field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChildPayment(Money value)

public EarningsProductBreakdown.Builder mergeChildPayment(Money value)

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

mergeDeductions(Money value)

public EarningsProductBreakdown.Builder mergeDeductions(Money value)

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

mergeFrom(EarningsProductBreakdown other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParentPayment(Money value)

public EarningsProductBreakdown.Builder mergeParentPayment(Money value)

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

mergeTotalEarnings(Money value)

public EarningsProductBreakdown.Builder mergeTotalEarnings(Money value)

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

setChildPayment(Money value)

public EarningsProductBreakdown.Builder setChildPayment(Money value)

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

setChildPayment(Money.Builder builderForValue)

public EarningsProductBreakdown.Builder setChildPayment(Money.Builder builderForValue)

The portion of the total earnings for the specified product type paid to the child publisher.

optional .google.type.Money child_payment = 4;

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
EarningsProductBreakdown.Builder

setDeductions(Money value)

public EarningsProductBreakdown.Builder setDeductions(Money value)

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

setDeductions(Money.Builder builderForValue)

public EarningsProductBreakdown.Builder setDeductions(Money.Builder builderForValue)

The deductions for the specified product type for the month due to spam.

optional .google.type.Money deductions = 5;

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
EarningsProductBreakdown.Builder

setParentPayment(Money value)

public EarningsProductBreakdown.Builder setParentPayment(Money value)

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

setParentPayment(Money.Builder builderForValue)

public EarningsProductBreakdown.Builder setParentPayment(Money.Builder builderForValue)

The portion of the total earnings for the specified product type paid to the parent publisher.

optional .google.type.Money parent_payment = 3;

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
EarningsProductBreakdown.Builder

setProductType(McmEarningsProductTypeEnum.McmEarningsProductType value)

public EarningsProductBreakdown.Builder setProductType(McmEarningsProductTypeEnum.McmEarningsProductType value)

The syndication product type of the child's earnings in MCM.

optional .google.ads.admanager.v1.McmEarningsProductTypeEnum.McmEarningsProductType product_type = 1;

Parameter
Name Description
value McmEarningsProductTypeEnum.McmEarningsProductType

The productType to set.

Returns
Type Description
EarningsProductBreakdown.Builder

This builder for chaining.

setProductTypeValue(int value)

public EarningsProductBreakdown.Builder setProductTypeValue(int value)

The syndication product type of the child's earnings in MCM.

optional .google.ads.admanager.v1.McmEarningsProductTypeEnum.McmEarningsProductType product_type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
EarningsProductBreakdown.Builder

This builder for chaining.

setTotalEarnings(Money value)

public EarningsProductBreakdown.Builder setTotalEarnings(Money value)

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
EarningsProductBreakdown.Builder

setTotalEarnings(Money.Builder builderForValue)

public EarningsProductBreakdown.Builder setTotalEarnings(Money.Builder builderForValue)

The total earnings for the specified product type for the month.

optional .google.type.Money total_earnings = 2;

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
EarningsProductBreakdown.Builder