Package pbx

Class Model.ClientNote.Builder

    • Field Summary

      • Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        instance
    • Method Detail

      • getTopic

        public java.lang.String getTopic()
        string topic = 1 [json_name = "topic"];
        Specified by:
        getTopic in interface Model.ClientNoteOrBuilder
        Returns:
        The topic.
      • getTopicBytes

        public com.google.protobuf.ByteString getTopicBytes()
        string topic = 1 [json_name = "topic"];
        Specified by:
        getTopicBytes in interface Model.ClientNoteOrBuilder
        Returns:
        The bytes for topic.
      • setTopic

        public Model.ClientNote.Builder setTopic​(java.lang.String value)
        string topic = 1 [json_name = "topic"];
        Parameters:
        value - The topic to set.
        Returns:
        This builder for chaining.
      • clearTopic

        public Model.ClientNote.Builder clearTopic()
        string topic = 1 [json_name = "topic"];
        Returns:
        This builder for chaining.
      • setTopicBytes

        public Model.ClientNote.Builder setTopicBytes​(com.google.protobuf.ByteString value)
        string topic = 1 [json_name = "topic"];
        Parameters:
        value - The bytes for topic to set.
        Returns:
        This builder for chaining.
      • getWhatValue

        public int getWhatValue()
         what is being reported: "recv" - message received, "read" - message read,
         "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
         
        .pbx.InfoNote what = 2 [json_name = "what"];
        Specified by:
        getWhatValue in interface Model.ClientNoteOrBuilder
        Returns:
        The enum numeric value on the wire for what.
      • setWhatValue

        public Model.ClientNote.Builder setWhatValue​(int value)
         what is being reported: "recv" - message received, "read" - message read,
         "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
         
        .pbx.InfoNote what = 2 [json_name = "what"];
        Parameters:
        value - The what to set.
        Returns:
        This builder for chaining.
      • getWhat

        public Model.InfoNote getWhat()
         what is being reported: "recv" - message received, "read" - message read,
         "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
         
        .pbx.InfoNote what = 2 [json_name = "what"];
        Specified by:
        getWhat in interface Model.ClientNoteOrBuilder
        Returns:
        The what.
      • setWhat

        public Model.ClientNote.Builder setWhat​(Model.InfoNote value)
         what is being reported: "recv" - message received, "read" - message read,
         "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
         
        .pbx.InfoNote what = 2 [json_name = "what"];
        Parameters:
        value - The enum numeric value on the wire for what to set.
        Returns:
        This builder for chaining.
      • clearWhat

        public Model.ClientNote.Builder clearWhat()
         what is being reported: "recv" - message received, "read" - message read,
         "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
         
        .pbx.InfoNote what = 2 [json_name = "what"];
        Returns:
        This builder for chaining.
      • hasSeqId

        public boolean hasSeqId()
         Server-issued message ID being reported
         
        optional int32 seq_id = 3 [json_name = "seqId"];
        Specified by:
        hasSeqId in interface Model.ClientNoteOrBuilder
        Returns:
        Whether the seqId field is set.
      • getSeqId

        public int getSeqId()
         Server-issued message ID being reported
         
        optional int32 seq_id = 3 [json_name = "seqId"];
        Specified by:
        getSeqId in interface Model.ClientNoteOrBuilder
        Returns:
        The seqId.
      • setSeqId

        public Model.ClientNote.Builder setSeqId​(int value)
         Server-issued message ID being reported
         
        optional int32 seq_id = 3 [json_name = "seqId"];
        Parameters:
        value - The seqId to set.
        Returns:
        This builder for chaining.
      • clearSeqId

        public Model.ClientNote.Builder clearSeqId()
         Server-issued message ID being reported
         
        optional int32 seq_id = 3 [json_name = "seqId"];
        Returns:
        This builder for chaining.
      • hasContent

        public boolean hasContent()
        optional bytes content = 4 [json_name = "content"];
        Specified by:
        hasContent in interface Model.ClientNoteOrBuilder
        Returns:
        Whether the content field is set.
      • getContent

        public com.google.protobuf.ByteString getContent()
        optional bytes content = 4 [json_name = "content"];
        Specified by:
        getContent in interface Model.ClientNoteOrBuilder
        Returns:
        The content.
      • setContent

        public Model.ClientNote.Builder setContent​(com.google.protobuf.ByteString value)
        optional bytes content = 4 [json_name = "content"];
        Parameters:
        value - The content to set.
        Returns:
        This builder for chaining.
      • clearContent

        public Model.ClientNote.Builder clearContent()
        optional bytes content = 4 [json_name = "content"];
        Returns:
        This builder for chaining.
      • hasUnread

        public boolean hasUnread()
         Client's count of unread messages to report back to the server. Used in push notifications on iOS.
         
        optional int32 unread = 5 [json_name = "unread"];
        Specified by:
        hasUnread in interface Model.ClientNoteOrBuilder
        Returns:
        Whether the unread field is set.
      • getUnread

        public int getUnread()
         Client's count of unread messages to report back to the server. Used in push notifications on iOS.
         
        optional int32 unread = 5 [json_name = "unread"];
        Specified by:
        getUnread in interface Model.ClientNoteOrBuilder
        Returns:
        The unread.
      • setUnread

        public Model.ClientNote.Builder setUnread​(int value)
         Client's count of unread messages to report back to the server. Used in push notifications on iOS.
         
        optional int32 unread = 5 [json_name = "unread"];
        Parameters:
        value - The unread to set.
        Returns:
        This builder for chaining.
      • clearUnread

        public Model.ClientNote.Builder clearUnread()
         Client's count of unread messages to report back to the server. Used in push notifications on iOS.
         
        optional int32 unread = 5 [json_name = "unread"];
        Returns:
        This builder for chaining.
      • hasEvent

        public boolean hasEvent()
         Call event.
         
        optional .pbx.CallEvent event = 6 [json_name = "event"];
        Specified by:
        hasEvent in interface Model.ClientNoteOrBuilder
        Returns:
        Whether the event field is set.
      • getEventValue

        public int getEventValue()
         Call event.
         
        optional .pbx.CallEvent event = 6 [json_name = "event"];
        Specified by:
        getEventValue in interface Model.ClientNoteOrBuilder
        Returns:
        The enum numeric value on the wire for event.
      • setEventValue

        public Model.ClientNote.Builder setEventValue​(int value)
         Call event.
         
        optional .pbx.CallEvent event = 6 [json_name = "event"];
        Parameters:
        value - The event to set.
        Returns:
        This builder for chaining.
      • setEvent

        public Model.ClientNote.Builder setEvent​(Model.CallEvent value)
         Call event.
         
        optional .pbx.CallEvent event = 6 [json_name = "event"];
        Parameters:
        value - The enum numeric value on the wire for event to set.
        Returns:
        This builder for chaining.
      • clearEvent

        public Model.ClientNote.Builder clearEvent()
         Call event.
         
        optional .pbx.CallEvent event = 6 [json_name = "event"];
        Returns:
        This builder for chaining.
      • hasPayload

        public boolean hasPayload()
         Arbitrary json payload (used in video calls).
         
        optional bytes payload = 7 [json_name = "payload"];
        Specified by:
        hasPayload in interface Model.ClientNoteOrBuilder
        Returns:
        Whether the payload field is set.
      • getPayload

        public com.google.protobuf.ByteString getPayload()
         Arbitrary json payload (used in video calls).
         
        optional bytes payload = 7 [json_name = "payload"];
        Specified by:
        getPayload in interface Model.ClientNoteOrBuilder
        Returns:
        The payload.
      • setPayload

        public Model.ClientNote.Builder setPayload​(com.google.protobuf.ByteString value)
         Arbitrary json payload (used in video calls).
         
        optional bytes payload = 7 [json_name = "payload"];
        Parameters:
        value - The payload to set.
        Returns:
        This builder for chaining.
      • clearPayload

        public Model.ClientNote.Builder clearPayload()
         Arbitrary json payload (used in video calls).
         
        optional bytes payload = 7 [json_name = "payload"];
        Returns:
        This builder for chaining.