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
,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 type
protocol.Push
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionstring channel = 2;
bytes data = 3;
.protocol.Push.PushType type = 1;
string channel = 2;
com.google.protobuf.ByteString
string channel = 2;
com.google.protobuf.ByteString
getData()
bytes data = 3;
getType()
.protocol.Push.PushType type = 1;
int
.protocol.Push.PushType type = 1;
setChannel(String value)
string channel = 2;
setChannelBytes(com.google.protobuf.ByteString value)
string channel = 2;
setData(com.google.protobuf.ByteString value)
bytes data = 3;
setType(Protocol.Push.PushType value)
.protocol.Push.PushType type = 1;
setTypeValue(int value)
.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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getTypeValue
public int getTypeValue().protocol.Push.PushType type = 1;
- Specified by:
getTypeValue
in interfaceProtocol.PushOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.protocol.Push.PushType type = 1;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
getType
.protocol.Push.PushType type = 1;
- Specified by:
getType
in interfaceProtocol.PushOrBuilder
- Returns:
- The type.
-
setType
.protocol.Push.PushType type = 1;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
clearType
.protocol.Push.PushType type = 1;
- Returns:
- This builder for chaining.
-
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
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.
-
getData
public com.google.protobuf.ByteString getData()bytes data = 3;
- Specified by:
getData
in interfaceProtocol.PushOrBuilder
- Returns:
- The data.
-
setData
bytes data = 3;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
bytes data = 3;
- Returns:
- This builder for chaining.
-