public static interface PrivateOffer.SingleProductOffer.PriceModel.UsageOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDefaultDiscountPercent()
public abstract Decimal getDefaultDiscountPercent()Optional. The default discount percent for usage SKUs. An unset default discount percent is equivalent to 0 (no discount).
Must be between 0 and 100 inclusive, with precision up to 2 decimal
places. If this field is set, then the allowed pattern for 'value'
is ^([0-9]{1,2}(\\.\\d{1,2})?|100(\\.0{1,2})?)$.
Examples of valid values: "0", "100.0", "12.34", "40.0".
Example of invalid values: ".3", "-1", "100.1", "12.345", "+12", "".
.google.type.Decimal default_discount_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Decimal |
The defaultDiscountPercent. |
getDefaultDiscountPercentOrBuilder()
public abstract DecimalOrBuilder getDefaultDiscountPercentOrBuilder()Optional. The default discount percent for usage SKUs. An unset default discount percent is equivalent to 0 (no discount).
Must be between 0 and 100 inclusive, with precision up to 2 decimal
places. If this field is set, then the allowed pattern for 'value'
is ^([0-9]{1,2}(\\.\\d{1,2})?|100(\\.0{1,2})?)$.
Examples of valid values: "0", "100.0", "12.34", "40.0".
Example of invalid values: ".3", "-1", "100.1", "12.345", "+12", "".
.google.type.Decimal default_discount_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DecimalOrBuilder |
|
getSkuDiscounts(int index)
public abstract PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount getSkuDiscounts(int index) Optional. The discounts for the specific SKUs that override the
default_discount_percent.
repeated .google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount sku_discounts = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount |
|
getSkuDiscountsCount()
public abstract int getSkuDiscountsCount() Optional. The discounts for the specific SKUs that override the
default_discount_percent.
repeated .google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount sku_discounts = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSkuDiscountsList()
public abstract List<PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount> getSkuDiscountsList() Optional. The discounts for the specific SKUs that override the
default_discount_percent.
repeated .google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount sku_discounts = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<SkuDiscount> |
|
getSkuDiscountsOrBuilder(int index)
public abstract PrivateOffer.SingleProductOffer.PriceModel.SkuDiscountOrBuilder getSkuDiscountsOrBuilder(int index) Optional. The discounts for the specific SKUs that override the
default_discount_percent.
repeated .google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount sku_discounts = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.PriceModel.SkuDiscountOrBuilder |
|
getSkuDiscountsOrBuilderList()
public abstract List<? extends PrivateOffer.SingleProductOffer.PriceModel.SkuDiscountOrBuilder> getSkuDiscountsOrBuilderList() Optional. The discounts for the specific SKUs that override the
default_discount_percent.
repeated .google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.SkuDiscount sku_discounts = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.SkuDiscountOrBuilder> |
|
hasDefaultDiscountPercent()
public abstract boolean hasDefaultDiscountPercent()Optional. The default discount percent for usage SKUs. An unset default discount percent is equivalent to 0 (no discount).
Must be between 0 and 100 inclusive, with precision up to 2 decimal
places. If this field is set, then the allowed pattern for 'value'
is ^([0-9]{1,2}(\\.\\d{1,2})?|100(\\.0{1,2})?)$.
Examples of valid values: "0", "100.0", "12.34", "40.0".
Example of invalid values: ".3", "-1", "100.1", "12.345", "+12", "".
.google.type.Decimal default_discount_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the defaultDiscountPercent field is set. |