Class ProductCatalogItem.PriceRange.Builder (0.90.0)

public static final class ProductCatalogItem.PriceRange.Builder extends GeneratedMessage.Builder<ProductCatalogItem.PriceRange.Builder> 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 Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ProductCatalogItem.PriceRange build()
Returns
Type Description
ProductCatalogItem.PriceRange

buildPartial()

public ProductCatalogItem.PriceRange buildPartial()
Returns
Type Description
ProductCatalogItem.PriceRange

clear()

public ProductCatalogItem.PriceRange.Builder clear()
Returns
Type Description
ProductCatalogItem.PriceRange.Builder
Overrides

clearMax()

public ProductCatalogItem.PriceRange.Builder clearMax()

Required. The maximum product price.

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

Returns
Type Description
ProductCatalogItem.PriceRange.Builder

This builder for chaining.

clearMin()

public ProductCatalogItem.PriceRange.Builder clearMin()

Required. The minimum product price.

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

Returns
Type Description
ProductCatalogItem.PriceRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProductCatalogItem.PriceRange getDefaultInstanceForType()
Returns
Type Description
ProductCatalogItem.PriceRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMax()

public float getMax()

Required. The maximum product price.

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

Returns
Type Description
float

The max.

getMin()

public float getMin()

Required. The minimum product price.

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

Returns
Type Description
float

The min.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductCatalogItem.PriceRange other)

public ProductCatalogItem.PriceRange.Builder mergeFrom(ProductCatalogItem.PriceRange other)
Parameter
Name Description
other ProductCatalogItem.PriceRange
Returns
Type Description
ProductCatalogItem.PriceRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductCatalogItem.PriceRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductCatalogItem.PriceRange.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductCatalogItem.PriceRange.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductCatalogItem.PriceRange.Builder
Overrides

setMax(float value)

public ProductCatalogItem.PriceRange.Builder setMax(float value)

Required. The maximum product price.

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

Parameter
Name Description
value float

The max to set.

Returns
Type Description
ProductCatalogItem.PriceRange.Builder

This builder for chaining.

setMin(float value)

public ProductCatalogItem.PriceRange.Builder setMin(float value)

Required. The minimum product price.

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

Parameter
Name Description
value float

The min to set.

Returns
Type Description
ProductCatalogItem.PriceRange.Builder

This builder for chaining.