Record Class ConfluentWireFormat.ProtobufFrame
java.lang.Object
java.lang.Record
io.krabka.streams.schema.ConfluentWireFormat.ProtobufFrame
- Record Components:
schemaId- the registry schema ID from the headermessageIndexes- the message-index path, outermost firstbody- the serialized Protobuf message that followed the indexes
- Enclosing class:
ConfluentWireFormat
-
Constructor Summary
ConstructorsConstructorDescriptionProtobufFrame(int schemaId, List<Integer> messageIndexes, byte[] body) Copies the mutable components so the frame is immutable. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]body()Returns a copy of the serialized Protobuf message.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIndexesrecord component.intschemaId()Returns the value of theschemaIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProtobufFrame
Copies the mutable components so the frame is immutable.- Parameters:
schemaId- the registry schema ID from the headermessageIndexes- the message-index path, outermost firstbody- the serialized Protobuf message that followed the indexes
-
-
Method Details
-
body
public byte[] body()Returns a copy of the serialized Protobuf message.- Returns:
- a fresh copy of the body bytes
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
schemaId
-
messageIndexes
Returns the value of themessageIndexesrecord component.- Returns:
- the value of the
messageIndexesrecord component
-