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

    • getTypeValue

      public int getTypeValue()
      .protocol.Push.PushType type = 1;
      Specified by:
      getTypeValue in interface Protocol.PushOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Protocol.Push.Builder setTypeValue(int value)
      .protocol.Push.PushType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • getType

      public Protocol.Push.PushType getType()
      .protocol.Push.PushType type = 1;
      Specified by:
      getType in interface Protocol.PushOrBuilder
      Returns:
      The type.
    • setType

      public Protocol.Push.Builder setType(Protocol.Push.PushType value)
      .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()
      .protocol.Push.PushType type = 1;
      Returns:
      This builder for chaining.
    • getChannel

      public String getChannel()
      string channel = 2;
      Specified by:
      getChannel in interface Protocol.PushOrBuilder
      Returns:
      The channel.
    • getChannelBytes

      public com.google.protobuf.ByteString getChannelBytes()
      string channel = 2;
      Specified by:
      getChannelBytes in interface Protocol.PushOrBuilder
      Returns:
      The bytes for channel.
    • setChannel

      public Protocol.Push.Builder setChannel(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 interface Protocol.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.