Class PrivateOffer.SingleProductOffer.RevenueShare (0.1.0)

public static final class PrivateOffer.SingleProductOffer.RevenueShare extends GeneratedMessage implements PrivateOffer.SingleProductOffer.RevenueShareOrBuilder

Revenue Share information for a Private Offer. For more details about the revenue share, including how the value is determined, see https://docs.cloud.google.com/marketplace/docs/partners/revenue-share-scenarios.

Not included for PRIVATE_OFFER_VIEW_BASIC, or for DRAFT private offers.

For non-draft private offers, these fields are populated based on the following:

  • Offers published after April 20, 2025 will always have revenue share fields populated.
  • Offers published on or before April 20, 2025 will only have revenue share fields populated if they were associated with an active, unexpired order on that date.

Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.RevenueShare

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > PrivateOffer.SingleProductOffer.RevenueShare

Static Fields

CURRENT_TERM_VENDOR_NET_REVENUE_PERCENT_FIELD_NUMBER

public static final int CURRENT_TERM_VENDOR_NET_REVENUE_PERCENT_FIELD_NUMBER
Field Value
Type Description
int

RENEWAL_TERM_VENDOR_NET_REVENUE_PERCENT_FIELD_NUMBER

public static final int RENEWAL_TERM_VENDOR_NET_REVENUE_PERCENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PrivateOffer.SingleProductOffer.RevenueShare getDefaultInstance()
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare

getDescriptor()

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

newBuilder()

public static PrivateOffer.SingleProductOffer.RevenueShare.Builder newBuilder()
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare.Builder

newBuilder(PrivateOffer.SingleProductOffer.RevenueShare prototype)

public static PrivateOffer.SingleProductOffer.RevenueShare.Builder newBuilder(PrivateOffer.SingleProductOffer.RevenueShare prototype)
Parameter
Name Description
prototype PrivateOffer.SingleProductOffer.RevenueShare
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare.Builder

parseDelimitedFrom(InputStream input)

public static PrivateOffer.SingleProductOffer.RevenueShare parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.SingleProductOffer.RevenueShare parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.SingleProductOffer.RevenueShare parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PrivateOffer.SingleProductOffer.RevenueShare> parser()
Returns
Type Description
Parser<RevenueShare>

Methods

equals(Object obj)

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

getCurrentTermVendorNetRevenuePercent()

public Decimal getCurrentTermVendorNetRevenuePercent()

Output only. The revenue share currently in effect.

The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue. .

.google.type.Decimal current_term_vendor_net_revenue_percent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Decimal

The currentTermVendorNetRevenuePercent.

getCurrentTermVendorNetRevenuePercentOrBuilder()

public DecimalOrBuilder getCurrentTermVendorNetRevenuePercentOrBuilder()

Output only. The revenue share currently in effect.

The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue. .

.google.type.Decimal current_term_vendor_net_revenue_percent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.DecimalOrBuilder

getDefaultInstanceForType()

public PrivateOffer.SingleProductOffer.RevenueShare getDefaultInstanceForType()
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare

getParserForType()

public Parser<PrivateOffer.SingleProductOffer.RevenueShare> getParserForType()
Returns
Type Description
Parser<RevenueShare>
Overrides

getRenewalTermVendorNetRevenuePercent()

public Decimal getRenewalTermVendorNetRevenuePercent()

Output only. The expected revenue share for the renewal term. Not included if the offer does not have renewal terms.

The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue after renewal. .

.google.type.Decimal renewal_term_vendor_net_revenue_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Decimal

The renewalTermVendorNetRevenuePercent.

getRenewalTermVendorNetRevenuePercentOrBuilder()

public DecimalOrBuilder getRenewalTermVendorNetRevenuePercentOrBuilder()

Output only. The expected revenue share for the renewal term. Not included if the offer does not have renewal terms.

The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue after renewal. .

.google.type.Decimal renewal_term_vendor_net_revenue_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.DecimalOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCurrentTermVendorNetRevenuePercent()

public boolean hasCurrentTermVendorNetRevenuePercent()

Output only. The revenue share currently in effect.

The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue. .

.google.type.Decimal current_term_vendor_net_revenue_percent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the currentTermVendorNetRevenuePercent field is set.

hasRenewalTermVendorNetRevenuePercent()

public boolean hasRenewalTermVendorNetRevenuePercent()

Output only. The expected revenue share for the renewal term. Not included if the offer does not have renewal terms.

The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue after renewal. .

.google.type.Decimal renewal_term_vendor_net_revenue_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the renewalTermVendorNetRevenuePercent 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 PrivateOffer.SingleProductOffer.RevenueShare.Builder newBuilderForType()
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PrivateOffer.SingleProductOffer.RevenueShare.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare.Builder
Overrides

toBuilder()

public PrivateOffer.SingleProductOffer.RevenueShare.Builder toBuilder()
Returns
Type Description
PrivateOffer.SingleProductOffer.RevenueShare.Builder

writeTo(CodedOutputStream output)

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