Class Protocol.Command.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Protocol.Command,Protocol.Command.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Command,Protocol.Command.Builder>
io.github.centrifugal.centrifuge.internal.protocol.Protocol.Command.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Protocol.CommandOrBuilder,Cloneable
- Enclosing class:
Protocol.Command
public static final class Protocol.Command.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Command,Protocol.Command.Builder>
implements Protocol.CommandOrBuilder
Command sent from a client to a server. ProtocolVersion2 uses id and one of the possible request messages.Protobuf type
centrifugal.centrifuge.protocol.Command-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionProtocolVersion2 client can send one of the following requests..centrifugal.centrifuge.protocol.HistoryRequest history = 10;clearId()Id of command to let client match replies to commands..centrifugal.centrifuge.protocol.PingRequest ping = 11;.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;.centrifugal.centrifuge.protocol.PublishRequest publish = 7;.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;clearRpc().centrifugal.centrifuge.protocol.RPCRequest rpc = 13;.centrifugal.centrifuge.protocol.SendRequest send = 12;.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;ProtocolVersion2 client can send one of the following requests..centrifugal.centrifuge.protocol.HistoryRequest history = 10;intgetId()Id of command to let client match replies to commands.getPing().centrifugal.centrifuge.protocol.PingRequest ping = 11;.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;.centrifugal.centrifuge.protocol.PublishRequest publish = 7;.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;getRpc().centrifugal.centrifuge.protocol.RPCRequest rpc = 13;getSend().centrifugal.centrifuge.protocol.SendRequest send = 12;.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;booleanProtocolVersion2 client can send one of the following requests.boolean.centrifugal.centrifuge.protocol.HistoryRequest history = 10;booleanhasPing().centrifugal.centrifuge.protocol.PingRequest ping = 11;boolean.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;boolean.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;boolean.centrifugal.centrifuge.protocol.PublishRequest publish = 7;boolean.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;booleanhasRpc().centrifugal.centrifuge.protocol.RPCRequest rpc = 13;booleanhasSend().centrifugal.centrifuge.protocol.SendRequest send = 12;boolean.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;boolean.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;boolean.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;ProtocolVersion2 client can send one of the following requests..centrifugal.centrifuge.protocol.HistoryRequest history = 10;mergePing(Protocol.PingRequest value) .centrifugal.centrifuge.protocol.PingRequest ping = 11;.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;.centrifugal.centrifuge.protocol.PublishRequest publish = 7;.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;mergeRpc(Protocol.RPCRequest value) .centrifugal.centrifuge.protocol.RPCRequest rpc = 13;mergeSend(Protocol.SendRequest value) .centrifugal.centrifuge.protocol.SendRequest send = 12;.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;ProtocolVersion2 client can send one of the following requests.setConnect(Protocol.ConnectRequest.Builder builderForValue) ProtocolVersion2 client can send one of the following requests..centrifugal.centrifuge.protocol.HistoryRequest history = 10;setHistory(Protocol.HistoryRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.HistoryRequest history = 10;setId(int value) Id of command to let client match replies to commands.setPing(Protocol.PingRequest value) .centrifugal.centrifuge.protocol.PingRequest ping = 11;setPing(Protocol.PingRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.PingRequest ping = 11;.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;setPresence(Protocol.PresenceRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.PresenceRequest presence = 8;.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;setPresenceStats(Protocol.PresenceStatsRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;.centrifugal.centrifuge.protocol.PublishRequest publish = 7;setPublish(Protocol.PublishRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.PublishRequest publish = 7;.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;setRefresh(Protocol.RefreshRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;setRpc(Protocol.RPCRequest value) .centrifugal.centrifuge.protocol.RPCRequest rpc = 13;setRpc(Protocol.RPCRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.RPCRequest rpc = 13;setSend(Protocol.SendRequest value) .centrifugal.centrifuge.protocol.SendRequest send = 12;setSend(Protocol.SendRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.SendRequest send = 12;.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;setSubRefresh(Protocol.SubRefreshRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;setSubscribe(Protocol.SubscribeRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;setUnsubscribe(Protocol.UnsubscribeRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getId
public int getId()Id of command to let client match replies to commands.
uint32 id = 1;- Specified by:
getIdin interfaceProtocol.CommandOrBuilder- Returns:
- The id.
-
setId
Id of command to let client match replies to commands.
uint32 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Id of command to let client match replies to commands.
uint32 id = 1;- Returns:
- This builder for chaining.
-
hasConnect
public 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;- Specified by:
hasConnectin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the connect field is set.
-
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;- Specified by:
getConnectin interfaceProtocol.CommandOrBuilder- Returns:
- The connect.
-
setConnect
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; -
setConnect
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; -
mergeConnect
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; -
clearConnect
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; -
hasSubscribe
public boolean hasSubscribe().centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;- Specified by:
hasSubscribein interfaceProtocol.CommandOrBuilder- Returns:
- Whether the subscribe field is set.
-
getSubscribe
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5;- Specified by:
getSubscribein interfaceProtocol.CommandOrBuilder- Returns:
- The subscribe.
-
setSubscribe
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5; -
setSubscribe
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5; -
mergeSubscribe
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5; -
clearSubscribe
.centrifugal.centrifuge.protocol.SubscribeRequest subscribe = 5; -
hasUnsubscribe
public boolean hasUnsubscribe().centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;- Specified by:
hasUnsubscribein interfaceProtocol.CommandOrBuilder- Returns:
- Whether the unsubscribe field is set.
-
getUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6;- Specified by:
getUnsubscribein interfaceProtocol.CommandOrBuilder- Returns:
- The unsubscribe.
-
setUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6; -
setUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6; -
mergeUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6; -
clearUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeRequest unsubscribe = 6; -
hasPublish
public boolean hasPublish().centrifugal.centrifuge.protocol.PublishRequest publish = 7;- Specified by:
hasPublishin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the publish field is set.
-
getPublish
.centrifugal.centrifuge.protocol.PublishRequest publish = 7;- Specified by:
getPublishin interfaceProtocol.CommandOrBuilder- Returns:
- The publish.
-
setPublish
.centrifugal.centrifuge.protocol.PublishRequest publish = 7; -
setPublish
.centrifugal.centrifuge.protocol.PublishRequest publish = 7; -
mergePublish
.centrifugal.centrifuge.protocol.PublishRequest publish = 7; -
clearPublish
.centrifugal.centrifuge.protocol.PublishRequest publish = 7; -
hasPresence
public boolean hasPresence().centrifugal.centrifuge.protocol.PresenceRequest presence = 8;- Specified by:
hasPresencein interfaceProtocol.CommandOrBuilder- Returns:
- Whether the presence field is set.
-
getPresence
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8;- Specified by:
getPresencein interfaceProtocol.CommandOrBuilder- Returns:
- The presence.
-
setPresence
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8; -
setPresence
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8; -
mergePresence
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8; -
clearPresence
.centrifugal.centrifuge.protocol.PresenceRequest presence = 8; -
hasPresenceStats
public boolean hasPresenceStats().centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;- Specified by:
hasPresenceStatsin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the presenceStats field is set.
-
getPresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9;- Specified by:
getPresenceStatsin interfaceProtocol.CommandOrBuilder- Returns:
- The presenceStats.
-
setPresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9; -
setPresenceStats
public Protocol.Command.Builder setPresenceStats(Protocol.PresenceStatsRequest.Builder builderForValue) .centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9; -
mergePresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9; -
clearPresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsRequest presence_stats = 9; -
hasHistory
public boolean hasHistory().centrifugal.centrifuge.protocol.HistoryRequest history = 10;- Specified by:
hasHistoryin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the history field is set.
-
getHistory
.centrifugal.centrifuge.protocol.HistoryRequest history = 10;- Specified by:
getHistoryin interfaceProtocol.CommandOrBuilder- Returns:
- The history.
-
setHistory
.centrifugal.centrifuge.protocol.HistoryRequest history = 10; -
setHistory
.centrifugal.centrifuge.protocol.HistoryRequest history = 10; -
mergeHistory
.centrifugal.centrifuge.protocol.HistoryRequest history = 10; -
clearHistory
.centrifugal.centrifuge.protocol.HistoryRequest history = 10; -
hasPing
public boolean hasPing().centrifugal.centrifuge.protocol.PingRequest ping = 11;- Specified by:
hasPingin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the ping field is set.
-
getPing
.centrifugal.centrifuge.protocol.PingRequest ping = 11;- Specified by:
getPingin interfaceProtocol.CommandOrBuilder- Returns:
- The ping.
-
setPing
.centrifugal.centrifuge.protocol.PingRequest ping = 11; -
setPing
.centrifugal.centrifuge.protocol.PingRequest ping = 11; -
mergePing
.centrifugal.centrifuge.protocol.PingRequest ping = 11; -
clearPing
.centrifugal.centrifuge.protocol.PingRequest ping = 11; -
hasSend
public boolean hasSend().centrifugal.centrifuge.protocol.SendRequest send = 12;- Specified by:
hasSendin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the send field is set.
-
getSend
.centrifugal.centrifuge.protocol.SendRequest send = 12;- Specified by:
getSendin interfaceProtocol.CommandOrBuilder- Returns:
- The send.
-
setSend
.centrifugal.centrifuge.protocol.SendRequest send = 12; -
setSend
.centrifugal.centrifuge.protocol.SendRequest send = 12; -
mergeSend
.centrifugal.centrifuge.protocol.SendRequest send = 12; -
clearSend
.centrifugal.centrifuge.protocol.SendRequest send = 12; -
hasRpc
public boolean hasRpc().centrifugal.centrifuge.protocol.RPCRequest rpc = 13;- Specified by:
hasRpcin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the rpc field is set.
-
getRpc
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13;- Specified by:
getRpcin interfaceProtocol.CommandOrBuilder- Returns:
- The rpc.
-
setRpc
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13; -
setRpc
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13; -
mergeRpc
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13; -
clearRpc
.centrifugal.centrifuge.protocol.RPCRequest rpc = 13; -
hasRefresh
public boolean hasRefresh().centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;- Specified by:
hasRefreshin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the refresh field is set.
-
getRefresh
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14;- Specified by:
getRefreshin interfaceProtocol.CommandOrBuilder- Returns:
- The refresh.
-
setRefresh
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14; -
setRefresh
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14; -
mergeRefresh
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14; -
clearRefresh
.centrifugal.centrifuge.protocol.RefreshRequest refresh = 14; -
hasSubRefresh
public boolean hasSubRefresh().centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;- Specified by:
hasSubRefreshin interfaceProtocol.CommandOrBuilder- Returns:
- Whether the subRefresh field is set.
-
getSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;- Specified by:
getSubRefreshin interfaceProtocol.CommandOrBuilder- Returns:
- The subRefresh.
-
setSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15; -
setSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15; -
mergeSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15; -
clearSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshRequest sub_refresh = 15;
-