Class Protocol.Push.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- 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
,java.lang.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
Protobuf typecentrifugal.centrifuge.protocol.Push
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protocol.Push.Builder
clearChannel()
string channel = 2;
Protocol.Push.Builder
clearData()
bytes data = 3;
Protocol.Push.Builder
clearType()
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
java.lang.String
getChannel()
string channel = 2;
com.google.protobuf.ByteString
getChannelBytes()
string channel = 2;
com.google.protobuf.ByteString
getData()
bytes data = 3;
Protocol.Push.PushType
getType()
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
int
getTypeValue()
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
Protocol.Push.Builder
setChannel(java.lang.String value)
string channel = 2;
Protocol.Push.Builder
setChannelBytes(com.google.protobuf.ByteString value)
string channel = 2;
Protocol.Push.Builder
setData(com.google.protobuf.ByteString value)
bytes data = 3;
Protocol.Push.Builder
setType(Protocol.Push.PushType value)
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
Protocol.Push.Builder
setTypeValue(int value)
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getTypeValue
public int getTypeValue()
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
- Specified by:
getTypeValue
in interfaceProtocol.PushOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Protocol.Push.Builder setTypeValue(int value)
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
getType
public Protocol.Push.PushType getType()
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
- Specified by:
getType
in interfaceProtocol.PushOrBuilder
- Returns:
- The type.
-
setType
public Protocol.Push.Builder setType(Protocol.Push.PushType value)
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
clearType
public Protocol.Push.Builder clearType()
.centrifugal.centrifuge.protocol.Push.PushType type = 1;
- Returns:
- This builder for chaining.
-
getChannel
public java.lang.String getChannel()
string channel = 2;
- Specified by:
getChannel
in interfaceProtocol.PushOrBuilder
- Returns:
- The channel.
-
getChannelBytes
public com.google.protobuf.ByteString getChannelBytes()
string channel = 2;
- Specified by:
getChannelBytes
in interfaceProtocol.PushOrBuilder
- Returns:
- The bytes for channel.
-
setChannel
public Protocol.Push.Builder setChannel(java.lang.String value)
string channel = 2;
- Parameters:
value
- The channel to set.- Returns:
- This builder for chaining.
-
clearChannel
public Protocol.Push.Builder clearChannel()
string channel = 2;
- Returns:
- This builder for chaining.
-
setChannelBytes
public Protocol.Push.Builder setChannelBytes(com.google.protobuf.ByteString value)
string channel = 2;
- Parameters:
value
- The bytes for channel to set.- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()
bytes data = 3;
- Specified by:
getData
in interfaceProtocol.PushOrBuilder
- Returns:
- The data.
-
setData
public Protocol.Push.Builder setData(com.google.protobuf.ByteString value)
bytes data = 3;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
public Protocol.Push.Builder clearData()
bytes data = 3;
- Returns:
- This builder for chaining.
-
-