Package com.google.cloud.channel.v1
Class Price
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.channel.v1.Price
-
- All Implemented Interfaces:
PriceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Price extends com.google.protobuf.GeneratedMessageV3 implements PriceOrBuilder
Represents the price of the Offer.
Protobuf typegoogle.cloud.channel.v1.Price- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrice.BuilderRepresents the price of the Offer.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBASE_PRICE_FIELD_NUMBERstatic intDISCOUNT_FIELD_NUMBERstatic intEFFECTIVE_PRICE_FIELD_NUMBERstatic intEXTERNAL_PRICE_URI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.type.MoneygetBasePrice()Base price.com.google.type.MoneyOrBuildergetBasePriceOrBuilder()Base price.static PricegetDefaultInstance()PricegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetDiscount()Discount percentage, represented as decimal.com.google.type.MoneygetEffectivePrice()Effective Price after applying the discounts.com.google.type.MoneyOrBuildergetEffectivePriceOrBuilder()Effective Price after applying the discounts.StringgetExternalPriceUri()Link to external price list, such as link to Google Voice rate card.com.google.protobuf.ByteStringgetExternalPriceUriBytes()Link to external price list, such as link to Google Voice rate card.com.google.protobuf.Parser<Price>getParserForType()intgetSerializedSize()booleanhasBasePrice()Base price.booleanhasEffectivePrice()Effective Price after applying the discounts.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Price.BuildernewBuilder()static Price.BuildernewBuilder(Price prototype)Price.BuildernewBuilderForType()protected Price.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PriceparseDelimitedFrom(InputStream input)static PriceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PriceparseFrom(byte[] data)static PriceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PriceparseFrom(com.google.protobuf.ByteString data)static PriceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PriceparseFrom(com.google.protobuf.CodedInputStream input)static PriceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PriceparseFrom(InputStream input)static PriceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PriceparseFrom(ByteBuffer data)static PriceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Price>parser()Price.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
BASE_PRICE_FIELD_NUMBER
public static final int BASE_PRICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISCOUNT_FIELD_NUMBER
public static final int DISCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EFFECTIVE_PRICE_FIELD_NUMBER
public static final int EFFECTIVE_PRICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTERNAL_PRICE_URI_FIELD_NUMBER
public static final int EXTERNAL_PRICE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasBasePrice
public boolean hasBasePrice()
Base price.
.google.type.Money base_price = 1;- Specified by:
hasBasePricein interfacePriceOrBuilder- Returns:
- Whether the basePrice field is set.
-
getBasePrice
public com.google.type.Money getBasePrice()
Base price.
.google.type.Money base_price = 1;- Specified by:
getBasePricein interfacePriceOrBuilder- Returns:
- The basePrice.
-
getBasePriceOrBuilder
public com.google.type.MoneyOrBuilder getBasePriceOrBuilder()
Base price.
.google.type.Money base_price = 1;- Specified by:
getBasePriceOrBuilderin interfacePriceOrBuilder
-
getDiscount
public double getDiscount()
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;- Specified by:
getDiscountin interfacePriceOrBuilder- Returns:
- The discount.
-
hasEffectivePrice
public boolean hasEffectivePrice()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Specified by:
hasEffectivePricein interfacePriceOrBuilder- Returns:
- Whether the effectivePrice field is set.
-
getEffectivePrice
public com.google.type.Money getEffectivePrice()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Specified by:
getEffectivePricein interfacePriceOrBuilder- Returns:
- The effectivePrice.
-
getEffectivePriceOrBuilder
public com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Specified by:
getEffectivePriceOrBuilderin interfacePriceOrBuilder
-
getExternalPriceUri
public String getExternalPriceUri()
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Specified by:
getExternalPriceUriin interfacePriceOrBuilder- Returns:
- The externalPriceUri.
-
getExternalPriceUriBytes
public com.google.protobuf.ByteString getExternalPriceUriBytes()
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Specified by:
getExternalPriceUriBytesin interfacePriceOrBuilder- Returns:
- The bytes for externalPriceUri.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Price parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Price parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Price parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Price parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Price parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Price parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Price parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Price parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Price parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Price parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Price parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Price parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Price.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Price.Builder newBuilder()
-
newBuilder
public static Price.Builder newBuilder(Price prototype)
-
toBuilder
public Price.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Price.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Price getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Price> parser()
-
getParserForType
public com.google.protobuf.Parser<Price> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Price getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-