java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.ActionDataSync
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record ActionDataSync(byte[] index, ActionValueSync value, byte[] padding, Integer version)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for theindexrecord component.private final byte[]The field for thepaddingrecord component.private final ActionValueSyncThe field for thevaluerecord component.private final IntegerThe field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionActionDataSync(byte[] index, ActionValueSync value, byte[] padding, Integer version) Creates an instance of aActionDataSyncrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]index()Returns the value of theindexrecord component.byte[]padding()Returns the value of thepaddingrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.version()Returns the value of theversionrecord component.
-
Field Details
-
index
private final byte[] indexThe field for theindexrecord component. -
value
The field for thevaluerecord component. -
padding
private final byte[] paddingThe field for thepaddingrecord component. -
version
The field for theversionrecord component.
-
-
Constructor Details
-
ActionDataSync
Creates an instance of aActionDataSyncrecord class.- Parameters:
index- the value for theindexrecord componentvalue- the value for thevaluerecord componentpadding- the value for thepaddingrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
messageIndex
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
index
public byte[] index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
padding
public byte[] padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-