Class EarningsProductBreakdown (0.52.0)

public final class EarningsProductBreakdown extends GeneratedMessage 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 Fields

CHILD_PAYMENT_FIELD_NUMBER

public static final int CHILD_PAYMENT_FIELD_NUMBER
Field Value
Type Description
int

DEDUCTIONS_FIELD_NUMBER

public static final int DEDUCTIONS_FIELD_NUMBER
Field Value
Type Description
int

PARENT_PAYMENT_FIELD_NUMBER

public static final int PARENT_PAYMENT_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_TYPE_FIELD_NUMBER

public static final int PRODUCT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

TOTAL_EARNINGS_FIELD_NUMBER

public static final int TOTAL_EARNINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EarningsProductBreakdown getDefaultInstance()
Returns
Type Description
EarningsProductBreakdown

getDescriptor()

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

newBuilder()

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

newBuilder(EarningsProductBreakdown prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

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.

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

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.

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

getParserForType()

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

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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 EarningsProductBreakdown.Builder newBuilderForType()
Returns
Type Description
EarningsProductBreakdown.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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