Class Template.Builder

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

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

      • getId

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

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

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

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

        public Template.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 TemplateOrBuilder
        Returns:
        The type.
      • setType

        public Template.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 Template.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 TemplateOrBuilder
        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 TemplateOrBuilder
        Returns:
        The subject.
      • getSubjectBytes

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

        public Template.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 Template.Builder clearSubject()
        optional string subject = 3 [json_name = "subject"];
        Returns:
        This builder for chaining.
      • setSubjectBytes

        public Template.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 TemplateOrBuilder
        Returns:
        Whether the options field is set.
      • mergeOptions

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

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

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

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

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

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

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

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

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

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

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

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

        public Template.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 TemplateOrBuilder
      • getAnswers

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Template.Builder clearBypassNotifications()
        .streamlayer.interactive.BypassNotifications bypass_notifications = 11 [json_name = "bypassNotifications"];
      • hasAi

        public boolean hasAi()
        .streamlayer.interactive.QuestionAi ai = 12 [json_name = "ai"];
        Specified by:
        hasAi in interface TemplateOrBuilder
        Returns:
        Whether the ai field is set.
      • getAi

        public QuestionAi getAi()
        .streamlayer.interactive.QuestionAi ai = 12 [json_name = "ai"];
        Specified by:
        getAi in interface TemplateOrBuilder
        Returns:
        The ai.
      • clearAi

        public Template.Builder clearAi()
        .streamlayer.interactive.QuestionAi ai = 12 [json_name = "ai"];
      • hasHasTriggers

        public boolean hasHasTriggers()
        optional bool has_triggers = 13 [json_name = "hasTriggers"];
        Specified by:
        hasHasTriggers in interface TemplateOrBuilder
        Returns:
        Whether the hasTriggers field is set.
      • getHasTriggers

        public boolean getHasTriggers()
        optional bool has_triggers = 13 [json_name = "hasTriggers"];
        Specified by:
        getHasTriggers in interface TemplateOrBuilder
        Returns:
        The hasTriggers.
      • setHasTriggers

        public Template.Builder setHasTriggers​(boolean value)
        optional bool has_triggers = 13 [json_name = "hasTriggers"];
        Parameters:
        value - The hasTriggers to set.
        Returns:
        This builder for chaining.
      • clearHasTriggers

        public Template.Builder clearHasTriggers()
        optional bool has_triggers = 13 [json_name = "hasTriggers"];
        Returns:
        This builder for chaining.
      • getCreatedAt

        public java.lang.String getCreatedAt()
        string created_at = 14 [json_name = "createdAt"];
        Specified by:
        getCreatedAt in interface TemplateOrBuilder
        Returns:
        The createdAt.
      • getCreatedAtBytes

        public com.google.protobuf.ByteString getCreatedAtBytes()
        string created_at = 14 [json_name = "createdAt"];
        Specified by:
        getCreatedAtBytes in interface TemplateOrBuilder
        Returns:
        The bytes for createdAt.
      • setCreatedAt

        public Template.Builder setCreatedAt​(java.lang.String value)
        string created_at = 14 [json_name = "createdAt"];
        Parameters:
        value - The createdAt to set.
        Returns:
        This builder for chaining.
      • clearCreatedAt

        public Template.Builder clearCreatedAt()
        string created_at = 14 [json_name = "createdAt"];
        Returns:
        This builder for chaining.
      • setCreatedAtBytes

        public Template.Builder setCreatedAtBytes​(com.google.protobuf.ByteString value)
        string created_at = 14 [json_name = "createdAt"];
        Parameters:
        value - The bytes for createdAt to set.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
        optional string name = 15 [json_name = "name"];
        Specified by:
        hasName in interface TemplateOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
        optional string name = 15 [json_name = "name"];
        Specified by:
        getName in interface TemplateOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
        optional string name = 15 [json_name = "name"];
        Specified by:
        getNameBytes in interface TemplateOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Template.Builder setName​(java.lang.String value)
        optional string name = 15 [json_name = "name"];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Template.Builder clearName()
        optional string name = 15 [json_name = "name"];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Template.Builder setNameBytes​(com.google.protobuf.ByteString value)
        optional string name = 15 [json_name = "name"];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasPromotion

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

        public Promotion getPromotion()
        .streamlayer.interactive.Promotion promotion = 16 [json_name = "promotion"];
        Specified by:
        getPromotion in interface TemplateOrBuilder
        Returns:
        The promotion.
      • setPromotion

        public Template.Builder setPromotion​(Promotion value)
        .streamlayer.interactive.Promotion promotion = 16 [json_name = "promotion"];
      • setPromotion

        public Template.Builder setPromotion​(Promotion.Builder builderForValue)
        .streamlayer.interactive.Promotion promotion = 16 [json_name = "promotion"];
      • mergePromotion

        public Template.Builder mergePromotion​(Promotion value)
        .streamlayer.interactive.Promotion promotion = 16 [json_name = "promotion"];
      • clearPromotion

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

        public boolean hasBackgroundImage()
        .streamlayer.interactive.BackgroundImage background_image = 17 [json_name = "backgroundImage"];
        Specified by:
        hasBackgroundImage in interface TemplateOrBuilder
        Returns:
        Whether the backgroundImage field is set.
      • getBackgroundImage

        public BackgroundImage getBackgroundImage()
        .streamlayer.interactive.BackgroundImage background_image = 17 [json_name = "backgroundImage"];
        Specified by:
        getBackgroundImage in interface TemplateOrBuilder
        Returns:
        The backgroundImage.
      • setBackgroundImage

        public Template.Builder setBackgroundImage​(BackgroundImage value)
        .streamlayer.interactive.BackgroundImage background_image = 17 [json_name = "backgroundImage"];
      • setBackgroundImage

        public Template.Builder setBackgroundImage​(BackgroundImage.Builder builderForValue)
        .streamlayer.interactive.BackgroundImage background_image = 17 [json_name = "backgroundImage"];
      • mergeBackgroundImage

        public Template.Builder mergeBackgroundImage​(BackgroundImage value)
        .streamlayer.interactive.BackgroundImage background_image = 17 [json_name = "backgroundImage"];
      • clearBackgroundImage

        public Template.Builder clearBackgroundImage()
        .streamlayer.interactive.BackgroundImage background_image = 17 [json_name = "backgroundImage"];