Package pbx

Class Model.ClientNote

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Model.ClientNote.Builder
      ClientNote is a client-generated notification for topic subscribers
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

        com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,​?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,​Type extends java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object dynamicMethod​(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)  
      com.google.protobuf.ByteString getContent()
      optional bytes content = 4 [json_name = "content"];
      static Model.ClientNote getDefaultInstance()  
      Model.CallEvent getEvent()
      Call event.
      int getEventValue()
      Call event.
      com.google.protobuf.ByteString getPayload()
      Arbitrary json payload (used in video calls).
      int getSeqId()
      Server-issued message ID being reported
      java.lang.String getTopic()
      string topic = 1 [json_name = "topic"];
      com.google.protobuf.ByteString getTopicBytes()
      string topic = 1 [json_name = "topic"];
      int getUnread()
      Client's count of unread messages to report back to the server.
      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
      int getWhatValue()
      what is being reported: "recv" - message received, "read" - message read, "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
      boolean hasContent()
      optional bytes content = 4 [json_name = "content"];
      boolean hasEvent()
      Call event.
      boolean hasPayload()
      Arbitrary json payload (used in video calls).
      boolean hasSeqId()
      Server-issued message ID being reported
      boolean hasUnread()
      Client's count of unread messages to report back to the server.
      static Model.ClientNote.Builder newBuilder()  
      static Model.ClientNote.Builder newBuilder​(Model.ClientNote prototype)  
      static Model.ClientNote parseDelimitedFrom​(java.io.InputStream input)  
      static Model.ClientNote parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Model.ClientNote parseFrom​(byte[] data)  
      static Model.ClientNote parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Model.ClientNote parseFrom​(com.google.protobuf.ByteString data)  
      static Model.ClientNote parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Model.ClientNote parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Model.ClientNote parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Model.ClientNote parseFrom​(java.io.InputStream input)  
      static Model.ClientNote parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Model.ClientNote parseFrom​(java.nio.ByteBuffer data)  
      static Model.ClientNote parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Model.ClientNote> parser()  
      • Methods inherited from class com.google.protobuf.GeneratedMessageLite

        createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
    • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • parseFrom

        public static Model.ClientNote parseFrom​(java.nio.ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ClientNote parseFrom​(java.nio.ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ClientNote parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ClientNote parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ClientNote parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ClientNote parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ClientNote parseFrom​(java.io.InputStream input)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Model.ClientNote parseFrom​(java.io.InputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Model.ClientNote parseDelimitedFrom​(java.io.InputStream input)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Model.ClientNote parseDelimitedFrom​(java.io.InputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Model.ClientNote parseFrom​(com.google.protobuf.CodedInputStream input)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Model.ClientNote parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • dynamicMethod

        protected final java.lang.Object dynamicMethod​(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
                                                       java.lang.Object arg0,
                                                       java.lang.Object arg1)
        Specified by:
        dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Model.ClientNote,​Model.ClientNote.Builder>