Interface Protocol.PushOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protocol.Push,Protocol.Push.Builder
- Enclosing class:
Protocol
public static interface Protocol.PushOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstring channel = 2;com.google.protobuf.ByteStringstring channel = 2;.centrifugal.centrifuge.protocol.Connect connect = 10;.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;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getChannel
String getChannel()string channel = 2;- Returns:
- The channel.
-
getChannelBytes
com.google.protobuf.ByteString getChannelBytes()string channel = 2;- Returns:
- The bytes for channel.
-
hasPub
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;- Returns:
- Whether the pub field is set.
-
getPub
Protocol.Publication 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;- Returns:
- The pub.
-
hasJoin
boolean hasJoin().centrifugal.centrifuge.protocol.Join join = 5;- Returns:
- Whether the join field is set.
-
getJoin
Protocol.Join getJoin().centrifugal.centrifuge.protocol.Join join = 5;- Returns:
- The join.
-
hasLeave
boolean hasLeave().centrifugal.centrifuge.protocol.Leave leave = 6;- Returns:
- Whether the leave field is set.
-
getLeave
Protocol.Leave getLeave().centrifugal.centrifuge.protocol.Leave leave = 6;- Returns:
- The leave.
-
hasUnsubscribe
boolean hasUnsubscribe().centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;- Returns:
- Whether the unsubscribe field is set.
-
getUnsubscribe
Protocol.Unsubscribe getUnsubscribe().centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;- Returns:
- The unsubscribe.
-
hasMessage
boolean hasMessage().centrifugal.centrifuge.protocol.Message message = 8;- Returns:
- Whether the message field is set.
-
getMessage
Protocol.Message getMessage().centrifugal.centrifuge.protocol.Message message = 8;- Returns:
- The message.
-
hasSubscribe
boolean hasSubscribe().centrifugal.centrifuge.protocol.Subscribe subscribe = 9;- Returns:
- Whether the subscribe field is set.
-
getSubscribe
Protocol.Subscribe getSubscribe().centrifugal.centrifuge.protocol.Subscribe subscribe = 9;- Returns:
- The subscribe.
-
hasConnect
boolean hasConnect().centrifugal.centrifuge.protocol.Connect connect = 10;- Returns:
- Whether the connect field is set.
-
getConnect
Protocol.Connect getConnect().centrifugal.centrifuge.protocol.Connect connect = 10;- Returns:
- The connect.
-
hasDisconnect
boolean hasDisconnect().centrifugal.centrifuge.protocol.Disconnect disconnect = 11;- Returns:
- Whether the disconnect field is set.
-
getDisconnect
Protocol.Disconnect getDisconnect().centrifugal.centrifuge.protocol.Disconnect disconnect = 11;- Returns:
- The disconnect.
-
hasRefresh
boolean hasRefresh().centrifugal.centrifuge.protocol.Refresh refresh = 12;- Returns:
- Whether the refresh field is set.
-
getRefresh
Protocol.Refresh getRefresh().centrifugal.centrifuge.protocol.Refresh refresh = 12;- Returns:
- The refresh.
-