Class ProductCatalogItem.PriceRange.Builder (0.14.0)

public static final class ProductCatalogItem.PriceRange.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductCatalogItem.PriceRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ProductCatalogItem.PriceRange.Builder clear()
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ProductCatalogItem.PriceRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

clearMax()

public ProductCatalogItem.PriceRange.Builder clearMax()

Required. The maximum product price.

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

Returns
TypeDescription
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
TypeDescription
ProductCatalogItem.PriceRange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductCatalogItem.PriceRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

clone()

public ProductCatalogItem.PriceRange.Builder clone()
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProductCatalogItem.PriceRange other)

public ProductCatalogItem.PriceRange.Builder mergeFrom(ProductCatalogItem.PriceRange other)
Parameter
NameDescription
otherProductCatalogItem.PriceRange
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductCatalogItem.PriceRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProductCatalogItem.PriceRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductCatalogItem.PriceRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ProductCatalogItem.PriceRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The max to set.

Returns
TypeDescription
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
NameDescription
valuefloat

The min to set.

Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductCatalogItem.PriceRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductCatalogItem.PriceRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductCatalogItem.PriceRange.Builder
Overrides