Class Protocol.Push
java.lang.Object
com.google.protobuf.AbstractMessageLite<Protocol.Push,Protocol.Push.Builder>
com.google.protobuf.GeneratedMessageLite<Protocol.Push,Protocol.Push.Builder>
io.github.centrifugal.centrifuge.internal.protocol.Protocol.Push
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Protocol.PushOrBuilder
- Enclosing class:
Protocol
public static final class Protocol.Push
extends com.google.protobuf.GeneratedMessageLite<Protocol.Push,Protocol.Push.Builder>
implements Protocol.PushOrBuilder
Push can be sent to a client as part of Reply in case of bidirectional transport or without additional wrapping in case of unidirectional transports. ProtocolVersion2 uses channel and one of the possible concrete push messages.Protobuf type
centrifugal.centrifuge.protocol.Push-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPush can be sent to a client as part of Reply in case of bidirectional transport or without additional wrapping in case of unidirectional transports.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 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) string channel = 2;com.google.protobuf.ByteStringstring channel = 2;.centrifugal.centrifuge.protocol.Connect connect = 10;static Protocol.Push.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;getJoin().centrifugal.centrifuge.protocol.Join join = 5;getLeave().centrifugal.centrifuge.protocol.Leave leave = 6;.centrifugal.centrifuge.protocol.Message message = 8;getPub()ProtocolVersion2 server can push one of the following fields to the client..centrifugal.centrifuge.protocol.Refresh refresh = 12;.centrifugal.centrifuge.protocol.Subscribe subscribe = 9;.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;boolean.centrifugal.centrifuge.protocol.Connect connect = 10;boolean.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;booleanhasJoin().centrifugal.centrifuge.protocol.Join join = 5;booleanhasLeave().centrifugal.centrifuge.protocol.Leave leave = 6;boolean.centrifugal.centrifuge.protocol.Message message = 8;booleanhasPub()ProtocolVersion2 server can push one of the following fields to the client.boolean.centrifugal.centrifuge.protocol.Refresh refresh = 12;boolean.centrifugal.centrifuge.protocol.Subscribe subscribe = 9;boolean.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;static Protocol.Push.Builderstatic Protocol.Push.BuildernewBuilder(Protocol.Push prototype) static Protocol.PushparseDelimitedFrom(InputStream input) static Protocol.PushparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.PushparseFrom(byte[] data) static Protocol.PushparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.PushparseFrom(com.google.protobuf.ByteString data) static Protocol.PushparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.PushparseFrom(com.google.protobuf.CodedInputStream input) static Protocol.PushparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.PushparseFrom(InputStream input) static Protocol.PushparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protocol.PushparseFrom(ByteBuffer data) static Protocol.PushparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Protocol.Push> 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
-
CHANNEL_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER- See Also:
-
PUB_FIELD_NUMBER
public static final int PUB_FIELD_NUMBER- See Also:
-
JOIN_FIELD_NUMBER
public static final int JOIN_FIELD_NUMBER- See Also:
-
LEAVE_FIELD_NUMBER
public static final int LEAVE_FIELD_NUMBER- See Also:
-
UNSUBSCRIBE_FIELD_NUMBER
public static final int UNSUBSCRIBE_FIELD_NUMBER- See Also:
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER- See Also:
-
SUBSCRIBE_FIELD_NUMBER
public static final int SUBSCRIBE_FIELD_NUMBER- See Also:
-
CONNECT_FIELD_NUMBER
public static final int CONNECT_FIELD_NUMBER- See Also:
-
DISCONNECT_FIELD_NUMBER
public static final int DISCONNECT_FIELD_NUMBER- See Also:
-
REFRESH_FIELD_NUMBER
public static final int REFRESH_FIELD_NUMBER- See Also:
-
-
Method Details
-
getChannel
string channel = 2;- Specified by:
getChannelin interfaceProtocol.PushOrBuilder- Returns:
- The channel.
-
getChannelBytes
public com.google.protobuf.ByteString getChannelBytes()string channel = 2;- Specified by:
getChannelBytesin interfaceProtocol.PushOrBuilder- Returns:
- The bytes for channel.
-
hasPub
public boolean hasPub()ProtocolVersion2 server can push one of the following fields to the client. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Publication pub = 4;- Specified by:
hasPubin interfaceProtocol.PushOrBuilder- Returns:
- Whether the pub field is set.
-
getPub
ProtocolVersion2 server can push one of the following fields to the client. We are not using oneof here due to JSON interoperability concerns.
.centrifugal.centrifuge.protocol.Publication pub = 4;- Specified by:
getPubin interfaceProtocol.PushOrBuilder- Returns:
- The pub.
-
hasJoin
public boolean hasJoin().centrifugal.centrifuge.protocol.Join join = 5;- Specified by:
hasJoinin interfaceProtocol.PushOrBuilder- Returns:
- Whether the join field is set.
-
getJoin
.centrifugal.centrifuge.protocol.Join join = 5;- Specified by:
getJoinin interfaceProtocol.PushOrBuilder- Returns:
- The join.
-
hasLeave
public boolean hasLeave().centrifugal.centrifuge.protocol.Leave leave = 6;- Specified by:
hasLeavein interfaceProtocol.PushOrBuilder- Returns:
- Whether the leave field is set.
-
getLeave
.centrifugal.centrifuge.protocol.Leave leave = 6;- Specified by:
getLeavein interfaceProtocol.PushOrBuilder- Returns:
- The leave.
-
hasUnsubscribe
public boolean hasUnsubscribe().centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;- Specified by:
hasUnsubscribein interfaceProtocol.PushOrBuilder- Returns:
- Whether the unsubscribe field is set.
-
getUnsubscribe
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;- Specified by:
getUnsubscribein interfaceProtocol.PushOrBuilder- Returns:
- The unsubscribe.
-
hasMessage
public boolean hasMessage().centrifugal.centrifuge.protocol.Message message = 8;- Specified by:
hasMessagein interfaceProtocol.PushOrBuilder- Returns:
- Whether the message field is set.
-
getMessage
.centrifugal.centrifuge.protocol.Message message = 8;- Specified by:
getMessagein interfaceProtocol.PushOrBuilder- Returns:
- The message.
-
hasSubscribe
public boolean hasSubscribe().centrifugal.centrifuge.protocol.Subscribe subscribe = 9;- Specified by:
hasSubscribein interfaceProtocol.PushOrBuilder- Returns:
- Whether the subscribe field is set.
-
getSubscribe
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9;- Specified by:
getSubscribein interfaceProtocol.PushOrBuilder- Returns:
- The subscribe.
-
hasConnect
public boolean hasConnect().centrifugal.centrifuge.protocol.Connect connect = 10;- Specified by:
hasConnectin interfaceProtocol.PushOrBuilder- Returns:
- Whether the connect field is set.
-
getConnect
.centrifugal.centrifuge.protocol.Connect connect = 10;- Specified by:
getConnectin interfaceProtocol.PushOrBuilder- Returns:
- The connect.
-
hasDisconnect
public boolean hasDisconnect().centrifugal.centrifuge.protocol.Disconnect disconnect = 11;- Specified by:
hasDisconnectin interfaceProtocol.PushOrBuilder- Returns:
- Whether the disconnect field is set.
-
getDisconnect
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;- Specified by:
getDisconnectin interfaceProtocol.PushOrBuilder- Returns:
- The disconnect.
-
hasRefresh
public boolean hasRefresh().centrifugal.centrifuge.protocol.Refresh refresh = 12;- Specified by:
hasRefreshin interfaceProtocol.PushOrBuilder- Returns:
- Whether the refresh field is set.
-
getRefresh
.centrifugal.centrifuge.protocol.Refresh refresh = 12;- Specified by:
getRefreshin interfaceProtocol.PushOrBuilder- Returns:
- The refresh.
-
parseFrom
public static Protocol.Push parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Push parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Push parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Push 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.Push parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protocol.Push 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.Push parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protocol.Push parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protocol.Push parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protocol.Push 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.Push,Protocol.Push.Builder>
-
getDefaultInstance
-
parser
-