Interface Protocol.CommandOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protocol.Command
,Protocol.Command.Builder
- Enclosing class:
- Protocol
public static interface Protocol.CommandOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Protocol.ConnectRequest
getConnect()
ProtocolVersion2 client can send one of the following requests.Protocol.HistoryRequest
getHistory()
.centrifugal.centrifuge.protocol.HistoryRequest history = 10;
int
getId()
Id of command to let client match replies to commands.Protocol.PingRequest
getPing()
.centrifugal.centrifuge.protocol.PingRequest ping = 11;
Protocol.PresenceRequest
getPresence()
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;
Protocol.PresenceStatsRequest
getPresenceStats()
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;
Protocol.PublishRequest
getPublish()
.centrifugal.centrifuge.protocol.PublishRequest publish = 7;
Protocol.RefreshRequest
getRefresh()
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;
Protocol.RPCRequest
getRpc()
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13;
Protocol.SendRequest
getSend()
.centrifugal.centrifuge.protocol.SendRequest send = 12;
Protocol.SubRefreshRequest
getSubRefresh()
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;
Protocol.SubscribeRequest
getSubscribe()
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;
Protocol.UnsubscribeRequest
getUnsubscribe()
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;
boolean
hasConnect()
ProtocolVersion2 client can send one of the following requests.boolean
hasHistory()
.centrifugal.centrifuge.protocol.HistoryRequest history = 10;
boolean
hasPing()
.centrifugal.centrifuge.protocol.PingRequest ping = 11;
boolean
hasPresence()
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;
boolean
hasPresenceStats()
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;
boolean
hasPublish()
.centrifugal.centrifuge.protocol.PublishRequest publish = 7;
boolean
hasRefresh()
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;
boolean
hasRpc()
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13;
boolean
hasSend()
.centrifugal.centrifuge.protocol.SendRequest send = 12;
boolean
hasSubRefresh()
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;
boolean
hasSubscribe()
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;
boolean
hasUnsubscribe()
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;
-
-
-
Method Detail
-
getId
int getId()
Id of command to let client match replies to commands.
uint32 id = 1;
- Returns:
- The id.
-
hasConnect
boolean hasConnect()
ProtocolVersion2 client can send one of the following requests. Server will only take the first non-null request out of these and may return an error if client passed more than one request. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.ConnectRequest connect = 4;
- Returns:
- Whether the connect field is set.
-
getConnect
Protocol.ConnectRequest getConnect()
ProtocolVersion2 client can send one of the following requests. Server will only take the first non-null request out of these and may return an error if client passed more than one request. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.ConnectRequest connect = 4;
- Returns:
- The connect.
-
hasSubscribe
boolean hasSubscribe()
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;
- Returns:
- Whether the subscribe field is set.
-
getSubscribe
Protocol.SubscribeRequest getSubscribe()
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;
- Returns:
- The subscribe.
-
hasUnsubscribe
boolean hasUnsubscribe()
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;
- Returns:
- Whether the unsubscribe field is set.
-
getUnsubscribe
Protocol.UnsubscribeRequest getUnsubscribe()
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;
- Returns:
- The unsubscribe.
-
hasPublish
boolean hasPublish()
.centrifugal.centrifuge.protocol.PublishRequest publish = 7;
- Returns:
- Whether the publish field is set.
-
getPublish
Protocol.PublishRequest getPublish()
.centrifugal.centrifuge.protocol.PublishRequest publish = 7;
- Returns:
- The publish.
-
hasPresence
boolean hasPresence()
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;
- Returns:
- Whether the presence field is set.
-
getPresence
Protocol.PresenceRequest getPresence()
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;
- Returns:
- The presence.
-
hasPresenceStats
boolean hasPresenceStats()
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;
- Returns:
- Whether the presenceStats field is set.
-
getPresenceStats
Protocol.PresenceStatsRequest getPresenceStats()
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;
- Returns:
- The presenceStats.
-
hasHistory
boolean hasHistory()
.centrifugal.centrifuge.protocol.HistoryRequest history = 10;
- Returns:
- Whether the history field is set.
-
getHistory
Protocol.HistoryRequest getHistory()
.centrifugal.centrifuge.protocol.HistoryRequest history = 10;
- Returns:
- The history.
-
hasPing
boolean hasPing()
.centrifugal.centrifuge.protocol.PingRequest ping = 11;
- Returns:
- Whether the ping field is set.
-
getPing
Protocol.PingRequest getPing()
.centrifugal.centrifuge.protocol.PingRequest ping = 11;
- Returns:
- The ping.
-
hasSend
boolean hasSend()
.centrifugal.centrifuge.protocol.SendRequest send = 12;
- Returns:
- Whether the send field is set.
-
getSend
Protocol.SendRequest getSend()
.centrifugal.centrifuge.protocol.SendRequest send = 12;
- Returns:
- The send.
-
hasRpc
boolean hasRpc()
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13;
- Returns:
- Whether the rpc field is set.
-
getRpc
Protocol.RPCRequest getRpc()
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13;
- Returns:
- The rpc.
-
hasRefresh
boolean hasRefresh()
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;
- Returns:
- Whether the refresh field is set.
-
getRefresh
Protocol.RefreshRequest getRefresh()
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;
- Returns:
- The refresh.
-
hasSubRefresh
boolean hasSubRefresh()
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;
- Returns:
- Whether the subRefresh field is set.
-
getSubRefresh
Protocol.SubRefreshRequest getSubRefresh()
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;
- Returns:
- The subRefresh.
-
-