Package pbx
Class Model.ClientNote.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Model.ClientNote,Model.ClientNote.Builder>
-
- pbx.Model.ClientNote.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable,Model.ClientNoteOrBuilder
- Enclosing class:
- Model.ClientNote
public static final class Model.ClientNote.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Model.ClientNote,Model.ClientNote.Builder> implements Model.ClientNoteOrBuilder
ClientNote is a client-generated notification for topic subscribers
Protobuf typepbx.ClientNote
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Model.ClientNote.BuilderclearContent()optional bytes content = 4 [json_name = "content"];Model.ClientNote.BuilderclearEvent()Call event.Model.ClientNote.BuilderclearPayload()Arbitrary json payload (used in video calls).Model.ClientNote.BuilderclearSeqId()Server-issued message ID being reportedModel.ClientNote.BuilderclearTopic()string topic = 1 [json_name = "topic"];Model.ClientNote.BuilderclearUnread()Client's count of unread messages to report back to the server.Model.ClientNote.BuilderclearWhat()what is being reported: "recv" - message received, "read" - message read, "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subscom.google.protobuf.ByteStringgetContent()optional bytes content = 4 [json_name = "content"];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.Model.ClientNote.BuildersetContent(com.google.protobuf.ByteString value)optional bytes content = 4 [json_name = "content"];Model.ClientNote.BuildersetEvent(Model.CallEvent value)Call event.Model.ClientNote.BuildersetEventValue(int value)Call event.Model.ClientNote.BuildersetPayload(com.google.protobuf.ByteString value)Arbitrary json payload (used in video calls).Model.ClientNote.BuildersetSeqId(int value)Server-issued message ID being reportedModel.ClientNote.BuildersetTopic(java.lang.String value)string topic = 1 [json_name = "topic"];Model.ClientNote.BuildersetTopicBytes(com.google.protobuf.ByteString value)string topic = 1 [json_name = "topic"];Model.ClientNote.BuildersetUnread(int value)Client's count of unread messages to report back to the server.Model.ClientNote.BuildersetWhat(Model.InfoNote value)what is being reported: "recv" - message received, "read" - message read, "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subsModel.ClientNote.BuildersetWhatValue(int value)what is being reported: "recv" - message received, "read" - message read, "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
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.
-
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:
getWhatValuein interfaceModel.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:
getWhatin interfaceModel.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:
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.
-
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:
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.
-
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:
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.
-
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:
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.
-
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.
-
getEvent
public Model.CallEvent getEvent()
Call event.
optional .pbx.CallEvent event = 6 [json_name = "event"];- Specified by:
getEventin interfaceModel.ClientNoteOrBuilder- Returns:
- The event.
-
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:
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.
-
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.
-
-