Class Protocol.Push.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Protocol.Push,Protocol.Push.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Push,Protocol.Push.Builder>
io.github.centrifugal.centrifuge.internal.protocol.Protocol.Push.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Protocol.PushOrBuilder,Cloneable
- Enclosing class:
Protocol.Push
public static final class Protocol.Push.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionstring channel = 2;.centrifugal.centrifuge.protocol.Connect connect = 10;.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;.centrifugal.centrifuge.protocol.Join join = 5;.centrifugal.centrifuge.protocol.Leave leave = 6;.centrifugal.centrifuge.protocol.Message message = 8;clearPub()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;string 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;mergeConnect(Protocol.Connect value) .centrifugal.centrifuge.protocol.Connect connect = 10;.centrifugal.centrifuge.protocol.Disconnect disconnect = 11;mergeJoin(Protocol.Join value) .centrifugal.centrifuge.protocol.Join join = 5;mergeLeave(Protocol.Leave value) .centrifugal.centrifuge.protocol.Leave leave = 6;mergeMessage(Protocol.Message value) .centrifugal.centrifuge.protocol.Message message = 8;mergePub(Protocol.Publication value) ProtocolVersion2 server can push one of the following fields to the client.mergeRefresh(Protocol.Refresh value) .centrifugal.centrifuge.protocol.Refresh refresh = 12;mergeSubscribe(Protocol.Subscribe value) .centrifugal.centrifuge.protocol.Subscribe subscribe = 9;.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;setChannel(String value) string channel = 2;setChannelBytes(com.google.protobuf.ByteString value) string channel = 2;setConnect(Protocol.Connect value) .centrifugal.centrifuge.protocol.Connect connect = 10;setConnect(Protocol.Connect.Builder builderForValue) .centrifugal.centrifuge.protocol.Connect connect = 10;setDisconnect(Protocol.Disconnect value) .centrifugal.centrifuge.protocol.Disconnect disconnect = 11;setDisconnect(Protocol.Disconnect.Builder builderForValue) .centrifugal.centrifuge.protocol.Disconnect disconnect = 11;setJoin(Protocol.Join value) .centrifugal.centrifuge.protocol.Join join = 5;setJoin(Protocol.Join.Builder builderForValue) .centrifugal.centrifuge.protocol.Join join = 5;setLeave(Protocol.Leave value) .centrifugal.centrifuge.protocol.Leave leave = 6;setLeave(Protocol.Leave.Builder builderForValue) .centrifugal.centrifuge.protocol.Leave leave = 6;setMessage(Protocol.Message value) .centrifugal.centrifuge.protocol.Message message = 8;setMessage(Protocol.Message.Builder builderForValue) .centrifugal.centrifuge.protocol.Message message = 8;setPub(Protocol.Publication value) ProtocolVersion2 server can push one of the following fields to the client.setPub(Protocol.Publication.Builder builderForValue) ProtocolVersion2 server can push one of the following fields to the client.setRefresh(Protocol.Refresh value) .centrifugal.centrifuge.protocol.Refresh refresh = 12;setRefresh(Protocol.Refresh.Builder builderForValue) .centrifugal.centrifuge.protocol.Refresh refresh = 12;setSubscribe(Protocol.Subscribe value) .centrifugal.centrifuge.protocol.Subscribe subscribe = 9;setSubscribe(Protocol.Subscribe.Builder builderForValue) .centrifugal.centrifuge.protocol.Subscribe subscribe = 9;.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7;setUnsubscribe(Protocol.Unsubscribe.Builder builderForValue) .centrifugal.centrifuge.protocol.Unsubscribe 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
-
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.
-
setChannel
string channel = 2;- Parameters:
value- The channel to set.- Returns:
- This builder for chaining.
-
clearChannel
string channel = 2;- Returns:
- This builder for chaining.
-
setChannelBytes
string channel = 2;- Parameters:
value- The bytes for channel to set.- Returns:
- This builder for chaining.
-
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.
-
setPub
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; -
setPub
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; -
mergePub
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; -
clearPub
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; -
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.
-
setJoin
.centrifugal.centrifuge.protocol.Join join = 5; -
setJoin
.centrifugal.centrifuge.protocol.Join join = 5; -
mergeJoin
.centrifugal.centrifuge.protocol.Join join = 5; -
clearJoin
.centrifugal.centrifuge.protocol.Join join = 5; -
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.
-
setLeave
.centrifugal.centrifuge.protocol.Leave leave = 6; -
setLeave
.centrifugal.centrifuge.protocol.Leave leave = 6; -
mergeLeave
.centrifugal.centrifuge.protocol.Leave leave = 6; -
clearLeave
.centrifugal.centrifuge.protocol.Leave leave = 6; -
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.
-
setUnsubscribe
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7; -
setUnsubscribe
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7; -
mergeUnsubscribe
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7; -
clearUnsubscribe
.centrifugal.centrifuge.protocol.Unsubscribe unsubscribe = 7; -
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.
-
setMessage
.centrifugal.centrifuge.protocol.Message message = 8; -
setMessage
.centrifugal.centrifuge.protocol.Message message = 8; -
mergeMessage
.centrifugal.centrifuge.protocol.Message message = 8; -
clearMessage
.centrifugal.centrifuge.protocol.Message message = 8; -
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.
-
setSubscribe
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9; -
setSubscribe
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9; -
mergeSubscribe
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9; -
clearSubscribe
.centrifugal.centrifuge.protocol.Subscribe subscribe = 9; -
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.
-
setConnect
.centrifugal.centrifuge.protocol.Connect connect = 10; -
setConnect
.centrifugal.centrifuge.protocol.Connect connect = 10; -
mergeConnect
.centrifugal.centrifuge.protocol.Connect connect = 10; -
clearConnect
.centrifugal.centrifuge.protocol.Connect connect = 10; -
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.
-
setDisconnect
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11; -
setDisconnect
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11; -
mergeDisconnect
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11; -
clearDisconnect
.centrifugal.centrifuge.protocol.Disconnect disconnect = 11; -
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.
-
setRefresh
.centrifugal.centrifuge.protocol.Refresh refresh = 12; -
setRefresh
.centrifugal.centrifuge.protocol.Refresh refresh = 12; -
mergeRefresh
.centrifugal.centrifuge.protocol.Refresh refresh = 12; -
clearRefresh
.centrifugal.centrifuge.protocol.Refresh refresh = 12;
-