Class ExtendedQuestion.Builder

    • Method Detail

      • getId

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

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

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

        public ExtendedQuestion.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 ExtendedQuestionOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public ExtendedQuestion.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 ExtendedQuestion.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 ExtendedQuestion.Builder clearType()
        .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
        Returns:
        This builder for chaining.
      • getSubject

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

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

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

        public ExtendedQuestion.Builder clearSubject()
        string subject = 3 [json_name = "subject"];
        Returns:
        This builder for chaining.
      • setSubjectBytes

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

        public boolean hasOptions()
        .streamlayer.interactive.QuestionOptions options = 4 [json_name = "options"];
        Specified by:
        hasOptions in interface ExtendedQuestionOrBuilder
        Returns:
        Whether the options field is set.
      • clearOptions

        public ExtendedQuestion.Builder clearOptions()
        .streamlayer.interactive.QuestionOptions options = 4 [json_name = "options"];
      • hasAppearance

        public boolean hasAppearance()
        .streamlayer.interactive.QuestionAppearance appearance = 5 [json_name = "appearance"];
        Specified by:
        hasAppearance in interface ExtendedQuestionOrBuilder
        Returns:
        Whether the appearance field is set.
      • clearAppearance

        public ExtendedQuestion.Builder clearAppearance()
        .streamlayer.interactive.QuestionAppearance appearance = 5 [json_name = "appearance"];
      • hasSponsorship

        public boolean hasSponsorship()
        .streamlayer.interactive.Sponsorship sponsorship = 6 [json_name = "sponsorship"];
        Specified by:
        hasSponsorship in interface ExtendedQuestionOrBuilder
        Returns:
        Whether the sponsorship field is set.
      • clearSponsorship

        public ExtendedQuestion.Builder clearSponsorship()
        .streamlayer.interactive.Sponsorship sponsorship = 6 [json_name = "sponsorship"];
      • hasNotification

        public boolean hasNotification()
        .streamlayer.interactive.QuestionNotification notification = 7 [json_name = "notification"];
        Specified by:
        hasNotification in interface ExtendedQuestionOrBuilder
        Returns:
        Whether the notification field is set.
      • clearNotification

        public ExtendedQuestion.Builder clearNotification()
        .streamlayer.interactive.QuestionNotification notification = 7 [json_name = "notification"];
      • getAnswersCount

        public int getAnswersCount()
        repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8 [json_name = "answers"];
        Specified by:
        getAnswersCount in interface ExtendedQuestionOrBuilder
      • clearAnswers

        public ExtendedQuestion.Builder clearAnswers()
        repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8 [json_name = "answers"];
      • removeAnswers

        public ExtendedQuestion.Builder removeAnswers​(int index)
        repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8 [json_name = "answers"];
      • getStatusValue

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

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

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

        public ExtendedQuestion.Builder clearStatus()
        .streamlayer.interactive.QuestionStatus status = 9 [json_name = "status"];
        Returns:
        This builder for chaining.
      • setPosition

        public ExtendedQuestion.Builder setPosition​(int value)
        uint32 position = 10 [json_name = "position"];
        Parameters:
        value - The position to set.
        Returns:
        This builder for chaining.
      • clearPosition

        public ExtendedQuestion.Builder clearPosition()
        uint32 position = 10 [json_name = "position"];
        Returns:
        This builder for chaining.
      • getMarketClosed

        public boolean getMarketClosed()
        bool market_closed = 11 [json_name = "marketClosed"];
        Specified by:
        getMarketClosed in interface ExtendedQuestionOrBuilder
        Returns:
        The marketClosed.
      • setMarketClosed

        public ExtendedQuestion.Builder setMarketClosed​(boolean value)
        bool market_closed = 11 [json_name = "marketClosed"];
        Parameters:
        value - The marketClosed to set.
        Returns:
        This builder for chaining.
      • clearMarketClosed

        public ExtendedQuestion.Builder clearMarketClosed()
        bool market_closed = 11 [json_name = "marketClosed"];
        Returns:
        This builder for chaining.
      • getActivatedAt

        public java.lang.String getActivatedAt()
        string activated_at = 12 [json_name = "activatedAt"];
        Specified by:
        getActivatedAt in interface ExtendedQuestionOrBuilder
        Returns:
        The activatedAt.
      • getActivatedAtBytes

        public com.google.protobuf.ByteString getActivatedAtBytes()
        string activated_at = 12 [json_name = "activatedAt"];
        Specified by:
        getActivatedAtBytes in interface ExtendedQuestionOrBuilder
        Returns:
        The bytes for activatedAt.
      • setActivatedAt

        public ExtendedQuestion.Builder setActivatedAt​(java.lang.String value)
        string activated_at = 12 [json_name = "activatedAt"];
        Parameters:
        value - The activatedAt to set.
        Returns:
        This builder for chaining.
      • clearActivatedAt

        public ExtendedQuestion.Builder clearActivatedAt()
        string activated_at = 12 [json_name = "activatedAt"];
        Returns:
        This builder for chaining.
      • setActivatedAtBytes

        public ExtendedQuestion.Builder setActivatedAtBytes​(com.google.protobuf.ByteString value)
        string activated_at = 12 [json_name = "activatedAt"];
        Parameters:
        value - The bytes for activatedAt to set.
        Returns:
        This builder for chaining.
      • getAnswerSetAt

        public java.lang.String getAnswerSetAt()
        string answer_set_at = 13 [json_name = "answerSetAt"];
        Specified by:
        getAnswerSetAt in interface ExtendedQuestionOrBuilder
        Returns:
        The answerSetAt.
      • getAnswerSetAtBytes

        public com.google.protobuf.ByteString getAnswerSetAtBytes()
        string answer_set_at = 13 [json_name = "answerSetAt"];
        Specified by:
        getAnswerSetAtBytes in interface ExtendedQuestionOrBuilder
        Returns:
        The bytes for answerSetAt.
      • setAnswerSetAt

        public ExtendedQuestion.Builder setAnswerSetAt​(java.lang.String value)
        string answer_set_at = 13 [json_name = "answerSetAt"];
        Parameters:
        value - The answerSetAt to set.
        Returns:
        This builder for chaining.
      • clearAnswerSetAt

        public ExtendedQuestion.Builder clearAnswerSetAt()
        string answer_set_at = 13 [json_name = "answerSetAt"];
        Returns:
        This builder for chaining.
      • setAnswerSetAtBytes

        public ExtendedQuestion.Builder setAnswerSetAtBytes​(com.google.protobuf.ByteString value)
        string answer_set_at = 13 [json_name = "answerSetAt"];
        Parameters:
        value - The bytes for answerSetAt to set.
        Returns:
        This builder for chaining.
      • getEventId

        public java.lang.String getEventId()
        string event_id = 14 [json_name = "eventId"];
        Specified by:
        getEventId in interface ExtendedQuestionOrBuilder
        Returns:
        The eventId.
      • getEventIdBytes

        public com.google.protobuf.ByteString getEventIdBytes()
        string event_id = 14 [json_name = "eventId"];
        Specified by:
        getEventIdBytes in interface ExtendedQuestionOrBuilder
        Returns:
        The bytes for eventId.
      • setEventId

        public ExtendedQuestion.Builder setEventId​(java.lang.String value)
        string event_id = 14 [json_name = "eventId"];
        Parameters:
        value - The eventId to set.
        Returns:
        This builder for chaining.
      • clearEventId

        public ExtendedQuestion.Builder clearEventId()
        string event_id = 14 [json_name = "eventId"];
        Returns:
        This builder for chaining.
      • setEventIdBytes

        public ExtendedQuestion.Builder setEventIdBytes​(com.google.protobuf.ByteString value)
        string event_id = 14 [json_name = "eventId"];
        Parameters:
        value - The bytes for eventId to set.
        Returns:
        This builder for chaining.
      • hasBypassNotifications

        public boolean hasBypassNotifications()
        .streamlayer.interactive.BypassNotifications bypass_notifications = 15 [json_name = "bypassNotifications"];
        Specified by:
        hasBypassNotifications in interface ExtendedQuestionOrBuilder
        Returns:
        Whether the bypassNotifications field is set.
      • setBypassNotifications

        public ExtendedQuestion.Builder setBypassNotifications​(BypassNotifications value)
        .streamlayer.interactive.BypassNotifications bypass_notifications = 15 [json_name = "bypassNotifications"];
      • mergeBypassNotifications

        public ExtendedQuestion.Builder mergeBypassNotifications​(BypassNotifications value)
        .streamlayer.interactive.BypassNotifications bypass_notifications = 15 [json_name = "bypassNotifications"];
      • clearBypassNotifications

        public ExtendedQuestion.Builder clearBypassNotifications()
        .streamlayer.interactive.BypassNotifications bypass_notifications = 15 [json_name = "bypassNotifications"];
      • hasPromotion

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

        public ExtendedQuestion.Builder clearPromotion()
        .streamlayer.interactive.Promotion promotion = 16 [json_name = "promotion"];