Class ProfilePayload

java.lang.Object
be.theking90000.mumble.controller.core.ProfilePayload

public final class ProfilePayload extends Object
Immutable encoded Protobuf payload interpreted only by the negotiated profile.
  • Method Details

    • empty

      public static ProfilePayload empty()
      Returns the canonical empty payload.
      Returns:
      empty payload
    • of

      public static ProfilePayload of(byte[] protobuf)
      Copies encoded Protobuf bytes into an immutable payload.
      Parameters:
      protobuf - encoded profile message
      Returns:
      immutable payload
      Throws:
      NullPointerException - if protobuf is null
    • protobuf

      public byte[] protobuf()
      Returns a defensive copy of the encoded Protobuf bytes.
      Returns:
      encoded profile message