Class Protocol.Reply
java.lang.Object
com.google.protobuf.AbstractMessageLite<Protocol.Reply,Protocol.Reply.Builder>
com.google.protobuf.GeneratedMessageLite<Protocol.Reply,Protocol.Reply.Builder>
io.github.centrifugal.centrifuge.internal.protocol.Protocol.Reply
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Protocol.ReplyOrBuilder
- Enclosing class:
Protocol
public static final class Protocol.Reply
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classReply sent from a server to a client.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) .centrifugal.centrifuge.protocol.ConnectResult connect = 5;static Protocol.ReplygetError()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;static Protocol.Reply.Builderstatic Protocol.Reply.BuildernewBuilder(Protocol.Reply prototype) static Protocol.ReplyparseDelimitedFrom(InputStream input) static Protocol.ReplyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.ReplyparseFrom(byte[] data) static Protocol.ReplyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.ReplyparseFrom(com.google.protobuf.ByteString data) static Protocol.ReplyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.ReplyparseFrom(com.google.protobuf.CodedInputStream input) static Protocol.ReplyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.ReplyparseFrom(InputStream input) static Protocol.ReplyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.ReplyparseFrom(ByteBuffer data) static Protocol.ReplyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Protocol.Reply> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
PUSH_FIELD_NUMBER
public static final int PUSH_FIELD_NUMBER- See Also:
-
CONNECT_FIELD_NUMBER
public static final int CONNECT_FIELD_NUMBER- See Also:
-
SUBSCRIBE_FIELD_NUMBER
public static final int SUBSCRIBE_FIELD_NUMBER- See Also:
-
UNSUBSCRIBE_FIELD_NUMBER
public static final int UNSUBSCRIBE_FIELD_NUMBER- See Also:
-
PUBLISH_FIELD_NUMBER
public static final int PUBLISH_FIELD_NUMBER- See Also:
-
PRESENCE_FIELD_NUMBER
public static final int PRESENCE_FIELD_NUMBER- See Also:
-
PRESENCE_STATS_FIELD_NUMBER
public static final int PRESENCE_STATS_FIELD_NUMBER- See Also:
-
HISTORY_FIELD_NUMBER
public static final int HISTORY_FIELD_NUMBER- See Also:
-
PING_FIELD_NUMBER
public static final int PING_FIELD_NUMBER- See Also:
-
RPC_FIELD_NUMBER
public static final int RPC_FIELD_NUMBER- See Also:
-
REFRESH_FIELD_NUMBER
public static final int REFRESH_FIELD_NUMBER- See Also:
-
SUB_REFRESH_FIELD_NUMBER
public static final int SUB_REFRESH_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static Protocol.Reply parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Reply parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Reply parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Reply parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Reply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Reply parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Protocol.Reply parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protocol.Reply parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protocol.Reply parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protocol.Reply parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Protocol.Reply,Protocol.Reply.Builder>
-
getDefaultInstance
-
parser
-