Class FeedItemAttributes.Builder

    • Method Detail

      • getIdBytes

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

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

        public FeedItemAttributes.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.
      • getTypeValue

        public int getTypeValue()
        .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
        Specified by:
        getTypeValue in interface FeedItemAttributesOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public FeedItemAttributes.Builder setTypeValue​(int value)
        .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • setType

        public FeedItemAttributes.Builder setType​(QuestionType value)
        .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • clearType

        public FeedItemAttributes.Builder clearType()
        .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
        .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
        Specified by:
        getStatusValue in interface FeedItemAttributesOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public FeedItemAttributes.Builder setStatusValue​(int value)
        .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • setStatus

        public FeedItemAttributes.Builder setStatus​(QuestionStatus value)
        .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public FeedItemAttributes.Builder clearStatus()
        .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
        Returns:
        This builder for chaining.
      • getCreated

        public java.lang.String getCreated()
        string created = 8 [json_name = "created"];
        Specified by:
        getCreated in interface FeedItemAttributesOrBuilder
        Returns:
        The created.
      • getCreatedBytes

        public com.google.protobuf.ByteString getCreatedBytes()
        string created = 8 [json_name = "created"];
        Specified by:
        getCreatedBytes in interface FeedItemAttributesOrBuilder
        Returns:
        The bytes for created.
      • setCreated

        public FeedItemAttributes.Builder setCreated​(java.lang.String value)
        string created = 8 [json_name = "created"];
        Parameters:
        value - The created to set.
        Returns:
        This builder for chaining.
      • clearCreated

        public FeedItemAttributes.Builder clearCreated()
        string created = 8 [json_name = "created"];
        Returns:
        This builder for chaining.
      • setCreatedBytes

        public FeedItemAttributes.Builder setCreatedBytes​(com.google.protobuf.ByteString value)
        string created = 8 [json_name = "created"];
        Parameters:
        value - The bytes for created to set.
        Returns:
        This builder for chaining.
      • getAdUnitValue

        public int getAdUnitValue()
        .streamlayer.interactive.AdUnit ad_unit = 10 [json_name = "adUnit"];
        Specified by:
        getAdUnitValue in interface FeedItemAttributesOrBuilder
        Returns:
        The enum numeric value on the wire for adUnit.
      • setAdUnitValue

        public FeedItemAttributes.Builder setAdUnitValue​(int value)
        .streamlayer.interactive.AdUnit ad_unit = 10 [json_name = "adUnit"];
        Parameters:
        value - The adUnit to set.
        Returns:
        This builder for chaining.
      • setAdUnit

        public FeedItemAttributes.Builder setAdUnit​(AdUnit value)
        .streamlayer.interactive.AdUnit ad_unit = 10 [json_name = "adUnit"];
        Parameters:
        value - The enum numeric value on the wire for adUnit to set.
        Returns:
        This builder for chaining.
      • clearAdUnit

        public FeedItemAttributes.Builder clearAdUnit()
        .streamlayer.interactive.AdUnit ad_unit = 10 [json_name = "adUnit"];
        Returns:
        This builder for chaining.
      • hasQuestion

        public boolean hasQuestion()
        .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
        Specified by:
        hasQuestion in interface FeedItemAttributesOrBuilder
        Returns:
        Whether the question field is set.
      • clearQuestion

        public FeedItemAttributes.Builder clearQuestion()
        .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
      • hasTweet

        public boolean hasTweet()
        .streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
        Specified by:
        hasTweet in interface FeedItemAttributesOrBuilder
        Returns:
        Whether the tweet field is set.
      • clearTweet

        public FeedItemAttributes.Builder clearTweet()
        .streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
      • hasInsight

        public boolean hasInsight()
        .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
        Specified by:
        hasInsight in interface FeedItemAttributesOrBuilder
        Returns:
        Whether the insight field is set.
      • clearInsight

        public FeedItemAttributes.Builder clearInsight()
        .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
      • hasPromotion

        public boolean hasPromotion()
        .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
        Specified by:
        hasPromotion in interface FeedItemAttributesOrBuilder
        Returns:
        Whether the promotion field is set.
      • clearPromotion

        public FeedItemAttributes.Builder clearPromotion()
        .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
      • hasAdPromotion

        public boolean hasAdPromotion()
         check mapping on backend
         
        optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
        Specified by:
        hasAdPromotion in interface FeedItemAttributesOrBuilder
        Returns:
        Whether the adPromotion field is set.
      • getAdPromotion

        public Promotion getAdPromotion()
         check mapping on backend
         
        optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
        Specified by:
        getAdPromotion in interface FeedItemAttributesOrBuilder
        Returns:
        The adPromotion.
      • setAdPromotion

        public FeedItemAttributes.Builder setAdPromotion​(Promotion value)
         check mapping on backend
         
        optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
      • setAdPromotion

        public FeedItemAttributes.Builder setAdPromotion​(Promotion.Builder builderForValue)
         check mapping on backend
         
        optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
      • mergeAdPromotion

        public FeedItemAttributes.Builder mergeAdPromotion​(Promotion value)
         check mapping on backend
         
        optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
      • clearAdPromotion

        public FeedItemAttributes.Builder clearAdPromotion()
         check mapping on backend
         
        optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
      • hasBackgroundImage

        public boolean hasBackgroundImage()
        optional .streamlayer.interactive.BackgroundImage background_image = 11 [json_name = "backgroundImage"];
        Specified by:
        hasBackgroundImage in interface FeedItemAttributesOrBuilder
        Returns:
        Whether the backgroundImage field is set.
      • setBackgroundImage

        public FeedItemAttributes.Builder setBackgroundImage​(BackgroundImage value)
        optional .streamlayer.interactive.BackgroundImage background_image = 11 [json_name = "backgroundImage"];
      • mergeBackgroundImage

        public FeedItemAttributes.Builder mergeBackgroundImage​(BackgroundImage value)
        optional .streamlayer.interactive.BackgroundImage background_image = 11 [json_name = "backgroundImage"];
      • clearBackgroundImage

        public FeedItemAttributes.Builder clearBackgroundImage()
        optional .streamlayer.interactive.BackgroundImage background_image = 11 [json_name = "backgroundImage"];