Class McmEarnings.Builder (0.52.0)

public static final class McmEarnings.Builder extends GeneratedMessage.Builder<McmEarnings.Builder> implements McmEarningsOrBuilder

The earnings for a given month between a parent and child publisher in MCM

Protobuf type google.ads.admanager.v1.McmEarnings

Static Methods

getDescriptor()

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

Methods

addAllEarningsProductBreakdown(Iterable<? extends EarningsProductBreakdown> values)

public McmEarnings.Builder addAllEarningsProductBreakdown(Iterable<? extends EarningsProductBreakdown> values)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.EarningsProductBreakdown>
Returns
Type Description
McmEarnings.Builder

addEarningsProductBreakdown(EarningsProductBreakdown value)

public McmEarnings.Builder addEarningsProductBreakdown(EarningsProductBreakdown value)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EarningsProductBreakdown
Returns
Type Description
McmEarnings.Builder

addEarningsProductBreakdown(EarningsProductBreakdown.Builder builderForValue)

public McmEarnings.Builder addEarningsProductBreakdown(EarningsProductBreakdown.Builder builderForValue)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EarningsProductBreakdown.Builder
Returns
Type Description
McmEarnings.Builder

addEarningsProductBreakdown(int index, EarningsProductBreakdown value)

public McmEarnings.Builder addEarningsProductBreakdown(int index, EarningsProductBreakdown value)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EarningsProductBreakdown
Returns
Type Description
McmEarnings.Builder

addEarningsProductBreakdown(int index, EarningsProductBreakdown.Builder builderForValue)

public McmEarnings.Builder addEarningsProductBreakdown(int index, EarningsProductBreakdown.Builder builderForValue)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EarningsProductBreakdown.Builder
Returns
Type Description
McmEarnings.Builder

addEarningsProductBreakdownBuilder()

public EarningsProductBreakdown.Builder addEarningsProductBreakdownBuilder()

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EarningsProductBreakdown.Builder

addEarningsProductBreakdownBuilder(int index)

public EarningsProductBreakdown.Builder addEarningsProductBreakdownBuilder(int index)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EarningsProductBreakdown.Builder

build()

public McmEarnings build()
Returns
Type Description
McmEarnings

buildPartial()

public McmEarnings buildPartial()
Returns
Type Description
McmEarnings

clear()

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

clearChild()

public McmEarnings.Builder clearChild()

Output only. The resource name of the ChildPublisher's Ad Manager network in the MCM relationship. Format: networks/{network_code}

string child = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

clearChildDisplayName()

public McmEarnings.Builder clearChildDisplayName()

Output only. The name of the child publisher in the MCM relationship.

optional string child_display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

clearChildPayment()

public McmEarnings.Builder clearChildPayment()

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

clearChildPublisher()

public McmEarnings.Builder clearChildPublisher()

Output only. The resource name of the child publisher in the MCM relationship. Format: "networks/{network_code}/childPublishers/{child_publisher_id}"

optional string child_publisher = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

clearDeductions()

public McmEarnings.Builder clearDeductions()

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

clearDelegationType()

public McmEarnings.Builder clearDelegationType()

Output only. The current type of MCM delegation between the parent and child publisher.

optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

clearEarningsProductBreakdown()

public McmEarnings.Builder clearEarningsProductBreakdown()

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

clearMonth()

public McmEarnings.Builder clearMonth()

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

clearParent()

public McmEarnings.Builder clearParent()

Output only. The parent publisher in the MCM relationship. Format: networks/{network_code}

string parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

clearParentDisplayName()

public McmEarnings.Builder clearParentDisplayName()

Output only. The name of the parent publisher.

optional string parent_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

clearParentPayment()

public McmEarnings.Builder clearParentPayment()

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

clearTotalEarnings()

public McmEarnings.Builder clearTotalEarnings()

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McmEarnings.Builder

getChild()

public String getChild()

Output only. The resource name of the ChildPublisher's Ad Manager network in the MCM relationship. Format: networks/{network_code}

string child = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The child.

getChildBytes()

public ByteString getChildBytes()

Output only. The resource name of the ChildPublisher's Ad Manager network in the MCM relationship. Format: networks/{network_code}

string child = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for child.

getChildDisplayName()

public String getChildDisplayName()

Output only. The name of the child publisher in the MCM relationship.

optional string child_display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The childDisplayName.

getChildDisplayNameBytes()

public ByteString getChildDisplayNameBytes()

Output only. The name of the child publisher in the MCM relationship.

optional string child_display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for childDisplayName.

getChildPayment()

public Money getChildPayment()

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The childPayment.

getChildPaymentBuilder()

public Money.Builder getChildPaymentBuilder()

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getChildPaymentOrBuilder()

public MoneyOrBuilder getChildPaymentOrBuilder()

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

getChildPublisher()

public String getChildPublisher()

Output only. The resource name of the child publisher in the MCM relationship. Format: "networks/{network_code}/childPublishers/{child_publisher_id}"

optional string child_publisher = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The childPublisher.

getChildPublisherBytes()

public ByteString getChildPublisherBytes()

Output only. The resource name of the child publisher in the MCM relationship. Format: "networks/{network_code}/childPublishers/{child_publisher_id}"

optional string child_publisher = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for childPublisher.

getDeductions()

public Money getDeductions()

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The deductions.

getDeductionsBuilder()

public Money.Builder getDeductionsBuilder()

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getDeductionsOrBuilder()

public MoneyOrBuilder getDeductionsOrBuilder()

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

getDefaultInstanceForType()

public McmEarnings getDefaultInstanceForType()
Returns
Type Description
McmEarnings

getDelegationType()

public DelegationTypeEnum.DelegationType getDelegationType()

Output only. The current type of MCM delegation between the parent and child publisher.

optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DelegationTypeEnum.DelegationType

The delegationType.

getDelegationTypeValue()

public int getDelegationTypeValue()

Output only. The current type of MCM delegation between the parent and child publisher.

optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for delegationType.

getDescriptorForType()

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

getEarningsProductBreakdown(int index)

public EarningsProductBreakdown getEarningsProductBreakdown(int index)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EarningsProductBreakdown

getEarningsProductBreakdownBuilder(int index)

public EarningsProductBreakdown.Builder getEarningsProductBreakdownBuilder(int index)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EarningsProductBreakdown.Builder

getEarningsProductBreakdownBuilderList()

public List<EarningsProductBreakdown.Builder> getEarningsProductBreakdownBuilderList()

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getEarningsProductBreakdownCount()

public int getEarningsProductBreakdownCount()

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getEarningsProductBreakdownList()

public List<EarningsProductBreakdown> getEarningsProductBreakdownList()

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<EarningsProductBreakdown>

getEarningsProductBreakdownOrBuilder(int index)

public EarningsProductBreakdownOrBuilder getEarningsProductBreakdownOrBuilder(int index)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EarningsProductBreakdownOrBuilder

getEarningsProductBreakdownOrBuilderList()

public List<? extends EarningsProductBreakdownOrBuilder> getEarningsProductBreakdownOrBuilderList()

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.EarningsProductBreakdownOrBuilder>

getMonth()

public Date getMonth()

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Date

The month.

getMonthBuilder()

public Date.Builder getMonthBuilder()

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getMonthOrBuilder()

public DateOrBuilder getMonthOrBuilder()

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.DateOrBuilder

getParent()

public String getParent()

Output only. The parent publisher in the MCM relationship. Format: networks/{network_code}

string parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Output only. The parent publisher in the MCM relationship. Format: networks/{network_code}

string parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParentDisplayName()

public String getParentDisplayName()

Output only. The name of the parent publisher.

optional string parent_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The parentDisplayName.

getParentDisplayNameBytes()

public ByteString getParentDisplayNameBytes()

Output only. The name of the parent publisher.

optional string parent_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for parentDisplayName.

getParentPayment()

public Money getParentPayment()

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The parentPayment.

getParentPaymentBuilder()

public Money.Builder getParentPaymentBuilder()

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getParentPaymentOrBuilder()

public MoneyOrBuilder getParentPaymentOrBuilder()

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

getTotalEarnings()

public Money getTotalEarnings()

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The totalEarnings.

getTotalEarningsBuilder()

public Money.Builder getTotalEarningsBuilder()

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getTotalEarningsOrBuilder()

public MoneyOrBuilder getTotalEarningsOrBuilder()

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

hasChildDisplayName()

public boolean hasChildDisplayName()

Output only. The name of the child publisher in the MCM relationship.

optional string child_display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the childDisplayName field is set.

hasChildPayment()

public boolean hasChildPayment()

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the childPayment field is set.

hasChildPublisher()

public boolean hasChildPublisher()

Output only. The resource name of the child publisher in the MCM relationship. Format: "networks/{network_code}/childPublishers/{child_publisher_id}"

optional string child_publisher = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the childPublisher field is set.

hasDeductions()

public boolean hasDeductions()

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deductions field is set.

hasDelegationType()

public boolean hasDelegationType()

Output only. The current type of MCM delegation between the parent and child publisher.

optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the delegationType field is set.

hasMonth()

public boolean hasMonth()

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the month field is set.

hasParentDisplayName()

public boolean hasParentDisplayName()

Output only. The name of the parent publisher.

optional string parent_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the parentDisplayName field is set.

hasParentPayment()

public boolean hasParentPayment()

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the parentPayment field is set.

hasTotalEarnings()

public boolean hasTotalEarnings()

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 McmEarnings.Builder mergeChildPayment(Money value)

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

mergeDeductions(Money value)

public McmEarnings.Builder mergeDeductions(Money value)

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

mergeFrom(McmEarnings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMonth(Date value)

public McmEarnings.Builder mergeMonth(Date value)

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
McmEarnings.Builder

mergeParentPayment(Money value)

public McmEarnings.Builder mergeParentPayment(Money value)

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

mergeTotalEarnings(Money value)

public McmEarnings.Builder mergeTotalEarnings(Money value)

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

removeEarningsProductBreakdown(int index)

public McmEarnings.Builder removeEarningsProductBreakdown(int index)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
McmEarnings.Builder

setChild(String value)

public McmEarnings.Builder setChild(String value)

Output only. The resource name of the ChildPublisher's Ad Manager network in the MCM relationship. Format: networks/{network_code}

string child = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The child to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setChildBytes(ByteString value)

public McmEarnings.Builder setChildBytes(ByteString value)

Output only. The resource name of the ChildPublisher's Ad Manager network in the MCM relationship. Format: networks/{network_code}

string child = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for child to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setChildDisplayName(String value)

public McmEarnings.Builder setChildDisplayName(String value)

Output only. The name of the child publisher in the MCM relationship.

optional string child_display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The childDisplayName to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setChildDisplayNameBytes(ByteString value)

public McmEarnings.Builder setChildDisplayNameBytes(ByteString value)

Output only. The name of the child publisher in the MCM relationship.

optional string child_display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for childDisplayName to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setChildPayment(Money value)

public McmEarnings.Builder setChildPayment(Money value)

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setChildPayment(Money.Builder builderForValue)

public McmEarnings.Builder setChildPayment(Money.Builder builderForValue)

Output only. The portion of the total earnings paid to the child publisher.

optional .google.type.Money child_payment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setChildPublisher(String value)

public McmEarnings.Builder setChildPublisher(String value)

Output only. The resource name of the child publisher in the MCM relationship. Format: "networks/{network_code}/childPublishers/{child_publisher_id}"

optional string child_publisher = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The childPublisher to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setChildPublisherBytes(ByteString value)

public McmEarnings.Builder setChildPublisherBytes(ByteString value)

Output only. The resource name of the child publisher in the MCM relationship. Format: "networks/{network_code}/childPublishers/{child_publisher_id}"

optional string child_publisher = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for childPublisher to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setDeductions(Money value)

public McmEarnings.Builder setDeductions(Money value)

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setDeductions(Money.Builder builderForValue)

public McmEarnings.Builder setDeductions(Money.Builder builderForValue)

Output only. The deductions for the month due to spam in micro units. Null for earnings prior to August 2020.

optional .google.type.Money deductions = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setDelegationType(DelegationTypeEnum.DelegationType value)

public McmEarnings.Builder setDelegationType(DelegationTypeEnum.DelegationType value)

Output only. The current type of MCM delegation between the parent and child publisher.

optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DelegationTypeEnum.DelegationType

The delegationType to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setDelegationTypeValue(int value)

public McmEarnings.Builder setDelegationTypeValue(int value)

Output only. The current type of MCM delegation between the parent and child publisher.

optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setEarningsProductBreakdown(int index, EarningsProductBreakdown value)

public McmEarnings.Builder setEarningsProductBreakdown(int index, EarningsProductBreakdown value)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EarningsProductBreakdown
Returns
Type Description
McmEarnings.Builder

setEarningsProductBreakdown(int index, EarningsProductBreakdown.Builder builderForValue)

public McmEarnings.Builder setEarningsProductBreakdown(int index, EarningsProductBreakdown.Builder builderForValue)

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

repeated .google.ads.admanager.v1.EarningsProductBreakdown earnings_product_breakdown = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EarningsProductBreakdown.Builder
Returns
Type Description
McmEarnings.Builder

setMonth(Date value)

public McmEarnings.Builder setMonth(Date value)

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
McmEarnings.Builder

setMonth(Date.Builder builderForValue)

public McmEarnings.Builder setMonth(Date.Builder builderForValue)

Output only. The year and month that the MCM earnings data applies to. The date will be specified as the first of the month.

optional .google.type.Date month = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
McmEarnings.Builder

setParent(String value)

public McmEarnings.Builder setParent(String value)

Output only. The parent publisher in the MCM relationship. Format: networks/{network_code}

string parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setParentBytes(ByteString value)

public McmEarnings.Builder setParentBytes(ByteString value)

Output only. The parent publisher in the MCM relationship. Format: networks/{network_code}

string parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setParentDisplayName(String value)

public McmEarnings.Builder setParentDisplayName(String value)

Output only. The name of the parent publisher.

optional string parent_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The parentDisplayName to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setParentDisplayNameBytes(ByteString value)

public McmEarnings.Builder setParentDisplayNameBytes(ByteString value)

Output only. The name of the parent publisher.

optional string parent_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for parentDisplayName to set.

Returns
Type Description
McmEarnings.Builder

This builder for chaining.

setParentPayment(Money value)

public McmEarnings.Builder setParentPayment(Money value)

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setParentPayment(Money.Builder builderForValue)

public McmEarnings.Builder setParentPayment(Money.Builder builderForValue)

Output only. The portion of the total earnings paid to the parent publisher.

optional .google.type.Money parent_payment = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setTotalEarnings(Money value)

public McmEarnings.Builder setTotalEarnings(Money value)

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setTotalEarnings(Money.Builder builderForValue)

public McmEarnings.Builder setTotalEarnings(Money.Builder builderForValue)

Output only. The total earnings for the month.

optional .google.type.Money total_earnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

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