Package com.google.cloud.retail.v2
Class PriceInfo.PriceRange.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
- com.google.cloud.retail.v2.PriceInfo.PriceRange.Builder
-
- All Implemented Interfaces:
PriceInfo.PriceRangeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PriceInfo.PriceRange
public static final class PriceInfo.PriceRange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder> implements PriceInfo.PriceRangeOrBuilder
The price range of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
Protobuf typegoogle.cloud.retail.v2.PriceInfo.PriceRange
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceInfo.PriceRange.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PriceInfo.PriceRange
build()
PriceInfo.PriceRange
buildPartial()
PriceInfo.PriceRange.Builder
clear()
PriceInfo.PriceRange.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PriceInfo.PriceRange.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PriceInfo.PriceRange.Builder
clearOriginalPrice()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
clearPrice()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
clone()
PriceInfo.PriceRange
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Interval
getOriginalPrice()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].Interval.Builder
getOriginalPriceBuilder()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].IntervalOrBuilder
getOriginalPriceOrBuilder()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].Interval
getPrice()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].Interval.Builder
getPriceBuilder()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].IntervalOrBuilder
getPriceOrBuilder()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].boolean
hasOriginalPrice()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].boolean
hasPrice()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PriceInfo.PriceRange.Builder
mergeFrom(PriceInfo.PriceRange other)
PriceInfo.PriceRange.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PriceInfo.PriceRange.Builder
mergeFrom(com.google.protobuf.Message other)
PriceInfo.PriceRange.Builder
mergeOriginalPrice(Interval value)
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
mergePrice(Interval value)
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PriceInfo.PriceRange.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PriceInfo.PriceRange.Builder
setOriginalPrice(Interval value)
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
setOriginalPrice(Interval.Builder builderForValue)
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
setPrice(Interval value)
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
setPrice(Interval.Builder builderForValue)
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].PriceInfo.PriceRange.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PriceInfo.PriceRange.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
clear
public PriceInfo.PriceRange.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
getDefaultInstanceForType
public PriceInfo.PriceRange getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PriceInfo.PriceRange build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PriceInfo.PriceRange buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PriceInfo.PriceRange.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
setField
public PriceInfo.PriceRange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
clearField
public PriceInfo.PriceRange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
clearOneof
public PriceInfo.PriceRange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
setRepeatedField
public PriceInfo.PriceRange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
addRepeatedField
public PriceInfo.PriceRange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
mergeFrom
public PriceInfo.PriceRange.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PriceInfo.PriceRange.Builder>
-
mergeFrom
public PriceInfo.PriceRange.Builder mergeFrom(PriceInfo.PriceRange other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
mergeFrom
public PriceInfo.PriceRange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PriceInfo.PriceRange.Builder>
- Throws:
IOException
-
hasPrice
public boolean hasPrice()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
- Specified by:
hasPrice
in interfacePriceInfo.PriceRangeOrBuilder
- Returns:
- Whether the price field is set.
-
getPrice
public Interval getPrice()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
- Specified by:
getPrice
in interfacePriceInfo.PriceRangeOrBuilder
- Returns:
- The price.
-
setPrice
public PriceInfo.PriceRange.Builder setPrice(Interval value)
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
-
setPrice
public PriceInfo.PriceRange.Builder setPrice(Interval.Builder builderForValue)
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
-
mergePrice
public PriceInfo.PriceRange.Builder mergePrice(Interval value)
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
-
clearPrice
public PriceInfo.PriceRange.Builder clearPrice()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
-
getPriceBuilder
public Interval.Builder getPriceBuilder()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
-
getPriceOrBuilder
public IntervalOrBuilder getPriceOrBuilder()
The inclusive [Product.pricing_info.price][google.cloud.retail.v2.PriceInfo.price] interval of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval price = 1;
- Specified by:
getPriceOrBuilder
in interfacePriceInfo.PriceRangeOrBuilder
-
hasOriginalPrice
public boolean hasOriginalPrice()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
- Specified by:
hasOriginalPrice
in interfacePriceInfo.PriceRangeOrBuilder
- Returns:
- Whether the originalPrice field is set.
-
getOriginalPrice
public Interval getOriginalPrice()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
- Specified by:
getOriginalPrice
in interfacePriceInfo.PriceRangeOrBuilder
- Returns:
- The originalPrice.
-
setOriginalPrice
public PriceInfo.PriceRange.Builder setOriginalPrice(Interval value)
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
-
setOriginalPrice
public PriceInfo.PriceRange.Builder setOriginalPrice(Interval.Builder builderForValue)
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
-
mergeOriginalPrice
public PriceInfo.PriceRange.Builder mergeOriginalPrice(Interval value)
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
-
clearOriginalPrice
public PriceInfo.PriceRange.Builder clearOriginalPrice()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
-
getOriginalPriceBuilder
public Interval.Builder getOriginalPriceBuilder()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
-
getOriginalPriceOrBuilder
public IntervalOrBuilder getOriginalPriceOrBuilder()
The inclusive [Product.pricing_info.original_price][google.cloud.retail.v2.PriceInfo.original_price] internal of all [variant][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product] having the same [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id].
.google.cloud.retail.v2.Interval original_price = 2;
- Specified by:
getOriginalPriceOrBuilder
in interfacePriceInfo.PriceRangeOrBuilder
-
setUnknownFields
public final PriceInfo.PriceRange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
mergeUnknownFields
public final PriceInfo.PriceRange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PriceInfo.PriceRange.Builder>
-
-