Class Protocol.Reply.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Protocol.Reply,Protocol.Reply.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Reply,Protocol.Reply.Builder>
io.github.centrifugal.centrifuge.internal.protocol.Protocol.Reply.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Protocol.ReplyOrBuilder,Cloneable
- Enclosing class:
Protocol.Reply
public static final class Protocol.Reply.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Reply,Protocol.Reply.Builder>
implements Protocol.ReplyOrBuilder
Reply sent from a server to a client. ProtocolVersion2 uses id and one of the possible concrete result messages.Protobuf type
centrifugal.centrifuge.protocol.Reply-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription.centrifugal.centrifuge.protocol.ConnectResult connect = 5;Error can only be set in replies to commands..centrifugal.centrifuge.protocol.HistoryResult history = 11;clearId()Id will only be set to a value > 0 for replies to commands..centrifugal.centrifuge.protocol.PingResult ping = 12;.centrifugal.centrifuge.protocol.PresenceResult presence = 9;.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;.centrifugal.centrifuge.protocol.PublishResult publish = 8;ProtocolVersion2 server can send one of the following fields..centrifugal.centrifuge.protocol.RefreshResult refresh = 14;clearRpc().centrifugal.centrifuge.protocol.RPCResult rpc = 13;.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;.centrifugal.centrifuge.protocol.ConnectResult connect = 5;getError()Error can only be set in replies to commands..centrifugal.centrifuge.protocol.HistoryResult history = 11;intgetId()Id will only be set to a value > 0 for replies to commands.getPing().centrifugal.centrifuge.protocol.PingResult ping = 12;.centrifugal.centrifuge.protocol.PresenceResult presence = 9;.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;.centrifugal.centrifuge.protocol.PublishResult publish = 8;getPush()ProtocolVersion2 server can send one of the following fields..centrifugal.centrifuge.protocol.RefreshResult refresh = 14;getRpc().centrifugal.centrifuge.protocol.RPCResult rpc = 13;.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;boolean.centrifugal.centrifuge.protocol.ConnectResult connect = 5;booleanhasError()Error can only be set in replies to commands.boolean.centrifugal.centrifuge.protocol.HistoryResult history = 11;booleanhasPing().centrifugal.centrifuge.protocol.PingResult ping = 12;boolean.centrifugal.centrifuge.protocol.PresenceResult presence = 9;boolean.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;boolean.centrifugal.centrifuge.protocol.PublishResult publish = 8;booleanhasPush()ProtocolVersion2 server can send one of the following fields.boolean.centrifugal.centrifuge.protocol.RefreshResult refresh = 14;booleanhasRpc().centrifugal.centrifuge.protocol.RPCResult rpc = 13;boolean.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;boolean.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;boolean.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;.centrifugal.centrifuge.protocol.ConnectResult connect = 5;mergeError(Protocol.Error value) Error can only be set in replies to commands..centrifugal.centrifuge.protocol.HistoryResult history = 11;mergePing(Protocol.PingResult value) .centrifugal.centrifuge.protocol.PingResult ping = 12;.centrifugal.centrifuge.protocol.PresenceResult presence = 9;.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;.centrifugal.centrifuge.protocol.PublishResult publish = 8;mergePush(Protocol.Push value) ProtocolVersion2 server can send one of the following fields..centrifugal.centrifuge.protocol.RefreshResult refresh = 14;mergeRpc(Protocol.RPCResult value) .centrifugal.centrifuge.protocol.RPCResult rpc = 13;.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;setConnect(Protocol.ConnectResult value) .centrifugal.centrifuge.protocol.ConnectResult connect = 5;setConnect(Protocol.ConnectResult.Builder builderForValue) .centrifugal.centrifuge.protocol.ConnectResult connect = 5;setError(Protocol.Error value) Error can only be set in replies to commands.setError(Protocol.Error.Builder builderForValue) Error can only be set in replies to commands.setHistory(Protocol.HistoryResult value) .centrifugal.centrifuge.protocol.HistoryResult history = 11;setHistory(Protocol.HistoryResult.Builder builderForValue) .centrifugal.centrifuge.protocol.HistoryResult history = 11;setId(int value) Id will only be set to a value > 0 for replies to commands.setPing(Protocol.PingResult value) .centrifugal.centrifuge.protocol.PingResult ping = 12;setPing(Protocol.PingResult.Builder builderForValue) .centrifugal.centrifuge.protocol.PingResult ping = 12;.centrifugal.centrifuge.protocol.PresenceResult presence = 9;setPresence(Protocol.PresenceResult.Builder builderForValue) .centrifugal.centrifuge.protocol.PresenceResult presence = 9;.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;setPresenceStats(Protocol.PresenceStatsResult.Builder builderForValue) .centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;setPublish(Protocol.PublishResult value) .centrifugal.centrifuge.protocol.PublishResult publish = 8;setPublish(Protocol.PublishResult.Builder builderForValue) .centrifugal.centrifuge.protocol.PublishResult publish = 8;setPush(Protocol.Push value) ProtocolVersion2 server can send one of the following fields.setPush(Protocol.Push.Builder builderForValue) ProtocolVersion2 server can send one of the following fields.setRefresh(Protocol.RefreshResult value) .centrifugal.centrifuge.protocol.RefreshResult refresh = 14;setRefresh(Protocol.RefreshResult.Builder builderForValue) .centrifugal.centrifuge.protocol.RefreshResult refresh = 14;setRpc(Protocol.RPCResult value) .centrifugal.centrifuge.protocol.RPCResult rpc = 13;setRpc(Protocol.RPCResult.Builder builderForValue) .centrifugal.centrifuge.protocol.RPCResult rpc = 13;.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;setSubRefresh(Protocol.SubRefreshResult.Builder builderForValue) .centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;setSubscribe(Protocol.SubscribeResult.Builder builderForValue) .centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;setUnsubscribe(Protocol.UnsubscribeResult.Builder builderForValue) .centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;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 will only be set to a value > 0 for replies to commands. For pushes it will have zero value.
uint32 id = 1;- Specified by:
getIdin interfaceProtocol.ReplyOrBuilder- Returns:
- The id.
-
setId
Id will only be set to a value > 0 for replies to commands. For pushes it will have zero value.
uint32 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Id will only be set to a value > 0 for replies to commands. For pushes it will have zero value.
uint32 id = 1;- Returns:
- This builder for chaining.
-
hasError
public boolean hasError()Error can only be set in replies to commands. For pushes it will have zero value.
.centrifugal.centrifuge.protocol.Error error = 2;- Specified by:
hasErrorin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the error field is set.
-
getError
Error can only be set in replies to commands. For pushes it will have zero value.
.centrifugal.centrifuge.protocol.Error error = 2;- Specified by:
getErrorin interfaceProtocol.ReplyOrBuilder- Returns:
- The error.
-
setError
Error can only be set in replies to commands. For pushes it will have zero value.
.centrifugal.centrifuge.protocol.Error error = 2; -
setError
Error can only be set in replies to commands. For pushes it will have zero value.
.centrifugal.centrifuge.protocol.Error error = 2; -
mergeError
Error can only be set in replies to commands. For pushes it will have zero value.
.centrifugal.centrifuge.protocol.Error error = 2; -
clearError
Error can only be set in replies to commands. For pushes it will have zero value.
.centrifugal.centrifuge.protocol.Error error = 2; -
hasPush
public boolean hasPush()ProtocolVersion2 server can send one of the following fields. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Push push = 4;- Specified by:
hasPushin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the push field is set.
-
getPush
ProtocolVersion2 server can send one of the following fields. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Push push = 4;- Specified by:
getPushin interfaceProtocol.ReplyOrBuilder- Returns:
- The push.
-
setPush
ProtocolVersion2 server can send one of the following fields. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Push push = 4; -
setPush
ProtocolVersion2 server can send one of the following fields. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Push push = 4; -
mergePush
ProtocolVersion2 server can send one of the following fields. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Push push = 4; -
clearPush
ProtocolVersion2 server can send one of the following fields. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Push push = 4; -
hasConnect
public boolean hasConnect().centrifugal.centrifuge.protocol.ConnectResult connect = 5;- Specified by:
hasConnectin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the connect field is set.
-
getConnect
.centrifugal.centrifuge.protocol.ConnectResult connect = 5;- Specified by:
getConnectin interfaceProtocol.ReplyOrBuilder- Returns:
- The connect.
-
setConnect
.centrifugal.centrifuge.protocol.ConnectResult connect = 5; -
setConnect
.centrifugal.centrifuge.protocol.ConnectResult connect = 5; -
mergeConnect
.centrifugal.centrifuge.protocol.ConnectResult connect = 5; -
clearConnect
.centrifugal.centrifuge.protocol.ConnectResult connect = 5; -
hasSubscribe
public boolean hasSubscribe().centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;- Specified by:
hasSubscribein interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the subscribe field is set.
-
getSubscribe
.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6;- Specified by:
getSubscribein interfaceProtocol.ReplyOrBuilder- Returns:
- The subscribe.
-
setSubscribe
.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6; -
setSubscribe
.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6; -
mergeSubscribe
.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6; -
clearSubscribe
.centrifugal.centrifuge.protocol.SubscribeResult subscribe = 6; -
hasUnsubscribe
public boolean hasUnsubscribe().centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;- Specified by:
hasUnsubscribein interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the unsubscribe field is set.
-
getUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7;- Specified by:
getUnsubscribein interfaceProtocol.ReplyOrBuilder- Returns:
- The unsubscribe.
-
setUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7; -
setUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7; -
mergeUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7; -
clearUnsubscribe
.centrifugal.centrifuge.protocol.UnsubscribeResult unsubscribe = 7; -
hasPublish
public boolean hasPublish().centrifugal.centrifuge.protocol.PublishResult publish = 8;- Specified by:
hasPublishin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the publish field is set.
-
getPublish
.centrifugal.centrifuge.protocol.PublishResult publish = 8;- Specified by:
getPublishin interfaceProtocol.ReplyOrBuilder- Returns:
- The publish.
-
setPublish
.centrifugal.centrifuge.protocol.PublishResult publish = 8; -
setPublish
.centrifugal.centrifuge.protocol.PublishResult publish = 8; -
mergePublish
.centrifugal.centrifuge.protocol.PublishResult publish = 8; -
clearPublish
.centrifugal.centrifuge.protocol.PublishResult publish = 8; -
hasPresence
public boolean hasPresence().centrifugal.centrifuge.protocol.PresenceResult presence = 9;- Specified by:
hasPresencein interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the presence field is set.
-
getPresence
.centrifugal.centrifuge.protocol.PresenceResult presence = 9;- Specified by:
getPresencein interfaceProtocol.ReplyOrBuilder- Returns:
- The presence.
-
setPresence
.centrifugal.centrifuge.protocol.PresenceResult presence = 9; -
setPresence
.centrifugal.centrifuge.protocol.PresenceResult presence = 9; -
mergePresence
.centrifugal.centrifuge.protocol.PresenceResult presence = 9; -
clearPresence
.centrifugal.centrifuge.protocol.PresenceResult presence = 9; -
hasPresenceStats
public boolean hasPresenceStats().centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;- Specified by:
hasPresenceStatsin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the presenceStats field is set.
-
getPresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10;- Specified by:
getPresenceStatsin interfaceProtocol.ReplyOrBuilder- Returns:
- The presenceStats.
-
setPresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10; -
setPresenceStats
public Protocol.Reply.Builder setPresenceStats(Protocol.PresenceStatsResult.Builder builderForValue) .centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10; -
mergePresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10; -
clearPresenceStats
.centrifugal.centrifuge.protocol.PresenceStatsResult presence_stats = 10; -
hasHistory
public boolean hasHistory().centrifugal.centrifuge.protocol.HistoryResult history = 11;- Specified by:
hasHistoryin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the history field is set.
-
getHistory
.centrifugal.centrifuge.protocol.HistoryResult history = 11;- Specified by:
getHistoryin interfaceProtocol.ReplyOrBuilder- Returns:
- The history.
-
setHistory
.centrifugal.centrifuge.protocol.HistoryResult history = 11; -
setHistory
.centrifugal.centrifuge.protocol.HistoryResult history = 11; -
mergeHistory
.centrifugal.centrifuge.protocol.HistoryResult history = 11; -
clearHistory
.centrifugal.centrifuge.protocol.HistoryResult history = 11; -
hasPing
public boolean hasPing().centrifugal.centrifuge.protocol.PingResult ping = 12;- Specified by:
hasPingin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the ping field is set.
-
getPing
.centrifugal.centrifuge.protocol.PingResult ping = 12;- Specified by:
getPingin interfaceProtocol.ReplyOrBuilder- Returns:
- The ping.
-
setPing
.centrifugal.centrifuge.protocol.PingResult ping = 12; -
setPing
.centrifugal.centrifuge.protocol.PingResult ping = 12; -
mergePing
.centrifugal.centrifuge.protocol.PingResult ping = 12; -
clearPing
.centrifugal.centrifuge.protocol.PingResult ping = 12; -
hasRpc
public boolean hasRpc().centrifugal.centrifuge.protocol.RPCResult rpc = 13;- Specified by:
hasRpcin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the rpc field is set.
-
getRpc
.centrifugal.centrifuge.protocol.RPCResult rpc = 13;- Specified by:
getRpcin interfaceProtocol.ReplyOrBuilder- Returns:
- The rpc.
-
setRpc
.centrifugal.centrifuge.protocol.RPCResult rpc = 13; -
setRpc
.centrifugal.centrifuge.protocol.RPCResult rpc = 13; -
mergeRpc
.centrifugal.centrifuge.protocol.RPCResult rpc = 13; -
clearRpc
.centrifugal.centrifuge.protocol.RPCResult rpc = 13; -
hasRefresh
public boolean hasRefresh().centrifugal.centrifuge.protocol.RefreshResult refresh = 14;- Specified by:
hasRefreshin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the refresh field is set.
-
getRefresh
.centrifugal.centrifuge.protocol.RefreshResult refresh = 14;- Specified by:
getRefreshin interfaceProtocol.ReplyOrBuilder- Returns:
- The refresh.
-
setRefresh
.centrifugal.centrifuge.protocol.RefreshResult refresh = 14; -
setRefresh
.centrifugal.centrifuge.protocol.RefreshResult refresh = 14; -
mergeRefresh
.centrifugal.centrifuge.protocol.RefreshResult refresh = 14; -
clearRefresh
.centrifugal.centrifuge.protocol.RefreshResult refresh = 14; -
hasSubRefresh
public boolean hasSubRefresh().centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;- Specified by:
hasSubRefreshin interfaceProtocol.ReplyOrBuilder- Returns:
- Whether the subRefresh field is set.
-
getSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;- Specified by:
getSubRefreshin interfaceProtocol.ReplyOrBuilder- Returns:
- The subRefresh.
-
setSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15; -
setSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15; -
mergeSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15; -
clearSubRefresh
.centrifugal.centrifuge.protocol.SubRefreshResult sub_refresh = 15;
-