Class Protocol.Command.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Command,Protocol.Command.Builder>
-
- io.github.centrifugal.centrifuge.internal.protocol.Protocol.Command.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Protocol.CommandOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Protocol.Command
public static final class Protocol.Command.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Command,Protocol.Command.Builder> implements Protocol.CommandOrBuilder
Protobuf typeprotocol.Command
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protocol.Command.Builder
clearId()
uint32 id = 1;
Protocol.Command.Builder
clearMethod()
.protocol.Command.MethodType method = 2;
Protocol.Command.Builder
clearParams()
bytes params = 3;
int
getId()
uint32 id = 1;
Protocol.Command.MethodType
getMethod()
.protocol.Command.MethodType method = 2;
int
getMethodValue()
.protocol.Command.MethodType method = 2;
com.google.protobuf.ByteString
getParams()
bytes params = 3;
Protocol.Command.Builder
setId(int value)
uint32 id = 1;
Protocol.Command.Builder
setMethod(Protocol.Command.MethodType value)
.protocol.Command.MethodType method = 2;
Protocol.Command.Builder
setMethodValue(int value)
.protocol.Command.MethodType method = 2;
Protocol.Command.Builder
setParams(com.google.protobuf.ByteString value)
bytes params = 3;
-
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
-
getId
public int getId()
uint32 id = 1;
- Specified by:
getId
in interfaceProtocol.CommandOrBuilder
- Returns:
- The id.
-
setId
public Protocol.Command.Builder setId(int value)
uint32 id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Protocol.Command.Builder clearId()
uint32 id = 1;
- Returns:
- This builder for chaining.
-
getMethodValue
public int getMethodValue()
.protocol.Command.MethodType method = 2;
- Specified by:
getMethodValue
in interfaceProtocol.CommandOrBuilder
- Returns:
- The enum numeric value on the wire for method.
-
setMethodValue
public Protocol.Command.Builder setMethodValue(int value)
.protocol.Command.MethodType method = 2;
- Parameters:
value
- The method to set.- Returns:
- This builder for chaining.
-
getMethod
public Protocol.Command.MethodType getMethod()
.protocol.Command.MethodType method = 2;
- Specified by:
getMethod
in interfaceProtocol.CommandOrBuilder
- Returns:
- The method.
-
setMethod
public Protocol.Command.Builder setMethod(Protocol.Command.MethodType value)
.protocol.Command.MethodType method = 2;
- Parameters:
value
- The enum numeric value on the wire for method to set.- Returns:
- This builder for chaining.
-
clearMethod
public Protocol.Command.Builder clearMethod()
.protocol.Command.MethodType method = 2;
- Returns:
- This builder for chaining.
-
getParams
public com.google.protobuf.ByteString getParams()
bytes params = 3;
- Specified by:
getParams
in interfaceProtocol.CommandOrBuilder
- Returns:
- The params.
-
setParams
public Protocol.Command.Builder setParams(com.google.protobuf.ByteString value)
bytes params = 3;
- Parameters:
value
- The params to set.- Returns:
- This builder for chaining.
-
clearParams
public Protocol.Command.Builder clearParams()
bytes params = 3;
- Returns:
- This builder for chaining.
-
-