Package pbx
Class Model.ClientNote
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Model.ClientNote,Model.ClientNote.Builder>
-
- pbx.Model.ClientNote
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Model.ClientNoteOrBuilder
- Enclosing class:
- Model
public static final class Model.ClientNote extends com.google.protobuf.GeneratedMessageLite<Model.ClientNote,Model.ClientNote.Builder> implements Model.ClientNoteOrBuilder
ClientNote is a client-generated notification for topic subscribers
Protobuf typepbx.ClientNote
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModel.ClientNote.BuilderClientNote 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
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTENT_FIELD_NUMBERstatic intEVENT_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intSEQ_ID_FIELD_NUMBERstatic intTOPIC_FIELD_NUMBERstatic intUNREAD_FIELD_NUMBERstatic intWHAT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)com.google.protobuf.ByteStringgetContent()optional bytes content = 4 [json_name = "content"];static Model.ClientNotegetDefaultInstance()Model.CallEventgetEvent()Call event.intgetEventValue()Call event.com.google.protobuf.ByteStringgetPayload()Arbitrary json payload (used in video calls).intgetSeqId()Server-issued message ID being reportedjava.lang.StringgetTopic()string topic = 1 [json_name = "topic"];com.google.protobuf.ByteStringgetTopicBytes()string topic = 1 [json_name = "topic"];intgetUnread()Client's count of unread messages to report back to the server.Model.InfoNotegetWhat()what is being reported: "recv" - message received, "read" - message read, "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subsintgetWhatValue()what is being reported: "recv" - message received, "read" - message read, "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subsbooleanhasContent()optional bytes content = 4 [json_name = "content"];booleanhasEvent()Call event.booleanhasPayload()Arbitrary json payload (used in video calls).booleanhasSeqId()Server-issued message ID being reportedbooleanhasUnread()Client's count of unread messages to report back to the server.static Model.ClientNote.BuildernewBuilder()static Model.ClientNote.BuildernewBuilder(Model.ClientNote prototype)static Model.ClientNoteparseDelimitedFrom(java.io.InputStream input)static Model.ClientNoteparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Model.ClientNoteparseFrom(byte[] data)static Model.ClientNoteparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Model.ClientNoteparseFrom(com.google.protobuf.ByteString data)static Model.ClientNoteparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Model.ClientNoteparseFrom(com.google.protobuf.CodedInputStream input)static Model.ClientNoteparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Model.ClientNoteparseFrom(java.io.InputStream input)static Model.ClientNoteparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Model.ClientNoteparseFrom(java.nio.ByteBuffer data)static Model.ClientNoteparseFrom(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
-
-
-
-
Field Detail
-
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WHAT_FIELD_NUMBER
public static final int WHAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEQ_ID_FIELD_NUMBER
public static final int SEQ_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNREAD_FIELD_NUMBER
public static final int UNREAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTopic
public java.lang.String getTopic()
string topic = 1 [json_name = "topic"];- Specified by:
getTopicin interfaceModel.ClientNoteOrBuilder- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()
string topic = 1 [json_name = "topic"];- Specified by:
getTopicBytesin interfaceModel.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:
getWhatValuein interfaceModel.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:
getWhatin interfaceModel.ClientNoteOrBuilder- Returns:
- The what.
-
hasSeqId
public boolean hasSeqId()
Server-issued message ID being reported
optional int32 seq_id = 3 [json_name = "seqId"];- Specified by:
hasSeqIdin interfaceModel.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:
getSeqIdin interfaceModel.ClientNoteOrBuilder- Returns:
- The seqId.
-
hasContent
public boolean hasContent()
optional bytes content = 4 [json_name = "content"];- Specified by:
hasContentin interfaceModel.ClientNoteOrBuilder- Returns:
- Whether the content field is set.
-
getContent
public com.google.protobuf.ByteString getContent()
optional bytes content = 4 [json_name = "content"];- Specified by:
getContentin interfaceModel.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:
hasUnreadin interfaceModel.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:
getUnreadin interfaceModel.ClientNoteOrBuilder- Returns:
- The unread.
-
hasEvent
public boolean hasEvent()
Call event.
optional .pbx.CallEvent event = 6 [json_name = "event"];- Specified by:
hasEventin interfaceModel.ClientNoteOrBuilder- Returns:
- Whether the event field is set.
-
getEventValue
public int getEventValue()
Call event.
optional .pbx.CallEvent event = 6 [json_name = "event"];- Specified by:
getEventValuein interfaceModel.ClientNoteOrBuilder- Returns:
- The enum numeric value on the wire for event.
-
getEvent
public Model.CallEvent getEvent()
Call event.
optional .pbx.CallEvent event = 6 [json_name = "event"];- Specified by:
getEventin interfaceModel.ClientNoteOrBuilder- Returns:
- The event.
-
hasPayload
public boolean hasPayload()
Arbitrary json payload (used in video calls).
optional bytes payload = 7 [json_name = "payload"];- Specified by:
hasPayloadin interfaceModel.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:
getPayloadin interfaceModel.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
-
newBuilder
public static Model.ClientNote.Builder newBuilder()
-
newBuilder
public static Model.ClientNote.Builder newBuilder(Model.ClientNote prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)- Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Model.ClientNote,Model.ClientNote.Builder>
-
getDefaultInstance
public static Model.ClientNote getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Model.ClientNote> parser()
-
-