Class ProfilePayload
java.lang.Object
be.theking90000.mumble.controller.core.ProfilePayload
Immutable encoded Protobuf payload interpreted only by the negotiated profile.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProfilePayloadempty()Returns the canonical empty payload.static ProfilePayloadof(byte[] protobuf) Copies encoded Protobuf bytes into an immutable payload.byte[]protobuf()Returns a defensive copy of the encoded Protobuf bytes.
-
Method Details
-
empty
Returns the canonical empty payload.- Returns:
- empty payload
-
of
Copies encoded Protobuf bytes into an immutable payload.- Parameters:
protobuf- encoded profile message- Returns:
- immutable payload
- Throws:
NullPointerException- ifprotobufisnull
-
protobuf
public byte[] protobuf()Returns a defensive copy of the encoded Protobuf bytes.- Returns:
- encoded profile message
-