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
  • Method Details

    • getId

      public int getId()
      uint32 id = 1;
      Specified by:
      getId in interface Protocol.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 interface Protocol.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 interface Protocol.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

      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 interface Protocol.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.