Class QuestionStats.Builder

    • Method Detail

      • getId

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

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

        public QuestionStats.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 QuestionStats.Builder clearId()
        string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public QuestionStats.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.
      • hasQuestion

        public boolean hasQuestion()
        .streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];
        Specified by:
        hasQuestion in interface QuestionStatsOrBuilder
        Returns:
        Whether the question field is set.
      • clearQuestion

        public QuestionStats.Builder clearQuestion()
        .streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];
      • getStatisticsCount

        public int getStatisticsCount()
        repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
        Specified by:
        getStatisticsCount in interface QuestionStatsOrBuilder
      • setStatistics

        public QuestionStats.Builder setStatistics​(int index,
                                                   AnswerVotesStats value)
        repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
      • addStatistics

        public QuestionStats.Builder addStatistics​(int index,
                                                   AnswerVotesStats value)
        repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
      • addAllStatistics

        public QuestionStats.Builder addAllStatistics​(java.lang.Iterable<? extends AnswerVotesStats> values)
        repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
      • clearStatistics

        public QuestionStats.Builder clearStatistics()
        repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
      • removeStatistics

        public QuestionStats.Builder removeStatistics​(int index)
        repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];