Interface Protocol.PushOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protocol.Push
,Protocol.Push.Builder
- Enclosing class:
- Protocol
public static interface Protocol.PushOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getChannel()
string channel = 2;
com.google.protobuf.ByteString
getChannelBytes()
string channel = 2;
Protocol.Connect
getConnect()
.centrifugal.centrifuge.protocol.Connect connect = 10;
Protocol.Disconnect
getDisconnect()
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;
Protocol.Join
getJoin()
.centrifugal.centrifuge.protocol.Join join = 5;
Protocol.Leave
getLeave()
.centrifugal.centrifuge.protocol.Leave leave = 6;
Protocol.Message
getMessage()
.centrifugal.centrifuge.protocol.Message message = 8;
Protocol.Publication
getPub()
ProtocolVersion2 server can push one of the following fields to the client.Protocol.Refresh
getRefresh()
.centrifugal.centrifuge.protocol.Refresh refresh = 12;
Protocol.Subscribe
getSubscribe()
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9;
Protocol.Unsubscribe
getUnsubscribe()
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;
boolean
hasConnect()
.centrifugal.centrifuge.protocol.Connect connect = 10;
boolean
hasDisconnect()
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;
boolean
hasJoin()
.centrifugal.centrifuge.protocol.Join join = 5;
boolean
hasLeave()
.centrifugal.centrifuge.protocol.Leave leave = 6;
boolean
hasMessage()
.centrifugal.centrifuge.protocol.Message message = 8;
boolean
hasPub()
ProtocolVersion2 server can push one of the following fields to the client.boolean
hasRefresh()
.centrifugal.centrifuge.protocol.Refresh refresh = 12;
boolean
hasSubscribe()
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9;
boolean
hasUnsubscribe()
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;
-
-
-
Method Detail
-
getChannel
java.lang.String getChannel()
string channel = 2;
- Returns:
- The channel.
-
getChannelBytes
com.google.protobuf.ByteString getChannelBytes()
string channel = 2;
- Returns:
- The bytes for channel.
-
hasPub
boolean hasPub()
ProtocolVersion2 server can push one of the following fields to the client. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Publication pub = 4;
- Returns:
- Whether the pub field is set.
-
getPub
Protocol.Publication getPub()
ProtocolVersion2 server can push one of the following fields to the client. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Publication pub = 4;
- Returns:
- The pub.
-
hasJoin
boolean hasJoin()
.centrifugal.centrifuge.protocol.Join join = 5;
- Returns:
- Whether the join field is set.
-
getJoin
Protocol.Join getJoin()
.centrifugal.centrifuge.protocol.Join join = 5;
- Returns:
- The join.
-
hasLeave
boolean hasLeave()
.centrifugal.centrifuge.protocol.Leave leave = 6;
- Returns:
- Whether the leave field is set.
-
getLeave
Protocol.Leave getLeave()
.centrifugal.centrifuge.protocol.Leave leave = 6;
- Returns:
- The leave.
-
hasUnsubscribe
boolean hasUnsubscribe()
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;
- Returns:
- Whether the unsubscribe field is set.
-
getUnsubscribe
Protocol.Unsubscribe getUnsubscribe()
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;
- Returns:
- The unsubscribe.
-
hasMessage
boolean hasMessage()
.centrifugal.centrifuge.protocol.Message message = 8;
- Returns:
- Whether the message field is set.
-
getMessage
Protocol.Message getMessage()
.centrifugal.centrifuge.protocol.Message message = 8;
- Returns:
- The message.
-
hasSubscribe
boolean hasSubscribe()
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9;
- Returns:
- Whether the subscribe field is set.
-
getSubscribe
Protocol.Subscribe getSubscribe()
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9;
- Returns:
- The subscribe.
-
hasConnect
boolean hasConnect()
.centrifugal.centrifuge.protocol.Connect connect = 10;
- Returns:
- Whether the connect field is set.
-
getConnect
Protocol.Connect getConnect()
.centrifugal.centrifuge.protocol.Connect connect = 10;
- Returns:
- The connect.
-
hasDisconnect
boolean hasDisconnect()
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;
- Returns:
- Whether the disconnect field is set.
-
getDisconnect
Protocol.Disconnect getDisconnect()
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;
- Returns:
- The disconnect.
-
hasRefresh
boolean hasRefresh()
.centrifugal.centrifuge.protocol.Refresh refresh = 12;
- Returns:
- Whether the refresh field is set.
-
getRefresh
Protocol.Refresh getRefresh()
.centrifugal.centrifuge.protocol.Refresh refresh = 12;
- Returns:
- The refresh.
-
-