-
- All Implemented Interfaces:
-
com.polygamma.ogm.util.ProtobufMessage
public final class LocationsDescriptor implements ProtobufMessage
GPS and network location descriptor.
-
-
Constructor Summary
Constructors Constructor Description LocationsDescriptor(long ts, LocationDescriptor gps, LocationDescriptor net)Construct new locations descriptor.
-
Method Summary
Modifier and Type Method Description LocationsDescriptormergeFrom(ProtobufReader reader)Read and merge from Protobuf wire-codec reader. voidwriteTo(ProtobufWriter writer)Write {@code this}to a Protobuf wire-codec writer.longtimestampSeconds()UNIX epoch timestamp, in seconds, of when descriptor was generator. LocationDescriptorgps()GPS derived location descriptor. LocationDescriptornetwork()Network derived location descriptor. inthashCode()booleanequals(@Nullable() Object other)StringtoString()-
-
Constructor Detail
-
LocationsDescriptor
LocationsDescriptor(long ts, LocationDescriptor gps, LocationDescriptor net)
Construct new locations descriptor.- Parameters:
ts- UNIX epoch timestamp, in seconds, of when descriptor was generatedgps- GPS derived location descriptornet- network derived location descriptor
-
-
Method Detail
-
mergeFrom
LocationsDescriptor 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
-
timestampSeconds
long timestampSeconds()
UNIX epoch timestamp, in seconds, of when descriptor was generator.
-
gps
LocationDescriptor gps()
GPS derived location descriptor.
-
network
LocationDescriptor network()
Network derived location descriptor.
-
hashCode
int hashCode()
-
-
-
-