Class ProductCatalogItem.ExactPrice.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductCatalogItem.ExactPrice.Builder>
com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder
All Implemented Interfaces:
ProductCatalogItem.ExactPriceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ProductCatalogItem.ExactPrice

public static final class ProductCatalogItem.ExactPrice.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProductCatalogItem.ExactPrice.Builder> implements ProductCatalogItem.ExactPriceOrBuilder
 Exact product price.
 
Protobuf type google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice
  • 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<ProductCatalogItem.ExactPrice.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<ProductCatalogItem.ExactPrice.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<ProductCatalogItem.ExactPrice.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ProductCatalogItem.ExactPrice.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<ProductCatalogItem.ExactPrice.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ProductCatalogItem.ExactPrice.Builder>
    • mergeFrom

      public ProductCatalogItem.ExactPrice.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<ProductCatalogItem.ExactPrice.Builder>
      Throws:
      IOException
    • getDisplayPrice

      public float getDisplayPrice()
       Optional. Display price of the product.
       
      float display_price = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayPrice in interface ProductCatalogItem.ExactPriceOrBuilder
      Returns:
      The displayPrice.
    • setDisplayPrice

      public ProductCatalogItem.ExactPrice.Builder setDisplayPrice(float value)
       Optional. Display price of the product.
       
      float display_price = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayPrice to set.
      Returns:
      This builder for chaining.
    • clearDisplayPrice

      public ProductCatalogItem.ExactPrice.Builder clearDisplayPrice()
       Optional. Display price of the product.
       
      float display_price = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getOriginalPrice

      public float getOriginalPrice()
       Optional. Price of the product without any discount. If zero, by default
       set to be the 'displayPrice'.
       
      float original_price = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalPrice in interface ProductCatalogItem.ExactPriceOrBuilder
      Returns:
      The originalPrice.
    • setOriginalPrice

      public ProductCatalogItem.ExactPrice.Builder setOriginalPrice(float value)
       Optional. Price of the product without any discount. If zero, by default
       set to be the 'displayPrice'.
       
      float original_price = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The originalPrice to set.
      Returns:
      This builder for chaining.
    • clearOriginalPrice

      public ProductCatalogItem.ExactPrice.Builder clearOriginalPrice()
       Optional. Price of the product without any discount. If zero, by default
       set to be the 'displayPrice'.
       
      float original_price = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.