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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductCatalogItem.PriceRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ProductCatalogItem.PriceRange build()
Returns
buildPartial()
public ProductCatalogItem.PriceRange buildPartial()
Returns
clear()
public ProductCatalogItem.PriceRange.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProductCatalogItem.PriceRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMax()
public ProductCatalogItem.PriceRange.Builder clearMax()
Required. The maximum product price.
float max = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearMin()
public ProductCatalogItem.PriceRange.Builder clearMin()
Required. The minimum product price.
float min = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductCatalogItem.PriceRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ProductCatalogItem.PriceRange.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ProductCatalogItem.PriceRange getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMax()
Required. The maximum product price.
float max = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
float | The max.
|
getMin()
Required. The minimum product price.
float min = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
float | The min.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ProductCatalogItem.PriceRange other)
public ProductCatalogItem.PriceRange.Builder mergeFrom(ProductCatalogItem.PriceRange other)
Parameter
Returns
public ProductCatalogItem.PriceRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ProductCatalogItem.PriceRange.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductCatalogItem.PriceRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ProductCatalogItem.PriceRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductCatalogItem.PriceRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductCatalogItem.PriceRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides