public static final class PrivateOffer.SingleProductOffer.RevenueShare.Builder extends GeneratedMessage.Builder<PrivateOffer.SingleProductOffer.RevenueShare.Builder> implements PrivateOffer.SingleProductOffer.RevenueShareOrBuilderRevenue 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PrivateOffer.SingleProductOffer.RevenueShare.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PrivateOffer.SingleProductOffer.RevenueShare build()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare |
|
buildPartial()
public PrivateOffer.SingleProductOffer.RevenueShare buildPartial()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare |
|
clear()
public PrivateOffer.SingleProductOffer.RevenueShare.Builder clear()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
clearCurrentTermVendorNetRevenuePercent()
public PrivateOffer.SingleProductOffer.RevenueShare.Builder clearCurrentTermVendorNetRevenuePercent()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 |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
clearRenewalTermVendorNetRevenuePercent()
public PrivateOffer.SingleProductOffer.RevenueShare.Builder clearRenewalTermVendorNetRevenuePercent()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 |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
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. |
getCurrentTermVendorNetRevenuePercentBuilder()
public Decimal.Builder getCurrentTermVendorNetRevenuePercentBuilder()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.Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getRenewalTermVendorNetRevenuePercentBuilder()
public Decimal.Builder getRenewalTermVendorNetRevenuePercentBuilder()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.Builder |
|
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 |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCurrentTermVendorNetRevenuePercent(Decimal value)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder mergeCurrentTermVendorNetRevenuePercent(Decimal value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
mergeFrom(PrivateOffer.SingleProductOffer.RevenueShare other)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder mergeFrom(PrivateOffer.SingleProductOffer.RevenueShare other)| Parameter | |
|---|---|
| Name | Description |
other |
PrivateOffer.SingleProductOffer.RevenueShare |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
mergeRenewalTermVendorNetRevenuePercent(Decimal value)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder mergeRenewalTermVendorNetRevenuePercent(Decimal value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
setCurrentTermVendorNetRevenuePercent(Decimal value)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder setCurrentTermVendorNetRevenuePercent(Decimal value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
setCurrentTermVendorNetRevenuePercent(Decimal.Builder builderForValue)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder setCurrentTermVendorNetRevenuePercent(Decimal.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Decimal.Builder |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
setRenewalTermVendorNetRevenuePercent(Decimal value)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder setRenewalTermVendorNetRevenuePercent(Decimal value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|
setRenewalTermVendorNetRevenuePercent(Decimal.Builder builderForValue)
public PrivateOffer.SingleProductOffer.RevenueShare.Builder setRenewalTermVendorNetRevenuePercent(Decimal.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Decimal.Builder |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.RevenueShare.Builder |
|