Class Question.Builder

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

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

      • getId

        public java.lang.String getId()
        string id = 1;
        Specified by:
        getId in interface QuestionOrBuilder
        Returns:
        The id.
      • getIdBytes

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

        public Question.Builder setId​(java.lang.String value)
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Question.Builder clearId()
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public Question.Builder setIdBytes​(com.google.protobuf.ByteString value)
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getTypeValue

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

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

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

        public Question.Builder clearType()
        .streamlayer.interactive.QuestionType type = 2;
        Returns:
        This builder for chaining.
      • getSubject

        public java.lang.String getSubject()
        string subject = 3;
        Specified by:
        getSubject in interface QuestionOrBuilder
        Returns:
        The subject.
      • getSubjectBytes

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

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

        public Question.Builder clearSubject()
        string subject = 3;
        Returns:
        This builder for chaining.
      • setSubjectBytes

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

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

        public Question.Builder clearOptions()
        .streamlayer.interactive.QuestionOptions options = 4;
      • hasAppearance

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

        public Question.Builder clearAppearance()
        .streamlayer.interactive.QuestionAppearance appearance = 5;
      • hasSponsorship

        public boolean hasSponsorship()
        .streamlayer.interactive.Sponsorship sponsorship = 6;
        Specified by:
        hasSponsorship in interface QuestionOrBuilder
        Returns:
        Whether the sponsorship field is set.
      • mergeSponsorship

        public Question.Builder mergeSponsorship​(Sponsorship value)
        .streamlayer.interactive.Sponsorship sponsorship = 6;
      • clearSponsorship

        public Question.Builder clearSponsorship()
        .streamlayer.interactive.Sponsorship sponsorship = 6;
      • hasNotification

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

        public Question.Builder clearNotification()
        .streamlayer.interactive.QuestionNotification notification = 7;
      • getAnswersCount

        public int getAnswersCount()
        repeated .streamlayer.interactive.QuestionAnswer answers = 8;
        Specified by:
        getAnswersCount in interface QuestionOrBuilder
      • addAllAnswers

        public Question.Builder addAllAnswers​(java.lang.Iterable<? extends QuestionAnswer> values)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8;
      • clearAnswers

        public Question.Builder clearAnswers()
        repeated .streamlayer.interactive.QuestionAnswer answers = 8;
      • removeAnswers

        public Question.Builder removeAnswers​(int index)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8;
      • getStatusValue

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

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

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

        public Question.Builder clearStatus()
        .streamlayer.interactive.QuestionStatus status = 9;
        Returns:
        This builder for chaining.
      • getPosition

        public int getPosition()
        uint32 position = 10;
        Specified by:
        getPosition in interface QuestionOrBuilder
        Returns:
        The position.
      • setPosition

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

        public Question.Builder clearPosition()
        uint32 position = 10;
        Returns:
        This builder for chaining.
      • getMarketClosed

        public boolean getMarketClosed()
        bool market_closed = 11;
        Specified by:
        getMarketClosed in interface QuestionOrBuilder
        Returns:
        The marketClosed.
      • setMarketClosed

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

        public Question.Builder clearMarketClosed()
        bool market_closed = 11;
        Returns:
        This builder for chaining.
      • getActivatedAt

        public java.lang.String getActivatedAt()
        string activated_at = 12;
        Specified by:
        getActivatedAt in interface QuestionOrBuilder
        Returns:
        The activatedAt.
      • getActivatedAtBytes

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

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

        public Question.Builder clearActivatedAt()
        string activated_at = 12;
        Returns:
        This builder for chaining.
      • setActivatedAtBytes

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

        public java.lang.String getAnswerSetAt()
        string answer_set_at = 13;
        Specified by:
        getAnswerSetAt in interface QuestionOrBuilder
        Returns:
        The answerSetAt.
      • getAnswerSetAtBytes

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

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

        public Question.Builder clearAnswerSetAt()
        string answer_set_at = 13;
        Returns:
        This builder for chaining.
      • setAnswerSetAtBytes

        public Question.Builder setAnswerSetAtBytes​(com.google.protobuf.ByteString value)
        string answer_set_at = 13;
        Parameters:
        value - The bytes for answerSetAt to set.
        Returns:
        This builder for chaining.
      • containsOverrides

        public boolean containsOverrides​(java.lang.String key)
         path, value
         
        map<string, bool> overrides = 14;
        Specified by:
        containsOverrides in interface QuestionOrBuilder
      • removeOverrides

        public Question.Builder removeOverrides​(java.lang.String key)
         path, value
         
        map<string, bool> overrides = 14;
      • getOverridesMap

        public java.util.Map<java.lang.String,​java.lang.Boolean> getOverridesMap()
         path, value
         
        map<string, bool> overrides = 14;
        Specified by:
        getOverridesMap in interface QuestionOrBuilder
      • getOverridesOrDefault

        public boolean getOverridesOrDefault​(java.lang.String key,
                                             boolean defaultValue)
         path, value
         
        map<string, bool> overrides = 14;
        Specified by:
        getOverridesOrDefault in interface QuestionOrBuilder
      • getOverridesOrThrow

        public boolean getOverridesOrThrow​(java.lang.String key)
         path, value
         
        map<string, bool> overrides = 14;
        Specified by:
        getOverridesOrThrow in interface QuestionOrBuilder
      • putOverrides

        public Question.Builder putOverrides​(java.lang.String key,
                                             boolean value)
         path, value
         
        map<string, bool> overrides = 14;
      • putAllOverrides

        public Question.Builder putAllOverrides​(java.util.Map<java.lang.String,​java.lang.Boolean> values)
         path, value
         
        map<string, bool> overrides = 14;
      • getEventId

        public java.lang.String getEventId()
        string event_id = 15;
        Specified by:
        getEventId in interface QuestionOrBuilder
        Returns:
        The eventId.
      • getEventIdBytes

        public com.google.protobuf.ByteString getEventIdBytes()
        string event_id = 15;
        Specified by:
        getEventIdBytes in interface QuestionOrBuilder
        Returns:
        The bytes for eventId.
      • setEventId

        public Question.Builder setEventId​(java.lang.String value)
        string event_id = 15;
        Parameters:
        value - The eventId to set.
        Returns:
        This builder for chaining.
      • clearEventId

        public Question.Builder clearEventId()
        string event_id = 15;
        Returns:
        This builder for chaining.
      • setEventIdBytes

        public Question.Builder setEventIdBytes​(com.google.protobuf.ByteString value)
        string event_id = 15;
        Parameters:
        value - The bytes for eventId to set.
        Returns:
        This builder for chaining.
      • hasStreamTimestamp

        public boolean hasStreamTimestamp()
        .google.protobuf.Timestamp stream_timestamp = 16;
        Specified by:
        hasStreamTimestamp in interface QuestionOrBuilder
        Returns:
        Whether the streamTimestamp field is set.
      • getStreamTimestamp

        public com.google.protobuf.Timestamp getStreamTimestamp()
        .google.protobuf.Timestamp stream_timestamp = 16;
        Specified by:
        getStreamTimestamp in interface QuestionOrBuilder
        Returns:
        The streamTimestamp.
      • setStreamTimestamp

        public Question.Builder setStreamTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp stream_timestamp = 16;
      • setStreamTimestamp

        public Question.Builder setStreamTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp stream_timestamp = 16;
      • mergeStreamTimestamp

        public Question.Builder mergeStreamTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp stream_timestamp = 16;
      • clearStreamTimestamp

        public Question.Builder clearStreamTimestamp()
        .google.protobuf.Timestamp stream_timestamp = 16;