- 3.59.0 (latest)
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.1
- 3.5.1
- 3.3.1
public static final class Price.Builder extends GeneratedMessageV3.Builder<Price.Builder> implements PriceOrBuilder
Represents the price of the Offer.
Protobuf type google.cloud.channel.v1.Price
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Price.BuilderImplements
PriceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Price.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Price.Builder |
build()
public Price build()
Type | Description |
Price |
buildPartial()
public Price buildPartial()
Type | Description |
Price |
clear()
public Price.Builder clear()
Type | Description |
Price.Builder |
clearBasePrice()
public Price.Builder clearBasePrice()
Base price.
.google.type.Money base_price = 1;
Type | Description |
Price.Builder |
clearDiscount()
public Price.Builder clearDiscount()
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;
Type | Description |
Price.Builder | This builder for chaining. |
clearEffectivePrice()
public Price.Builder clearEffectivePrice()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Type | Description |
Price.Builder |
clearExternalPriceUri()
public Price.Builder clearExternalPriceUri()
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
Type | Description |
Price.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Price.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Price.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Price.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Price.Builder |
clone()
public Price.Builder clone()
Type | Description |
Price.Builder |
getBasePrice()
public Money getBasePrice()
Base price.
.google.type.Money base_price = 1;
Type | Description |
com.google.type.Money | The basePrice. |
getBasePriceBuilder()
public Money.Builder getBasePriceBuilder()
Base price.
.google.type.Money base_price = 1;
Type | Description |
com.google.type.Money.Builder |
getBasePriceOrBuilder()
public MoneyOrBuilder getBasePriceOrBuilder()
Base price.
.google.type.Money base_price = 1;
Type | Description |
com.google.type.MoneyOrBuilder |
getDefaultInstanceForType()
public Price getDefaultInstanceForType()
Type | Description |
Price |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDiscount()
public double getDiscount()
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;
Type | Description |
double | The discount. |
getEffectivePrice()
public Money getEffectivePrice()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Type | Description |
com.google.type.Money | The effectivePrice. |
getEffectivePriceBuilder()
public Money.Builder getEffectivePriceBuilder()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Type | Description |
com.google.type.Money.Builder |
getEffectivePriceOrBuilder()
public MoneyOrBuilder getEffectivePriceOrBuilder()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Type | Description |
com.google.type.MoneyOrBuilder |
getExternalPriceUri()
public String getExternalPriceUri()
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
Type | Description |
String | The externalPriceUri. |
getExternalPriceUriBytes()
public ByteString getExternalPriceUriBytes()
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
Type | Description |
ByteString | The bytes for externalPriceUri. |
hasBasePrice()
public boolean hasBasePrice()
Base price.
.google.type.Money base_price = 1;
Type | Description |
boolean | Whether the basePrice field is set. |
hasEffectivePrice()
public boolean hasEffectivePrice()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Type | Description |
boolean | Whether the effectivePrice field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBasePrice(Money value)
public Price.Builder mergeBasePrice(Money value)
Base price.
.google.type.Money base_price = 1;
Name | Description |
value | com.google.type.Money |
Type | Description |
Price.Builder |
mergeEffectivePrice(Money value)
public Price.Builder mergeEffectivePrice(Money value)
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Name | Description |
value | com.google.type.Money |
Type | Description |
Price.Builder |
mergeFrom(Price other)
public Price.Builder mergeFrom(Price other)
Name | Description |
other | Price |
Type | Description |
Price.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Price.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Price.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Price.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Price.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Price.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Price.Builder |
setBasePrice(Money value)
public Price.Builder setBasePrice(Money value)
Base price.
.google.type.Money base_price = 1;
Name | Description |
value | com.google.type.Money |
Type | Description |
Price.Builder |
setBasePrice(Money.Builder builderForValue)
public Price.Builder setBasePrice(Money.Builder builderForValue)
Base price.
.google.type.Money base_price = 1;
Name | Description |
builderForValue | com.google.type.Money.Builder |
Type | Description |
Price.Builder |
setDiscount(double value)
public Price.Builder setDiscount(double value)
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;
Name | Description |
value | double The discount to set. |
Type | Description |
Price.Builder | This builder for chaining. |
setEffectivePrice(Money value)
public Price.Builder setEffectivePrice(Money value)
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Name | Description |
value | com.google.type.Money |
Type | Description |
Price.Builder |
setEffectivePrice(Money.Builder builderForValue)
public Price.Builder setEffectivePrice(Money.Builder builderForValue)
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
Name | Description |
builderForValue | com.google.type.Money.Builder |
Type | Description |
Price.Builder |
setExternalPriceUri(String value)
public Price.Builder setExternalPriceUri(String value)
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
Name | Description |
value | String The externalPriceUri to set. |
Type | Description |
Price.Builder | This builder for chaining. |
setExternalPriceUriBytes(ByteString value)
public Price.Builder setExternalPriceUriBytes(ByteString value)
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
Name | Description |
value | ByteString The bytes for externalPriceUri to set. |
Type | Description |
Price.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Price.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Price.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Price.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Price.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Price.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Price.Builder |