Class Protocol.Command
java.lang.Object
com.google.protobuf.AbstractMessageLite<Protocol.Command,Protocol.Command.Builder>
com.google.protobuf.GeneratedMessageLite<Protocol.Command,Protocol.Command.Builder>
io.github.centrifugal.centrifuge.internal.protocol.Protocol.Command
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Protocol.CommandOrBuilder
- Enclosing class:
Protocol
public static final class Protocol.Command
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCommand sent from a client to a server.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 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) ProtocolVersion2 client can send one of the following requests.static Protocol.Command.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;static Protocol.Command.Builderstatic Protocol.Command.BuildernewBuilder(Protocol.Command prototype) static Protocol.CommandparseDelimitedFrom(InputStream input) static Protocol.CommandparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.CommandparseFrom(byte[] data) static Protocol.CommandparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.CommandparseFrom(com.google.protobuf.ByteString data) static Protocol.CommandparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.CommandparseFrom(com.google.protobuf.CodedInputStream input) static Protocol.CommandparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.CommandparseFrom(InputStream input) static Protocol.CommandparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.CommandparseFrom(ByteBuffer data) static Protocol.CommandparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Protocol.Command> 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:
-
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:
-
SEND_FIELD_NUMBER
public static final int SEND_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 of command to let client match replies to commands.
uint32 id = 1;- Specified by:
getIdin interfaceProtocol.CommandOrBuilder- Returns:
- The id.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static Protocol.Command parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Command parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Command parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Command 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.Command parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Command 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.Command parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protocol.Command parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protocol.Command parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protocol.Command 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.Command,Protocol.Command.Builder>
-
getDefaultInstance
-
parser
-