Class ExtendedQuestionAnswer.Builder

    • Method Detail

      • setId

        public ExtendedQuestionAnswer.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 ExtendedQuestionAnswer.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.
      • setText

        public ExtendedQuestionAnswer.Builder setText​(java.lang.String value)
        string text = 2 [json_name = "text"];
        Parameters:
        value - The text to set.
        Returns:
        This builder for chaining.
      • setTextBytes

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

        public ExtendedQuestionAnswer.Builder setIcon​(java.lang.String value)
        string icon = 3 [json_name = "icon"];
        Parameters:
        value - The icon to set.
        Returns:
        This builder for chaining.
      • setIconBytes

        public ExtendedQuestionAnswer.Builder setIconBytes​(com.google.protobuf.ByteString value)
        string icon = 3 [json_name = "icon"];
        Parameters:
        value - The bytes for icon to set.
        Returns:
        This builder for chaining.
      • setCorrect

        public ExtendedQuestionAnswer.Builder setCorrect​(boolean value)
        bool correct = 4 [json_name = "correct"];
        Parameters:
        value - The correct to set.
        Returns:
        This builder for chaining.
      • setPoints

        public ExtendedQuestionAnswer.Builder setPoints​(int value)
        uint32 points = 5 [json_name = "points"];
        Parameters:
        value - The points to set.
        Returns:
        This builder for chaining.
      • getPercentage

        @Deprecated
        public int getPercentage()
        Deprecated.
        streamlayer.interactive.ExtendedQuestionAnswer.percentage is deprecated. See streamlayer/interactive/interactive.common.proto;l=382
        uint32 percentage = 6 [json_name = "percentage", deprecated = true];
        Specified by:
        getPercentage in interface ExtendedQuestionAnswerOrBuilder
        Returns:
        The percentage.
      • setPercentage

        @Deprecated
        public ExtendedQuestionAnswer.Builder setPercentage​(int value)
        Deprecated.
        streamlayer.interactive.ExtendedQuestionAnswer.percentage is deprecated. See streamlayer/interactive/interactive.common.proto;l=382
        uint32 percentage = 6 [json_name = "percentage", deprecated = true];
        Parameters:
        value - The percentage to set.
        Returns:
        This builder for chaining.
      • clearPercentage

        @Deprecated
        public ExtendedQuestionAnswer.Builder clearPercentage()
        Deprecated.
        streamlayer.interactive.ExtendedQuestionAnswer.percentage is deprecated. See streamlayer/interactive/interactive.common.proto;l=382
        uint32 percentage = 6 [json_name = "percentage", deprecated = true];
        Returns:
        This builder for chaining.
      • getYouVoted

        public boolean getYouVoted()
         mark answer voted by you, not available on subscription
         
        bool you_voted = 7 [json_name = "youVoted"];
        Specified by:
        getYouVoted in interface ExtendedQuestionAnswerOrBuilder
        Returns:
        The youVoted.
      • setYouVoted

        public ExtendedQuestionAnswer.Builder setYouVoted​(boolean value)
         mark answer voted by you, not available on subscription
         
        bool you_voted = 7 [json_name = "youVoted"];
        Parameters:
        value - The youVoted to set.
        Returns:
        This builder for chaining.
      • clearYouVoted

        public ExtendedQuestionAnswer.Builder clearYouVoted()
         mark answer voted by you, not available on subscription
         
        bool you_voted = 7 [json_name = "youVoted"];
        Returns:
        This builder for chaining.
      • setPercentageDecimal

        public ExtendedQuestionAnswer.Builder setPercentageDecimal​(double value)
        double percentage_decimal = 8 [json_name = "percentageDecimal"];
        Parameters:
        value - The percentageDecimal to set.
        Returns:
        This builder for chaining.
      • clearPercentageDecimal

        public ExtendedQuestionAnswer.Builder clearPercentageDecimal()
        double percentage_decimal = 8 [json_name = "percentageDecimal"];
        Returns:
        This builder for chaining.
      • getPointsEarned

        public int getPointsEarned()
         points set in the vote, e.g. for trivia points = 0 when trivia is closed
         
        uint32 points_earned = 9 [json_name = "pointsEarned"];
        Specified by:
        getPointsEarned in interface ExtendedQuestionAnswerOrBuilder
        Returns:
        The pointsEarned.
      • setPointsEarned

        public ExtendedQuestionAnswer.Builder setPointsEarned​(int value)
         points set in the vote, e.g. for trivia points = 0 when trivia is closed
         
        uint32 points_earned = 9 [json_name = "pointsEarned"];
        Parameters:
        value - The pointsEarned to set.
        Returns:
        This builder for chaining.
      • clearPointsEarned

        public ExtendedQuestionAnswer.Builder clearPointsEarned()
         points set in the vote, e.g. for trivia points = 0 when trivia is closed
         
        uint32 points_earned = 9 [json_name = "pointsEarned"];
        Returns:
        This builder for chaining.