Package pbx

Class Model.ClientNote.Builder

    • Method Detail

      • setTopic

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

        public Model.ClientNote.Builder setTopicBytes​(com.google.protobuf.ByteString value)
        string topic = 1;
        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;
        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;
        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;
        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;
        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;
        Returns:
        This builder for chaining.
      • getSeqId

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

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

        public Model.ClientNote.Builder clearSeqId()
         Server-issued message ID being reported
         
        int32 seq_id = 3;
        Returns:
        This builder for chaining.
      • setContent

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

        public int getUnread()
         Client's count of unread messages to report back to the server. Used in push notifications on iOS.
         
        int32 unread = 5;
        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.
         
        int32 unread = 5;
        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.
         
        int32 unread = 5;
        Returns:
        This builder for chaining.
      • getEventValue

        public int getEventValue()
         Call event.
         
        .pbx.CallEvent event = 6;
        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.
         
        .pbx.CallEvent event = 6;
        Parameters:
        value - The event to set.
        Returns:
        This builder for chaining.
      • setEvent

        public Model.ClientNote.Builder setEvent​(Model.CallEvent value)
         Call event.
         
        .pbx.CallEvent event = 6;
        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.
         
        .pbx.CallEvent event = 6;
        Returns:
        This builder for chaining.
      • getPayload

        public com.google.protobuf.ByteString getPayload()
         Arbitrary json payload (used in video calls).
         
        bytes payload = 7;
        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).
         
        bytes payload = 7;
        Parameters:
        value - The payload to set.
        Returns:
        This builder for chaining.
      • clearPayload

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