Class ProductCatalogItem.ExactPrice (0.12.0)

public static final class ProductCatalogItem.ExactPrice extends GeneratedMessageV3 implements ProductCatalogItem.ExactPriceOrBuilder

Exact product price.

Protobuf type google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice

Static Fields

DISPLAY_PRICE_FIELD_NUMBER

public static final int DISPLAY_PRICE_FIELD_NUMBER
Field Value
TypeDescription
int

ORIGINAL_PRICE_FIELD_NUMBER

public static final int ORIGINAL_PRICE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProductCatalogItem.ExactPrice getDefaultInstance()
Returns
TypeDescription
ProductCatalogItem.ExactPrice

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ProductCatalogItem.ExactPrice.Builder newBuilder()
Returns
TypeDescription
ProductCatalogItem.ExactPrice.Builder

newBuilder(ProductCatalogItem.ExactPrice prototype)

public static ProductCatalogItem.ExactPrice.Builder newBuilder(ProductCatalogItem.ExactPrice prototype)
Parameter
NameDescription
prototypeProductCatalogItem.ExactPrice
Returns
TypeDescription
ProductCatalogItem.ExactPrice.Builder

parseDelimitedFrom(InputStream input)

public static ProductCatalogItem.ExactPrice parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductCatalogItem.ExactPrice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ProductCatalogItem.ExactPrice parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductCatalogItem.ExactPrice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductCatalogItem.ExactPrice parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductCatalogItem.ExactPrice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductCatalogItem.ExactPrice parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductCatalogItem.ExactPrice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ProductCatalogItem.ExactPrice parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductCatalogItem.ExactPrice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ProductCatalogItem.ExactPrice parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductCatalogItem.ExactPrice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.ExactPrice
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ProductCatalogItem.ExactPrice> parser()
Returns
TypeDescription
Parser<ExactPrice>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ProductCatalogItem.ExactPrice getDefaultInstanceForType()
Returns
TypeDescription
ProductCatalogItem.ExactPrice

getDisplayPrice()

public float getDisplayPrice()

Optional. Display price of the product.

float display_price = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
float

The displayPrice.

getOriginalPrice()

public float getOriginalPrice()

Optional. Price of the product without any discount. If zero, by default set to be the 'displayPrice'.

float original_price = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
float

The originalPrice.

getParserForType()

public Parser<ProductCatalogItem.ExactPrice> getParserForType()
Returns
TypeDescription
Parser<ExactPrice>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ProductCatalogItem.ExactPrice.Builder newBuilderForType()
Returns
TypeDescription
ProductCatalogItem.ExactPrice.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductCatalogItem.ExactPrice.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ProductCatalogItem.ExactPrice.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ProductCatalogItem.ExactPrice.Builder toBuilder()
Returns
TypeDescription
ProductCatalogItem.ExactPrice.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException