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
,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 type
protocol.Command
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionclearId()
uint32 id = 1;
.protocol.Command.MethodType method = 2;
bytes params = 3;
int
getId()
uint32 id = 1;
.protocol.Command.MethodType method = 2;
int
.protocol.Command.MethodType method = 2;
com.google.protobuf.ByteString
bytes params = 3;
setId(int value)
uint32 id = 1;
setMethod(Protocol.Command.MethodType value)
.protocol.Command.MethodType method = 2;
setMethodValue(int value)
.protocol.Command.MethodType method = 2;
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
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
-
getId
public int getId()uint32 id = 1;
- Specified by:
getId
in interfaceProtocol.CommandOrBuilder
- Returns:
- The id.
-
setId
uint32 id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
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
.protocol.Command.MethodType method = 2;
- Parameters:
value
- The method to set.- Returns:
- This builder for chaining.
-
getMethod
.protocol.Command.MethodType method = 2;
- Specified by:
getMethod
in interfaceProtocol.CommandOrBuilder
- Returns:
- The method.
-
setMethod
.protocol.Command.MethodType method = 2;
- Parameters:
value
- The enum numeric value on the wire for method to set.- Returns:
- This builder for chaining.
-
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
bytes params = 3;
- Parameters:
value
- The params to set.- Returns:
- This builder for chaining.
-
clearParams
bytes params = 3;
- Returns:
- This builder for chaining.
-