Class ProductCatalogItem.ExactPrice.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.