Class ProductCatalogItem.PriceRange (0.34.0)

public static final class ProductCatalogItem.PriceRange extends GeneratedMessageV3 implements ProductCatalogItem.PriceRangeOrBuilder

Product price range when there are a range of prices for different variations of the same product.

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

Static Fields

MAX_FIELD_NUMBER

public static final int MAX_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_FIELD_NUMBER

public static final int MIN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ProductCatalogItem.PriceRange prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getMax()

public float getMax()

Required. The maximum product price.

float max = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
float

The max.

getMin()

public float getMin()

Required. The minimum product price.

float min = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
float

The min.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.PriceRange.Builder newBuilderForType()
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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