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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
    • clear

      public PriceInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PriceInfo.Builder>
    • getDefaultInstanceForType

      public PriceInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PriceInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PriceInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PriceInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PriceInfo.Builder>
    • mergeFrom

      public PriceInfo.Builder mergeFrom(PriceInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PriceInfo.Builder>
      Throws:
      IOException
    • getCurrencyCode

      public String 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:
      getCurrencyCode in interface PriceInfoOrBuilder
      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:
      getCurrencyCodeBytes in interface PriceInfoOrBuilder
      Returns:
      The bytes for currencyCode.
    • setCurrencyCode

      public PriceInfo.Builder setCurrencyCode(String value)
       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

      public PriceInfo.Builder 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

      public PriceInfo.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value)
       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:
      getPrice in interface PriceInfoOrBuilder
      Returns:
      The price.
    • setPrice

      public PriceInfo.Builder setPrice(float value)
       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

      public PriceInfo.Builder 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:
      getOriginalPrice in interface PriceInfoOrBuilder
      Returns:
      The originalPrice.
    • setOriginalPrice

      public PriceInfo.Builder setOriginalPrice(float value)
       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

      public PriceInfo.Builder 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:
      getCost in interface PriceInfoOrBuilder
      Returns:
      The cost.
    • setCost

      public PriceInfo.Builder setCost(float value)
       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

      public PriceInfo.Builder 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:
      hasPriceEffectiveTime in interface PriceInfoOrBuilder
      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:
      getPriceEffectiveTime in interface PriceInfoOrBuilder
      Returns:
      The priceEffectiveTime.
    • setPriceEffectiveTime

      public PriceInfo.Builder setPriceEffectiveTime(com.google.protobuf.Timestamp value)
       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

      public PriceInfo.Builder mergePriceEffectiveTime(com.google.protobuf.Timestamp value)
       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

      public PriceInfo.Builder 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:
      getPriceEffectiveTimeOrBuilder in interface PriceInfoOrBuilder
    • 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:
      hasPriceExpireTime in interface PriceInfoOrBuilder
      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:
      getPriceExpireTime in interface PriceInfoOrBuilder
      Returns:
      The priceExpireTime.
    • setPriceExpireTime

      public PriceInfo.Builder setPriceExpireTime(com.google.protobuf.Timestamp value)
       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

      public PriceInfo.Builder setPriceExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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

      public PriceInfo.Builder mergePriceExpireTime(com.google.protobuf.Timestamp value)
       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

      public PriceInfo.Builder 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:
      getPriceExpireTimeOrBuilder in interface PriceInfoOrBuilder
    • 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:
      hasPriceRange in interface PriceInfoOrBuilder
      Returns:
      Whether the priceRange field is set.
    • getPriceRange

      public PriceInfo.PriceRange 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:
      getPriceRange in interface PriceInfoOrBuilder
      Returns:
      The priceRange.
    • setPriceRange

      public PriceInfo.Builder setPriceRange(PriceInfo.PriceRange value)
       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

      public PriceInfo.Builder setPriceRange(PriceInfo.PriceRange.Builder builderForValue)
       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

      public PriceInfo.Builder mergePriceRange(PriceInfo.PriceRange value)
       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

      public PriceInfo.Builder 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

      public PriceInfo.PriceRange.Builder 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

      public PriceInfo.PriceRangeOrBuilder 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:
      getPriceRangeOrBuilder in interface PriceInfoOrBuilder