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 [json_name = "id"];
        Specified by:
        getId in interface QuestionOrBuilder
        Returns:
        The id.
      • getIdBytes

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

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

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

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

        public QuestionType getType()
        .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
        Specified by:
        getType in interface QuestionOrBuilder
        Returns:
        The type.
      • setType

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

        public boolean hasSubject()
        optional string subject = 3 [json_name = "subject"];
        Specified by:
        hasSubject in interface QuestionOrBuilder
        Returns:
        Whether the subject field is set.
      • getSubject

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

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

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

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

        public Question.Builder setSubjectBytes​(com.google.protobuf.ByteString value)
        optional 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 QuestionOrBuilder
        Returns:
        Whether the options field is set.
      • mergeOptions

        public Question.Builder mergeOptions​(QuestionOptions value)
        .streamlayer.interactive.QuestionOptions options = 4 [json_name = "options"];
      • clearOptions

        public Question.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 QuestionOrBuilder
        Returns:
        Whether the appearance field is set.
      • setAppearance

        public Question.Builder setAppearance​(QuestionAppearance value)
        .streamlayer.interactive.QuestionAppearance appearance = 5 [json_name = "appearance"];
      • mergeAppearance

        public Question.Builder mergeAppearance​(QuestionAppearance value)
        .streamlayer.interactive.QuestionAppearance appearance = 5 [json_name = "appearance"];
      • clearAppearance

        public Question.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 QuestionOrBuilder
        Returns:
        Whether the sponsorship field is set.
      • getSponsorship

        public Sponsorship getSponsorship()
        .streamlayer.interactive.Sponsorship sponsorship = 6 [json_name = "sponsorship"];
        Specified by:
        getSponsorship in interface QuestionOrBuilder
        Returns:
        The sponsorship.
      • setSponsorship

        public Question.Builder setSponsorship​(Sponsorship value)
        .streamlayer.interactive.Sponsorship sponsorship = 6 [json_name = "sponsorship"];
      • setSponsorship

        public Question.Builder setSponsorship​(Sponsorship.Builder builderForValue)
        .streamlayer.interactive.Sponsorship sponsorship = 6 [json_name = "sponsorship"];
      • mergeSponsorship

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

        public Question.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 QuestionOrBuilder
        Returns:
        Whether the notification field is set.
      • setNotification

        public Question.Builder setNotification​(QuestionNotification value)
        .streamlayer.interactive.QuestionNotification notification = 7 [json_name = "notification"];
      • mergeNotification

        public Question.Builder mergeNotification​(QuestionNotification value)
        .streamlayer.interactive.QuestionNotification notification = 7 [json_name = "notification"];
      • clearNotification

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

        public int getAnswersCount()
        repeated .streamlayer.interactive.QuestionAnswer answers = 8 [json_name = "answers"];
        Specified by:
        getAnswersCount in interface QuestionOrBuilder
      • getAnswers

        public QuestionAnswer getAnswers​(int index)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8 [json_name = "answers"];
        Specified by:
        getAnswers in interface QuestionOrBuilder
      • setAnswers

        public Question.Builder setAnswers​(int index,
                                           QuestionAnswer value)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8 [json_name = "answers"];
      • setAnswers

        public Question.Builder setAnswers​(int index,
                                           QuestionAnswer.Builder builderForValue)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8 [json_name = "answers"];
      • addAnswers

        public Question.Builder addAnswers​(QuestionAnswer value)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8 [json_name = "answers"];
      • addAnswers

        public Question.Builder addAnswers​(int index,
                                           QuestionAnswer value)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8 [json_name = "answers"];
      • addAnswers

        public Question.Builder addAnswers​(int index,
                                           QuestionAnswer.Builder builderForValue)
        repeated .streamlayer.interactive.QuestionAnswer answers = 8 [json_name = "answers"];
      • addAllAnswers

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

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

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

        public int getStatusValue()
        .streamlayer.interactive.QuestionStatus status = 9 [json_name = "status"];
        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 [json_name = "status"];
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • getStatus

        public QuestionStatus getStatus()
        .streamlayer.interactive.QuestionStatus status = 9 [json_name = "status"];
        Specified by:
        getStatus in interface QuestionOrBuilder
        Returns:
        The status.
      • setStatus

        public Question.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 Question.Builder clearStatus()
        .streamlayer.interactive.QuestionStatus status = 9 [json_name = "status"];
        Returns:
        This builder for chaining.
      • hasPosition

        public boolean hasPosition()
        optional uint32 position = 10 [json_name = "position"];
        Specified by:
        hasPosition in interface QuestionOrBuilder
        Returns:
        Whether the position field is set.
      • getPosition

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

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

        public Question.Builder clearPosition()
        optional 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 QuestionOrBuilder
        Returns:
        The marketClosed.
      • setMarketClosed

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

        public Question.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 QuestionOrBuilder
        Returns:
        The activatedAt.
      • getActivatedAtBytes

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

        public Question.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 Question.Builder clearActivatedAt()
        string activated_at = 12 [json_name = "activatedAt"];
        Returns:
        This builder for chaining.
      • setActivatedAtBytes

        public Question.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 QuestionOrBuilder
        Returns:
        The answerSetAt.
      • getAnswerSetAtBytes

        public com.google.protobuf.ByteString getAnswerSetAtBytes()
        string answer_set_at = 13 [json_name = "answerSetAt"];
        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 [json_name = "answerSetAt"];
        Parameters:
        value - The answerSetAt to set.
        Returns:
        This builder for chaining.
      • clearAnswerSetAt

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

        public Question.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.
      • containsOverrides

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

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

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

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

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

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

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

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

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

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

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

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

        public boolean hasStreamTimestamp()
        .google.protobuf.Timestamp stream_timestamp = 16 [json_name = "streamTimestamp"];
        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 [json_name = "streamTimestamp"];
        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 [json_name = "streamTimestamp"];
      • setStreamTimestamp

        public Question.Builder setStreamTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp stream_timestamp = 16 [json_name = "streamTimestamp"];
      • mergeStreamTimestamp

        public Question.Builder mergeStreamTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp stream_timestamp = 16 [json_name = "streamTimestamp"];
      • clearStreamTimestamp

        public Question.Builder clearStreamTimestamp()
        .google.protobuf.Timestamp stream_timestamp = 16 [json_name = "streamTimestamp"];
      • getTagsList

        public java.util.List<Tag> getTagsList()
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
        Specified by:
        getTagsList in interface QuestionOrBuilder
      • getTagsCount

        public int getTagsCount()
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
        Specified by:
        getTagsCount in interface QuestionOrBuilder
      • getTags

        public Tag getTags​(int index)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
        Specified by:
        getTags in interface QuestionOrBuilder
      • setTags

        public Question.Builder setTags​(int index,
                                        Tag value)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • setTags

        public Question.Builder setTags​(int index,
                                        Tag.Builder builderForValue)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • addTags

        public Question.Builder addTags​(Tag value)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • addTags

        public Question.Builder addTags​(int index,
                                        Tag value)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • addTags

        public Question.Builder addTags​(Tag.Builder builderForValue)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • addTags

        public Question.Builder addTags​(int index,
                                        Tag.Builder builderForValue)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • addAllTags

        public Question.Builder addAllTags​(java.lang.Iterable<? extends Tag> values)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • clearTags

        public Question.Builder clearTags()
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • removeTags

        public Question.Builder removeTags​(int index)
        repeated .streamlayer.interactive.Tag tags = 17 [json_name = "tags"];
      • hasBypassNotifications

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

        public BypassNotifications getBypassNotifications()
        .streamlayer.interactive.BypassNotifications bypass_notifications = 18 [json_name = "bypassNotifications"];
        Specified by:
        getBypassNotifications in interface QuestionOrBuilder
        Returns:
        The bypassNotifications.
      • setBypassNotifications

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

        public Question.Builder setBypassNotifications​(BypassNotifications.Builder builderForValue)
        .streamlayer.interactive.BypassNotifications bypass_notifications = 18 [json_name = "bypassNotifications"];
      • mergeBypassNotifications

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

        public Question.Builder clearBypassNotifications()
        .streamlayer.interactive.BypassNotifications bypass_notifications = 18 [json_name = "bypassNotifications"];
      • getImportId

        public java.lang.String getImportId()
        string import_id = 19 [json_name = "importId"];
        Specified by:
        getImportId in interface QuestionOrBuilder
        Returns:
        The importId.
      • getImportIdBytes

        public com.google.protobuf.ByteString getImportIdBytes()
        string import_id = 19 [json_name = "importId"];
        Specified by:
        getImportIdBytes in interface QuestionOrBuilder
        Returns:
        The bytes for importId.
      • setImportId

        public Question.Builder setImportId​(java.lang.String value)
        string import_id = 19 [json_name = "importId"];
        Parameters:
        value - The importId to set.
        Returns:
        This builder for chaining.
      • clearImportId

        public Question.Builder clearImportId()
        string import_id = 19 [json_name = "importId"];
        Returns:
        This builder for chaining.
      • setImportIdBytes

        public Question.Builder setImportIdBytes​(com.google.protobuf.ByteString value)
        string import_id = 19 [json_name = "importId"];
        Parameters:
        value - The bytes for importId to set.
        Returns:
        This builder for chaining.
      • hasActivationTriggerCount

        public boolean hasActivationTriggerCount()
         numbers of activation subscriptions
         
        optional uint32 activation_trigger_count = 20 [json_name = "activationTriggerCount"];
        Specified by:
        hasActivationTriggerCount in interface QuestionOrBuilder
        Returns:
        Whether the activationTriggerCount field is set.
      • getActivationTriggerCount

        public int getActivationTriggerCount()
         numbers of activation subscriptions
         
        optional uint32 activation_trigger_count = 20 [json_name = "activationTriggerCount"];
        Specified by:
        getActivationTriggerCount in interface QuestionOrBuilder
        Returns:
        The activationTriggerCount.
      • setActivationTriggerCount

        public Question.Builder setActivationTriggerCount​(int value)
         numbers of activation subscriptions
         
        optional uint32 activation_trigger_count = 20 [json_name = "activationTriggerCount"];
        Parameters:
        value - The activationTriggerCount to set.
        Returns:
        This builder for chaining.
      • clearActivationTriggerCount

        public Question.Builder clearActivationTriggerCount()
         numbers of activation subscriptions
         
        optional uint32 activation_trigger_count = 20 [json_name = "activationTriggerCount"];
        Returns:
        This builder for chaining.