Class PickHistory.Builder

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

    public static final class PickHistory.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<PickHistory,​PickHistory.Builder>
    implements PickHistoryOrBuilder
    Protobuf type streamlayer.interactive.feed.PickHistory
    • Method Detail

      • getQuestionId

        public java.lang.String getQuestionId()
        string question_id = 1 [json_name = "questionId"];
        Specified by:
        getQuestionId in interface PickHistoryOrBuilder
        Returns:
        The questionId.
      • getQuestionIdBytes

        public com.google.protobuf.ByteString getQuestionIdBytes()
        string question_id = 1 [json_name = "questionId"];
        Specified by:
        getQuestionIdBytes in interface PickHistoryOrBuilder
        Returns:
        The bytes for questionId.
      • setQuestionId

        public PickHistory.Builder setQuestionId​(java.lang.String value)
        string question_id = 1 [json_name = "questionId"];
        Parameters:
        value - The questionId to set.
        Returns:
        This builder for chaining.
      • clearQuestionId

        public PickHistory.Builder clearQuestionId()
        string question_id = 1 [json_name = "questionId"];
        Returns:
        This builder for chaining.
      • setQuestionIdBytes

        public PickHistory.Builder setQuestionIdBytes​(com.google.protobuf.ByteString value)
        string question_id = 1 [json_name = "questionId"];
        Parameters:
        value - The bytes for questionId to set.
        Returns:
        This builder for chaining.
      • getAnswerId

        public java.lang.String getAnswerId()
        string answer_id = 2 [json_name = "answerId"];
        Specified by:
        getAnswerId in interface PickHistoryOrBuilder
        Returns:
        The answerId.
      • getAnswerIdBytes

        public com.google.protobuf.ByteString getAnswerIdBytes()
        string answer_id = 2 [json_name = "answerId"];
        Specified by:
        getAnswerIdBytes in interface PickHistoryOrBuilder
        Returns:
        The bytes for answerId.
      • setAnswerId

        public PickHistory.Builder setAnswerId​(java.lang.String value)
        string answer_id = 2 [json_name = "answerId"];
        Parameters:
        value - The answerId to set.
        Returns:
        This builder for chaining.
      • clearAnswerId

        public PickHistory.Builder clearAnswerId()
        string answer_id = 2 [json_name = "answerId"];
        Returns:
        This builder for chaining.
      • setAnswerIdBytes

        public PickHistory.Builder setAnswerIdBytes​(com.google.protobuf.ByteString value)
        string answer_id = 2 [json_name = "answerId"];
        Parameters:
        value - The bytes for answerId to set.
        Returns:
        This builder for chaining.
      • getStatusValue

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

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

        public PickHistory.Builder setStatus​(PickHistoryStatus value)
        .streamlayer.interactive.feed.PickHistoryStatus 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 PickHistory.Builder clearStatus()
        .streamlayer.interactive.feed.PickHistoryStatus status = 3 [json_name = "status"];
        Returns:
        This builder for chaining.
      • getQuestionTypeValue

        public int getQuestionTypeValue()
        .streamlayer.interactive.QuestionType question_type = 4 [json_name = "questionType"];
        Specified by:
        getQuestionTypeValue in interface PickHistoryOrBuilder
        Returns:
        The enum numeric value on the wire for questionType.
      • setQuestionTypeValue

        public PickHistory.Builder setQuestionTypeValue​(int value)
        .streamlayer.interactive.QuestionType question_type = 4 [json_name = "questionType"];
        Parameters:
        value - The questionType to set.
        Returns:
        This builder for chaining.
      • getQuestionType

        public QuestionType getQuestionType()
        .streamlayer.interactive.QuestionType question_type = 4 [json_name = "questionType"];
        Specified by:
        getQuestionType in interface PickHistoryOrBuilder
        Returns:
        The questionType.
      • setQuestionType

        public PickHistory.Builder setQuestionType​(QuestionType value)
        .streamlayer.interactive.QuestionType question_type = 4 [json_name = "questionType"];
        Parameters:
        value - The enum numeric value on the wire for questionType to set.
        Returns:
        This builder for chaining.
      • clearQuestionType

        public PickHistory.Builder clearQuestionType()
        .streamlayer.interactive.QuestionType question_type = 4 [json_name = "questionType"];
        Returns:
        This builder for chaining.
      • getSubject

        public java.lang.String getSubject()
         question text
         
        string subject = 5 [json_name = "subject"];
        Specified by:
        getSubject in interface PickHistoryOrBuilder
        Returns:
        The subject.
      • getSubjectBytes

        public com.google.protobuf.ByteString getSubjectBytes()
         question text
         
        string subject = 5 [json_name = "subject"];
        Specified by:
        getSubjectBytes in interface PickHistoryOrBuilder
        Returns:
        The bytes for subject.
      • setSubject

        public PickHistory.Builder setSubject​(java.lang.String value)
         question text
         
        string subject = 5 [json_name = "subject"];
        Parameters:
        value - The subject to set.
        Returns:
        This builder for chaining.
      • clearSubject

        public PickHistory.Builder clearSubject()
         question text
         
        string subject = 5 [json_name = "subject"];
        Returns:
        This builder for chaining.
      • setSubjectBytes

        public PickHistory.Builder setSubjectBytes​(com.google.protobuf.ByteString value)
         question text
         
        string subject = 5 [json_name = "subject"];
        Parameters:
        value - The bytes for subject to set.
        Returns:
        This builder for chaining.
      • getText

        public java.lang.String getText()
         answer text
         
        string text = 6 [json_name = "text"];
        Specified by:
        getText in interface PickHistoryOrBuilder
        Returns:
        The text.
      • getTextBytes

        public com.google.protobuf.ByteString getTextBytes()
         answer text
         
        string text = 6 [json_name = "text"];
        Specified by:
        getTextBytes in interface PickHistoryOrBuilder
        Returns:
        The bytes for text.
      • setText

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

        public PickHistory.Builder clearText()
         answer text
         
        string text = 6 [json_name = "text"];
        Returns:
        This builder for chaining.
      • setTextBytes

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

        public boolean getOpenForVoting()
        bool open_for_voting = 7 [json_name = "openForVoting"];
        Specified by:
        getOpenForVoting in interface PickHistoryOrBuilder
        Returns:
        The openForVoting.
      • setOpenForVoting

        public PickHistory.Builder setOpenForVoting​(boolean value)
        bool open_for_voting = 7 [json_name = "openForVoting"];
        Parameters:
        value - The openForVoting to set.
        Returns:
        This builder for chaining.
      • clearOpenForVoting

        public PickHistory.Builder clearOpenForVoting()
        bool open_for_voting = 7 [json_name = "openForVoting"];
        Returns:
        This builder for chaining.
      • getQuestionStatusValue

        public int getQuestionStatusValue()
        .streamlayer.interactive.QuestionStatus question_status = 8 [json_name = "questionStatus"];
        Specified by:
        getQuestionStatusValue in interface PickHistoryOrBuilder
        Returns:
        The enum numeric value on the wire for questionStatus.
      • setQuestionStatusValue

        public PickHistory.Builder setQuestionStatusValue​(int value)
        .streamlayer.interactive.QuestionStatus question_status = 8 [json_name = "questionStatus"];
        Parameters:
        value - The questionStatus to set.
        Returns:
        This builder for chaining.
      • setQuestionStatus

        public PickHistory.Builder setQuestionStatus​(QuestionStatus value)
        .streamlayer.interactive.QuestionStatus question_status = 8 [json_name = "questionStatus"];
        Parameters:
        value - The enum numeric value on the wire for questionStatus to set.
        Returns:
        This builder for chaining.
      • clearQuestionStatus

        public PickHistory.Builder clearQuestionStatus()
        .streamlayer.interactive.QuestionStatus question_status = 8 [json_name = "questionStatus"];
        Returns:
        This builder for chaining.