Class InstantView.Builder

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

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

      • hasHeading

        public boolean hasHeading()
         question.subject
         
        optional string heading = 1 [json_name = "heading"];
        Specified by:
        hasHeading in interface InstantViewOrBuilder
        Returns:
        Whether the heading field is set.
      • getHeading

        public java.lang.String getHeading()
         question.subject
         
        optional string heading = 1 [json_name = "heading"];
        Specified by:
        getHeading in interface InstantViewOrBuilder
        Returns:
        The heading.
      • getHeadingBytes

        public com.google.protobuf.ByteString getHeadingBytes()
         question.subject
         
        optional string heading = 1 [json_name = "heading"];
        Specified by:
        getHeadingBytes in interface InstantViewOrBuilder
        Returns:
        The bytes for heading.
      • setHeading

        public InstantView.Builder setHeading​(java.lang.String value)
         question.subject
         
        optional string heading = 1 [json_name = "heading"];
        Parameters:
        value - The heading to set.
        Returns:
        This builder for chaining.
      • clearHeading

        public InstantView.Builder clearHeading()
         question.subject
         
        optional string heading = 1 [json_name = "heading"];
        Returns:
        This builder for chaining.
      • setHeadingBytes

        public InstantView.Builder setHeadingBytes​(com.google.protobuf.ByteString value)
         question.subject
         
        optional string heading = 1 [json_name = "heading"];
        Parameters:
        value - The bytes for heading to set.
        Returns:
        This builder for chaining.
      • hasBody

        public boolean hasBody()
         options.body
         
        optional string body = 2 [json_name = "body"];
        Specified by:
        hasBody in interface InstantViewOrBuilder
        Returns:
        Whether the body field is set.
      • getBody

        public java.lang.String getBody()
         options.body
         
        optional string body = 2 [json_name = "body"];
        Specified by:
        getBody in interface InstantViewOrBuilder
        Returns:
        The body.
      • getBodyBytes

        public com.google.protobuf.ByteString getBodyBytes()
         options.body
         
        optional string body = 2 [json_name = "body"];
        Specified by:
        getBodyBytes in interface InstantViewOrBuilder
        Returns:
        The bytes for body.
      • setBody

        public InstantView.Builder setBody​(java.lang.String value)
         options.body
         
        optional string body = 2 [json_name = "body"];
        Parameters:
        value - The body to set.
        Returns:
        This builder for chaining.
      • clearBody

        public InstantView.Builder clearBody()
         options.body
         
        optional string body = 2 [json_name = "body"];
        Returns:
        This builder for chaining.
      • setBodyBytes

        public InstantView.Builder setBodyBytes​(com.google.protobuf.ByteString value)
         options.body
         
        optional string body = 2 [json_name = "body"];
        Parameters:
        value - The bytes for body to set.
        Returns:
        This builder for chaining.
      • hasImage

        public boolean hasImage()
        optional string image = 3 [json_name = "image"];
        Specified by:
        hasImage in interface InstantViewOrBuilder
        Returns:
        Whether the image field is set.
      • getImage

        public java.lang.String getImage()
        optional string image = 3 [json_name = "image"];
        Specified by:
        getImage in interface InstantViewOrBuilder
        Returns:
        The image.
      • getImageBytes

        public com.google.protobuf.ByteString getImageBytes()
        optional string image = 3 [json_name = "image"];
        Specified by:
        getImageBytes in interface InstantViewOrBuilder
        Returns:
        The bytes for image.
      • setImage

        public InstantView.Builder setImage​(java.lang.String value)
        optional string image = 3 [json_name = "image"];
        Parameters:
        value - The image to set.
        Returns:
        This builder for chaining.
      • clearImage

        public InstantView.Builder clearImage()
        optional string image = 3 [json_name = "image"];
        Returns:
        This builder for chaining.
      • setImageBytes

        public InstantView.Builder setImageBytes​(com.google.protobuf.ByteString value)
        optional string image = 3 [json_name = "image"];
        Parameters:
        value - The bytes for image to set.
        Returns:
        This builder for chaining.
      • hasVideo

        public boolean hasVideo()
        optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"];
        Specified by:
        hasVideo in interface InstantViewOrBuilder
        Returns:
        Whether the video field is set.
      • getVideo

        public FileLink getVideo()
        optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"];
        Specified by:
        getVideo in interface InstantViewOrBuilder
        Returns:
        The video.
      • setVideo

        public InstantView.Builder setVideo​(FileLink value)
        optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"];
      • mergeVideo

        public InstantView.Builder mergeVideo​(FileLink value)
        optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"];
      • clearVideo

        public InstantView.Builder clearVideo()
        optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"];
      • hasWebLink

        public boolean hasWebLink()
        optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"];
        Specified by:
        hasWebLink in interface InstantViewOrBuilder
        Returns:
        Whether the webLink field is set.
      • getWebLink

        public WebLink getWebLink()
        optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"];
        Specified by:
        getWebLink in interface InstantViewOrBuilder
        Returns:
        The webLink.
      • setWebLink

        public InstantView.Builder setWebLink​(WebLink value)
        optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"];
      • mergeWebLink

        public InstantView.Builder mergeWebLink​(WebLink value)
        optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"];
      • clearWebLink

        public InstantView.Builder clearWebLink()
        optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"];
      • getImageModeValue

        public int getImageModeValue()
        .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
        Specified by:
        getImageModeValue in interface InstantViewOrBuilder
        Returns:
        The enum numeric value on the wire for imageMode.
      • setImageModeValue

        public InstantView.Builder setImageModeValue​(int value)
        .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
        Parameters:
        value - The imageMode to set.
        Returns:
        This builder for chaining.
      • setImageMode

        public InstantView.Builder setImageMode​(QuestionImages value)
        .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
        Parameters:
        value - The enum numeric value on the wire for imageMode to set.
        Returns:
        This builder for chaining.
      • clearImageMode

        public InstantView.Builder clearImageMode()
        .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
        Returns:
        This builder for chaining.
      • hasCloseTimer

        public boolean hasCloseTimer()
        optional .streamlayer.interactive.CloseTimer close_timer = 7 [json_name = "closeTimer"];
        Specified by:
        hasCloseTimer in interface InstantViewOrBuilder
        Returns:
        Whether the closeTimer field is set.
      • getCloseTimer

        public CloseTimer getCloseTimer()
        optional .streamlayer.interactive.CloseTimer close_timer = 7 [json_name = "closeTimer"];
        Specified by:
        getCloseTimer in interface InstantViewOrBuilder
        Returns:
        The closeTimer.
      • setCloseTimer

        public InstantView.Builder setCloseTimer​(CloseTimer value)
        optional .streamlayer.interactive.CloseTimer close_timer = 7 [json_name = "closeTimer"];
      • setCloseTimer

        public InstantView.Builder setCloseTimer​(CloseTimer.Builder builderForValue)
        optional .streamlayer.interactive.CloseTimer close_timer = 7 [json_name = "closeTimer"];
      • mergeCloseTimer

        public InstantView.Builder mergeCloseTimer​(CloseTimer value)
        optional .streamlayer.interactive.CloseTimer close_timer = 7 [json_name = "closeTimer"];
      • clearCloseTimer

        public InstantView.Builder clearCloseTimer()
        optional .streamlayer.interactive.CloseTimer close_timer = 7 [json_name = "closeTimer"];
      • hasAutoPlayVideo

        public boolean hasAutoPlayVideo()
        optional .streamlayer.interactive.AutoPlayVideo auto_play_video = 8 [json_name = "autoPlayVideo"];
        Specified by:
        hasAutoPlayVideo in interface InstantViewOrBuilder
        Returns:
        Whether the autoPlayVideo field is set.
      • getAutoPlayVideoValue

        public int getAutoPlayVideoValue()
        optional .streamlayer.interactive.AutoPlayVideo auto_play_video = 8 [json_name = "autoPlayVideo"];
        Specified by:
        getAutoPlayVideoValue in interface InstantViewOrBuilder
        Returns:
        The enum numeric value on the wire for autoPlayVideo.
      • setAutoPlayVideoValue

        public InstantView.Builder setAutoPlayVideoValue​(int value)
        optional .streamlayer.interactive.AutoPlayVideo auto_play_video = 8 [json_name = "autoPlayVideo"];
        Parameters:
        value - The autoPlayVideo to set.
        Returns:
        This builder for chaining.
      • getAutoPlayVideo

        public AutoPlayVideo getAutoPlayVideo()
        optional .streamlayer.interactive.AutoPlayVideo auto_play_video = 8 [json_name = "autoPlayVideo"];
        Specified by:
        getAutoPlayVideo in interface InstantViewOrBuilder
        Returns:
        The autoPlayVideo.
      • setAutoPlayVideo

        public InstantView.Builder setAutoPlayVideo​(AutoPlayVideo value)
        optional .streamlayer.interactive.AutoPlayVideo auto_play_video = 8 [json_name = "autoPlayVideo"];
        Parameters:
        value - The enum numeric value on the wire for autoPlayVideo to set.
        Returns:
        This builder for chaining.
      • clearAutoPlayVideo

        public InstantView.Builder clearAutoPlayVideo()
        optional .streamlayer.interactive.AutoPlayVideo auto_play_video = 8 [json_name = "autoPlayVideo"];
        Returns:
        This builder for chaining.
      • hasPlayVideoMuted

        public boolean hasPlayVideoMuted()
        optional .streamlayer.interactive.PlayVideoMuted play_video_muted = 9 [json_name = "playVideoMuted"];
        Specified by:
        hasPlayVideoMuted in interface InstantViewOrBuilder
        Returns:
        Whether the playVideoMuted field is set.
      • getPlayVideoMutedValue

        public int getPlayVideoMutedValue()
        optional .streamlayer.interactive.PlayVideoMuted play_video_muted = 9 [json_name = "playVideoMuted"];
        Specified by:
        getPlayVideoMutedValue in interface InstantViewOrBuilder
        Returns:
        The enum numeric value on the wire for playVideoMuted.
      • setPlayVideoMutedValue

        public InstantView.Builder setPlayVideoMutedValue​(int value)
        optional .streamlayer.interactive.PlayVideoMuted play_video_muted = 9 [json_name = "playVideoMuted"];
        Parameters:
        value - The playVideoMuted to set.
        Returns:
        This builder for chaining.
      • getPlayVideoMuted

        public PlayVideoMuted getPlayVideoMuted()
        optional .streamlayer.interactive.PlayVideoMuted play_video_muted = 9 [json_name = "playVideoMuted"];
        Specified by:
        getPlayVideoMuted in interface InstantViewOrBuilder
        Returns:
        The playVideoMuted.
      • setPlayVideoMuted

        public InstantView.Builder setPlayVideoMuted​(PlayVideoMuted value)
        optional .streamlayer.interactive.PlayVideoMuted play_video_muted = 9 [json_name = "playVideoMuted"];
        Parameters:
        value - The enum numeric value on the wire for playVideoMuted to set.
        Returns:
        This builder for chaining.
      • clearPlayVideoMuted

        public InstantView.Builder clearPlayVideoMuted()
        optional .streamlayer.interactive.PlayVideoMuted play_video_muted = 9 [json_name = "playVideoMuted"];
        Returns:
        This builder for chaining.