Package com.google.cloud.retail.v2alpha
Class PriceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
com.google.cloud.retail.v2alpha.PriceInfo.Builder
- All Implemented Interfaces:
PriceInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PriceInfo
public static final class PriceInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
implements PriceInfoOrBuilder
The price information of a [Product][google.cloud.retail.v2alpha.Product].Protobuf type
google.cloud.retail.v2alpha.PriceInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The costs associated with the sale of a particular product.The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).Price of the product without any discount.Price of the product.The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.Output only.floatgetCost()The costs associated with the sale of a particular product.The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).com.google.protobuf.ByteStringThe 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatPrice of the product without any discount.floatgetPrice()Price of the product.com.google.protobuf.TimestampThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.com.google.protobuf.Timestamp.BuilderThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.com.google.protobuf.TimestampOrBuilderThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.com.google.protobuf.TimestampThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.com.google.protobuf.Timestamp.BuilderThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.com.google.protobuf.TimestampOrBuilderThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.Output only.Output only.Output only.booleanThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.booleanThe timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePriceEffectiveTime(com.google.protobuf.Timestamp value) The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.mergePriceExpireTime(com.google.protobuf.Timestamp value) The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.Output only.setCost(float value) The costs associated with the sale of a particular product.setCurrencyCode(String value) The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).setCurrencyCodeBytes(com.google.protobuf.ByteString value) The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).setOriginalPrice(float value) Price of the product without any discount.setPrice(float value) Price of the product.setPriceEffectiveTime(com.google.protobuf.Timestamp value) The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.setPriceEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective.setPriceExpireTime(com.google.protobuf.Timestamp value) The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.setPriceExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective.Output only.setPriceRange(PriceInfo.PriceRange.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PriceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
-
mergeFrom
public PriceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PriceInfo.Builder>- Throws:
IOException
-
getCurrencyCode
The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s with the same [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] must share the same [currency_code][google.cloud.retail.v2alpha.PriceInfo.currency_code]. Otherwise, a FAILED_PRECONDITION error is returned.
string currency_code = 1;- Specified by:
getCurrencyCodein interfacePriceInfoOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s with the same [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] must share the same [currency_code][google.cloud.retail.v2alpha.PriceInfo.currency_code]. Otherwise, a FAILED_PRECONDITION error is returned.
string currency_code = 1;- Specified by:
getCurrencyCodeBytesin interfacePriceInfoOrBuilder- Returns:
- The bytes for currencyCode.
-
setCurrencyCode
The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s with the same [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] must share the same [currency_code][google.cloud.retail.v2alpha.PriceInfo.currency_code]. Otherwise, a FAILED_PRECONDITION error is returned.
string currency_code = 1;- Parameters:
value- The currencyCode to set.- Returns:
- This builder for chaining.
-
clearCurrencyCode
The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s with the same [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] must share the same [currency_code][google.cloud.retail.v2alpha.PriceInfo.currency_code]. Otherwise, a FAILED_PRECONDITION error is returned.
string currency_code = 1;- Returns:
- This builder for chaining.
-
setCurrencyCodeBytes
The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s with the same [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] must share the same [currency_code][google.cloud.retail.v2alpha.PriceInfo.currency_code]. Otherwise, a FAILED_PRECONDITION error is returned.
string currency_code = 1;- Parameters:
value- The bytes for currencyCode to set.- Returns:
- This builder for chaining.
-
getPrice
public float getPrice()Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).
float price = 2;- Specified by:
getPricein interfacePriceInfoOrBuilder- Returns:
- The price.
-
setPrice
Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).
float price = 2;- Parameters:
value- The price to set.- Returns:
- This builder for chaining.
-
clearPrice
Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).
float price = 2;- Returns:
- This builder for chaining.
-
getOriginalPrice
public float getOriginalPrice()Price of the product without any discount. If zero, by default set to be the [price][google.cloud.retail.v2alpha.PriceInfo.price]. If set, [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] should be greater than or equal to [price][google.cloud.retail.v2alpha.PriceInfo.price], otherwise an INVALID_ARGUMENT error is thrown.
float original_price = 3;- Specified by:
getOriginalPricein interfacePriceInfoOrBuilder- Returns:
- The originalPrice.
-
setOriginalPrice
Price of the product without any discount. If zero, by default set to be the [price][google.cloud.retail.v2alpha.PriceInfo.price]. If set, [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] should be greater than or equal to [price][google.cloud.retail.v2alpha.PriceInfo.price], otherwise an INVALID_ARGUMENT error is thrown.
float original_price = 3;- Parameters:
value- The originalPrice to set.- Returns:
- This builder for chaining.
-
clearOriginalPrice
Price of the product without any discount. If zero, by default set to be the [price][google.cloud.retail.v2alpha.PriceInfo.price]. If set, [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] should be greater than or equal to [price][google.cloud.retail.v2alpha.PriceInfo.price], otherwise an INVALID_ARGUMENT error is thrown.
float original_price = 3;- Returns:
- This builder for chaining.
-
getCost
public float getCost()The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = [price][google.cloud.retail.v2alpha.PriceInfo.price] - [cost][google.cloud.retail.v2alpha.PriceInfo.cost] Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).
float cost = 4;- Specified by:
getCostin interfacePriceInfoOrBuilder- Returns:
- The cost.
-
setCost
The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = [price][google.cloud.retail.v2alpha.PriceInfo.price] - [cost][google.cloud.retail.v2alpha.PriceInfo.cost] Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).
float cost = 4;- Parameters:
value- The cost to set.- Returns:
- This builder for chaining.
-
clearCost
The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = [price][google.cloud.retail.v2alpha.PriceInfo.price] - [cost][google.cloud.retail.v2alpha.PriceInfo.cost] Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).
float cost = 4;- Returns:
- This builder for chaining.
-
hasPriceEffectiveTime
public boolean hasPriceEffectiveTime()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5;- Specified by:
hasPriceEffectiveTimein interfacePriceInfoOrBuilder- Returns:
- Whether the priceEffectiveTime field is set.
-
getPriceEffectiveTime
public com.google.protobuf.Timestamp getPriceEffectiveTime()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5;- Specified by:
getPriceEffectiveTimein interfacePriceInfoOrBuilder- Returns:
- The priceEffectiveTime.
-
setPriceEffectiveTime
The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5; -
setPriceEffectiveTime
public PriceInfo.Builder setPriceEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5; -
mergePriceEffectiveTime
The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5; -
clearPriceEffectiveTime
The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5; -
getPriceEffectiveTimeBuilder
public com.google.protobuf.Timestamp.Builder getPriceEffectiveTimeBuilder()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5; -
getPriceEffectiveTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getPriceEffectiveTimeOrBuilder()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] starts to be effective. This can be set as a future timestamp, and the [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for search after [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. If so, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used before [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_effective_time = 5;- Specified by:
getPriceEffectiveTimeOrBuilderin interfacePriceInfoOrBuilder
-
hasPriceExpireTime
public boolean hasPriceExpireTime()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6;- Specified by:
hasPriceExpireTimein interfacePriceInfoOrBuilder- Returns:
- Whether the priceExpireTime field is set.
-
getPriceExpireTime
public com.google.protobuf.Timestamp getPriceExpireTime()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6;- Specified by:
getPriceExpireTimein interfacePriceInfoOrBuilder- Returns:
- The priceExpireTime.
-
setPriceExpireTime
The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6; -
setPriceExpireTime
The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6; -
mergePriceExpireTime
The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6; -
clearPriceExpireTime
The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6; -
getPriceExpireTimeBuilder
public com.google.protobuf.Timestamp.Builder getPriceExpireTimeBuilder()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6; -
getPriceExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getPriceExpireTimeOrBuilder()The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price] stops to be effective. The [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search before [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. If this field is set, the [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must be set and [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is used after [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time]. Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is always effective because it will cause additional latency during search.
.google.protobuf.Timestamp price_expire_time = 6;- Specified by:
getPriceExpireTimeOrBuilderin interfacePriceInfoOrBuilder
-
hasPriceRange
public boolean hasPriceRange()Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPriceRangein interfacePriceInfoOrBuilder- Returns:
- Whether the priceRange field is set.
-
getPriceRange
Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPriceRangein interfacePriceInfoOrBuilder- Returns:
- The priceRange.
-
setPriceRange
Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPriceRange
Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergePriceRange
Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPriceRange
Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPriceRangeBuilder
Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPriceRangeOrBuilder
Output only. The price range of all the child [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s grouped together on the [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. Only populated for [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]s. Note: This field is OUTPUT_ONLY for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]. Do not set this field in API requests.
.google.cloud.retail.v2alpha.PriceInfo.PriceRange price_range = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPriceRangeOrBuilderin interfacePriceInfoOrBuilder
-