Class Product.Builder

  • All Implemented Interfaces:
    com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ProductOrBuilder, java.lang.Cloneable
    Enclosing class:
    Product

    public static final class Product.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<Product,​Product.Builder>
    implements ProductOrBuilder
     duplicated with NFLProduct in interactive.common.proto
     
    Protobuf type streamlayer.nflShop.Product
    • Method Detail

      • getId

        public java.lang.String getId()
        string id = 1 [json_name = "id"];
        Specified by:
        getId in interface ProductOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
        string id = 1 [json_name = "id"];
        Specified by:
        getIdBytes in interface ProductOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Product.Builder setId​(java.lang.String value)
        string id = 1 [json_name = "id"];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Product.Builder clearId()
        string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public Product.Builder setIdBytes​(com.google.protobuf.ByteString value)
        string id = 1 [json_name = "id"];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getTitle

        public java.lang.String getTitle()
        string title = 2 [json_name = "title"];
        Specified by:
        getTitle in interface ProductOrBuilder
        Returns:
        The title.
      • getTitleBytes

        public com.google.protobuf.ByteString getTitleBytes()
        string title = 2 [json_name = "title"];
        Specified by:
        getTitleBytes in interface ProductOrBuilder
        Returns:
        The bytes for title.
      • setTitle

        public Product.Builder setTitle​(java.lang.String value)
        string title = 2 [json_name = "title"];
        Parameters:
        value - The title to set.
        Returns:
        This builder for chaining.
      • clearTitle

        public Product.Builder clearTitle()
        string title = 2 [json_name = "title"];
        Returns:
        This builder for chaining.
      • setTitleBytes

        public Product.Builder setTitleBytes​(com.google.protobuf.ByteString value)
        string title = 2 [json_name = "title"];
        Parameters:
        value - The bytes for title to set.
        Returns:
        This builder for chaining.
      • getSalePrice

        public double getSalePrice()
        double sale_price = 3 [json_name = "salePrice"];
        Specified by:
        getSalePrice in interface ProductOrBuilder
        Returns:
        The salePrice.
      • setSalePrice

        public Product.Builder setSalePrice​(double value)
        double sale_price = 3 [json_name = "salePrice"];
        Parameters:
        value - The salePrice to set.
        Returns:
        This builder for chaining.
      • clearSalePrice

        public Product.Builder clearSalePrice()
        double sale_price = 3 [json_name = "salePrice"];
        Returns:
        This builder for chaining.
      • getPrice

        public double getPrice()
        double price = 4 [json_name = "price"];
        Specified by:
        getPrice in interface ProductOrBuilder
        Returns:
        The price.
      • setPrice

        public Product.Builder setPrice​(double value)
        double price = 4 [json_name = "price"];
        Parameters:
        value - The price to set.
        Returns:
        This builder for chaining.
      • clearPrice

        public Product.Builder clearPrice()
        double price = 4 [json_name = "price"];
        Returns:
        This builder for chaining.
      • getLink

        public java.lang.String getLink()
        string link = 5 [json_name = "link"];
        Specified by:
        getLink in interface ProductOrBuilder
        Returns:
        The link.
      • getLinkBytes

        public com.google.protobuf.ByteString getLinkBytes()
        string link = 5 [json_name = "link"];
        Specified by:
        getLinkBytes in interface ProductOrBuilder
        Returns:
        The bytes for link.
      • setLink

        public Product.Builder setLink​(java.lang.String value)
        string link = 5 [json_name = "link"];
        Parameters:
        value - The link to set.
        Returns:
        This builder for chaining.
      • clearLink

        public Product.Builder clearLink()
        string link = 5 [json_name = "link"];
        Returns:
        This builder for chaining.
      • setLinkBytes

        public Product.Builder setLinkBytes​(com.google.protobuf.ByteString value)
        string link = 5 [json_name = "link"];
        Parameters:
        value - The bytes for link to set.
        Returns:
        This builder for chaining.
      • getImageLink

        public java.lang.String getImageLink()
        string image_link = 6 [json_name = "imageLink"];
        Specified by:
        getImageLink in interface ProductOrBuilder
        Returns:
        The imageLink.
      • getImageLinkBytes

        public com.google.protobuf.ByteString getImageLinkBytes()
        string image_link = 6 [json_name = "imageLink"];
        Specified by:
        getImageLinkBytes in interface ProductOrBuilder
        Returns:
        The bytes for imageLink.
      • setImageLink

        public Product.Builder setImageLink​(java.lang.String value)
        string image_link = 6 [json_name = "imageLink"];
        Parameters:
        value - The imageLink to set.
        Returns:
        This builder for chaining.
      • clearImageLink

        public Product.Builder clearImageLink()
        string image_link = 6 [json_name = "imageLink"];
        Returns:
        This builder for chaining.
      • setImageLinkBytes

        public Product.Builder setImageLinkBytes​(com.google.protobuf.ByteString value)
        string image_link = 6 [json_name = "imageLink"];
        Parameters:
        value - The bytes for imageLink to set.
        Returns:
        This builder for chaining.
      • getGtin

        public java.lang.String getGtin()
        string gtin = 7 [json_name = "gtin"];
        Specified by:
        getGtin in interface ProductOrBuilder
        Returns:
        The gtin.
      • getGtinBytes

        public com.google.protobuf.ByteString getGtinBytes()
        string gtin = 7 [json_name = "gtin"];
        Specified by:
        getGtinBytes in interface ProductOrBuilder
        Returns:
        The bytes for gtin.
      • setGtin

        public Product.Builder setGtin​(java.lang.String value)
        string gtin = 7 [json_name = "gtin"];
        Parameters:
        value - The gtin to set.
        Returns:
        This builder for chaining.
      • clearGtin

        public Product.Builder clearGtin()
        string gtin = 7 [json_name = "gtin"];
        Returns:
        This builder for chaining.
      • setGtinBytes

        public Product.Builder setGtinBytes​(com.google.protobuf.ByteString value)
        string gtin = 7 [json_name = "gtin"];
        Parameters:
        value - The bytes for gtin to set.
        Returns:
        This builder for chaining.
      • getGoogleProductCategory

        public java.lang.String getGoogleProductCategory()
        string google_product_category = 8 [json_name = "googleProductCategory"];
        Specified by:
        getGoogleProductCategory in interface ProductOrBuilder
        Returns:
        The googleProductCategory.
      • getGoogleProductCategoryBytes

        public com.google.protobuf.ByteString getGoogleProductCategoryBytes()
        string google_product_category = 8 [json_name = "googleProductCategory"];
        Specified by:
        getGoogleProductCategoryBytes in interface ProductOrBuilder
        Returns:
        The bytes for googleProductCategory.
      • setGoogleProductCategory

        public Product.Builder setGoogleProductCategory​(java.lang.String value)
        string google_product_category = 8 [json_name = "googleProductCategory"];
        Parameters:
        value - The googleProductCategory to set.
        Returns:
        This builder for chaining.
      • clearGoogleProductCategory

        public Product.Builder clearGoogleProductCategory()
        string google_product_category = 8 [json_name = "googleProductCategory"];
        Returns:
        This builder for chaining.
      • setGoogleProductCategoryBytes

        public Product.Builder setGoogleProductCategoryBytes​(com.google.protobuf.ByteString value)
        string google_product_category = 8 [json_name = "googleProductCategory"];
        Parameters:
        value - The bytes for googleProductCategory to set.
        Returns:
        This builder for chaining.
      • getGender

        public java.lang.String getGender()
        string gender = 9 [json_name = "gender"];
        Specified by:
        getGender in interface ProductOrBuilder
        Returns:
        The gender.
      • getGenderBytes

        public com.google.protobuf.ByteString getGenderBytes()
        string gender = 9 [json_name = "gender"];
        Specified by:
        getGenderBytes in interface ProductOrBuilder
        Returns:
        The bytes for gender.
      • setGender

        public Product.Builder setGender​(java.lang.String value)
        string gender = 9 [json_name = "gender"];
        Parameters:
        value - The gender to set.
        Returns:
        This builder for chaining.
      • clearGender

        public Product.Builder clearGender()
        string gender = 9 [json_name = "gender"];
        Returns:
        This builder for chaining.
      • setGenderBytes

        public Product.Builder setGenderBytes​(com.google.protobuf.ByteString value)
        string gender = 9 [json_name = "gender"];
        Parameters:
        value - The bytes for gender to set.
        Returns:
        This builder for chaining.
      • getDescription

        public java.lang.String getDescription()
        string description = 10 [json_name = "description"];
        Specified by:
        getDescription in interface ProductOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
        string description = 10 [json_name = "description"];
        Specified by:
        getDescriptionBytes in interface ProductOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Product.Builder setDescription​(java.lang.String value)
        string description = 10 [json_name = "description"];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Product.Builder clearDescription()
        string description = 10 [json_name = "description"];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Product.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
        string description = 10 [json_name = "description"];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getCondition

        public java.lang.String getCondition()
        string condition = 11 [json_name = "condition"];
        Specified by:
        getCondition in interface ProductOrBuilder
        Returns:
        The condition.
      • getConditionBytes

        public com.google.protobuf.ByteString getConditionBytes()
        string condition = 11 [json_name = "condition"];
        Specified by:
        getConditionBytes in interface ProductOrBuilder
        Returns:
        The bytes for condition.
      • setCondition

        public Product.Builder setCondition​(java.lang.String value)
        string condition = 11 [json_name = "condition"];
        Parameters:
        value - The condition to set.
        Returns:
        This builder for chaining.
      • clearCondition

        public Product.Builder clearCondition()
        string condition = 11 [json_name = "condition"];
        Returns:
        This builder for chaining.
      • setConditionBytes

        public Product.Builder setConditionBytes​(com.google.protobuf.ByteString value)
        string condition = 11 [json_name = "condition"];
        Parameters:
        value - The bytes for condition to set.
        Returns:
        This builder for chaining.
      • getColor

        public java.lang.String getColor()
        string color = 12 [json_name = "color"];
        Specified by:
        getColor in interface ProductOrBuilder
        Returns:
        The color.
      • getColorBytes

        public com.google.protobuf.ByteString getColorBytes()
        string color = 12 [json_name = "color"];
        Specified by:
        getColorBytes in interface ProductOrBuilder
        Returns:
        The bytes for color.
      • setColor

        public Product.Builder setColor​(java.lang.String value)
        string color = 12 [json_name = "color"];
        Parameters:
        value - The color to set.
        Returns:
        This builder for chaining.
      • clearColor

        public Product.Builder clearColor()
        string color = 12 [json_name = "color"];
        Returns:
        This builder for chaining.
      • setColorBytes

        public Product.Builder setColorBytes​(com.google.protobuf.ByteString value)
        string color = 12 [json_name = "color"];
        Parameters:
        value - The bytes for color to set.
        Returns:
        This builder for chaining.
      • getBrand

        public java.lang.String getBrand()
        string brand = 13 [json_name = "brand"];
        Specified by:
        getBrand in interface ProductOrBuilder
        Returns:
        The brand.
      • getBrandBytes

        public com.google.protobuf.ByteString getBrandBytes()
        string brand = 13 [json_name = "brand"];
        Specified by:
        getBrandBytes in interface ProductOrBuilder
        Returns:
        The bytes for brand.
      • setBrand

        public Product.Builder setBrand​(java.lang.String value)
        string brand = 13 [json_name = "brand"];
        Parameters:
        value - The brand to set.
        Returns:
        This builder for chaining.
      • clearBrand

        public Product.Builder clearBrand()
        string brand = 13 [json_name = "brand"];
        Returns:
        This builder for chaining.
      • setBrandBytes

        public Product.Builder setBrandBytes​(com.google.protobuf.ByteString value)
        string brand = 13 [json_name = "brand"];
        Parameters:
        value - The bytes for brand to set.
        Returns:
        This builder for chaining.
      • getAvailability

        public java.lang.String getAvailability()
        string availability = 14 [json_name = "availability"];
        Specified by:
        getAvailability in interface ProductOrBuilder
        Returns:
        The availability.
      • getAvailabilityBytes

        public com.google.protobuf.ByteString getAvailabilityBytes()
        string availability = 14 [json_name = "availability"];
        Specified by:
        getAvailabilityBytes in interface ProductOrBuilder
        Returns:
        The bytes for availability.
      • setAvailability

        public Product.Builder setAvailability​(java.lang.String value)
        string availability = 14 [json_name = "availability"];
        Parameters:
        value - The availability to set.
        Returns:
        This builder for chaining.
      • clearAvailability

        public Product.Builder clearAvailability()
        string availability = 14 [json_name = "availability"];
        Returns:
        This builder for chaining.
      • setAvailabilityBytes

        public Product.Builder setAvailabilityBytes​(com.google.protobuf.ByteString value)
        string availability = 14 [json_name = "availability"];
        Parameters:
        value - The bytes for availability to set.
        Returns:
        This builder for chaining.
      • getLeague

        public java.lang.String getLeague()
        string league = 15 [json_name = "league"];
        Specified by:
        getLeague in interface ProductOrBuilder
        Returns:
        The league.
      • getLeagueBytes

        public com.google.protobuf.ByteString getLeagueBytes()
        string league = 15 [json_name = "league"];
        Specified by:
        getLeagueBytes in interface ProductOrBuilder
        Returns:
        The bytes for league.
      • setLeague

        public Product.Builder setLeague​(java.lang.String value)
        string league = 15 [json_name = "league"];
        Parameters:
        value - The league to set.
        Returns:
        This builder for chaining.
      • clearLeague

        public Product.Builder clearLeague()
        string league = 15 [json_name = "league"];
        Returns:
        This builder for chaining.
      • setLeagueBytes

        public Product.Builder setLeagueBytes​(com.google.protobuf.ByteString value)
        string league = 15 [json_name = "league"];
        Parameters:
        value - The bytes for league to set.
        Returns:
        This builder for chaining.
      • getTeam

        public java.lang.String getTeam()
        string team = 16 [json_name = "team"];
        Specified by:
        getTeam in interface ProductOrBuilder
        Returns:
        The team.
      • getTeamBytes

        public com.google.protobuf.ByteString getTeamBytes()
        string team = 16 [json_name = "team"];
        Specified by:
        getTeamBytes in interface ProductOrBuilder
        Returns:
        The bytes for team.
      • setTeam

        public Product.Builder setTeam​(java.lang.String value)
        string team = 16 [json_name = "team"];
        Parameters:
        value - The team to set.
        Returns:
        This builder for chaining.
      • clearTeam

        public Product.Builder clearTeam()
        string team = 16 [json_name = "team"];
        Returns:
        This builder for chaining.
      • setTeamBytes

        public Product.Builder setTeamBytes​(com.google.protobuf.ByteString value)
        string team = 16 [json_name = "team"];
        Parameters:
        value - The bytes for team to set.
        Returns:
        This builder for chaining.
      • getSizesList

        public java.util.List<java.lang.String> getSizesList()
        repeated string sizes = 17 [json_name = "sizes"];
        Specified by:
        getSizesList in interface ProductOrBuilder
        Returns:
        A list containing the sizes.
      • getSizesCount

        public int getSizesCount()
        repeated string sizes = 17 [json_name = "sizes"];
        Specified by:
        getSizesCount in interface ProductOrBuilder
        Returns:
        The count of sizes.
      • getSizes

        public java.lang.String getSizes​(int index)
        repeated string sizes = 17 [json_name = "sizes"];
        Specified by:
        getSizes in interface ProductOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sizes at the given index.
      • getSizesBytes

        public com.google.protobuf.ByteString getSizesBytes​(int index)
        repeated string sizes = 17 [json_name = "sizes"];
        Specified by:
        getSizesBytes in interface ProductOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sizes at the given index.
      • setSizes

        public Product.Builder setSizes​(int index,
                                        java.lang.String value)
        repeated string sizes = 17 [json_name = "sizes"];
        Parameters:
        index - The index to set the value at.
        value - The sizes to set.
        Returns:
        This builder for chaining.
      • addSizes

        public Product.Builder addSizes​(java.lang.String value)
        repeated string sizes = 17 [json_name = "sizes"];
        Parameters:
        value - The sizes to add.
        Returns:
        This builder for chaining.
      • addAllSizes

        public Product.Builder addAllSizes​(java.lang.Iterable<java.lang.String> values)
        repeated string sizes = 17 [json_name = "sizes"];
        Parameters:
        values - The sizes to add.
        Returns:
        This builder for chaining.
      • clearSizes

        public Product.Builder clearSizes()
        repeated string sizes = 17 [json_name = "sizes"];
        Returns:
        This builder for chaining.
      • addSizesBytes

        public Product.Builder addSizesBytes​(com.google.protobuf.ByteString value)
        repeated string sizes = 17 [json_name = "sizes"];
        Parameters:
        value - The bytes of the sizes to add.
        Returns:
        This builder for chaining.