-
- All Implemented Interfaces:
-
com.polygamma.ogm.util.ProtobufMessage
public final class BootDescriptor implements ProtobufMessage
Device boot descriptor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBootDescriptor.BuilderDevice boot descriptor builder.
-
Method Summary
Modifier and Type Method Description static BootDescriptor.BuilderofBuilder()Construct new empty builder. BootDescriptormergeFrom(ProtobufReader reader)Read and merge from Protobuf wire-codec reader. voidwriteTo(ProtobufWriter writer)Write {@code this}to a Protobuf wire-codec writer.BootDescriptor.BuildertoBuilder()Construct new builder initialized with {@code this}.longtimestampSeconds()UNIX epoch timestamp, in seconds, of when device was last booted. Stringid()Unique boot identifier. intcount()boot count of device. inthashCode()booleanequals(@Nullable() Object other)StringtoString()-
-
Method Detail
-
ofBuilder
static BootDescriptor.Builder ofBuilder()
Construct new empty builder.
-
mergeFrom
BootDescriptor mergeFrom(ProtobufReader reader)
Read and merge from Protobuf wire-codec reader.
- Parameters:
reader- reader to merge from
-
writeTo
void writeTo(ProtobufWriter writer)
Write
{@code this}to a Protobuf wire-codec writer.- Parameters:
writer- writer to write to
-
toBuilder
BootDescriptor.Builder toBuilder()
Construct new builder initialized with
{@code this}.
-
timestampSeconds
long timestampSeconds()
UNIX epoch timestamp, in seconds, of when device was last booted.
-
count
int count()
boot count of device.
-
hashCode
int hashCode()
-
-
-
-