public void MergeFrom(GPSLocation other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Lat != 0D) { Lat = other.Lat; } if (other.Lon != 0D) { Lon = other.Lon; } if (other.Alt != 0) { Alt = other.Alt; } if (other.LockScreenMessage.Length != 0) { LockScreenMessage = other.LockScreenMessage; } if (other.localizedLockScreenMessage_ != null) { if (localizedLockScreenMessage_ == null) { LocalizedLockScreenMessage = new global::PKIo.LocalizedString(); } LocalizedLockScreenMessage.MergeFrom(other.LocalizedLockScreenMessage); } if (other.Position != 0) { Position = other.Position; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(Beacon other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Uuid.Length != 0) { Uuid = other.Uuid; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Major != 0) { Major = other.Major; } if (other.Minor != 0) { Minor = other.Minor; } if (other.LockScreenMessage.Length != 0) { LockScreenMessage = other.LockScreenMessage; } if (other.localizedLockScreenMessage_ != null) { if (localizedLockScreenMessage_ == null) { LocalizedLockScreenMessage = new global::PKIo.LocalizedString(); } LocalizedLockScreenMessage.MergeFrom(other.LocalizedLockScreenMessage); } if (other.Position != 0) { Position = other.Position; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Lat != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Lat); } if (Lon != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Lon); } if (Alt != 0) { hash ^= Alt.GetHashCode(); } if (LockScreenMessage.Length != 0) { hash ^= LockScreenMessage.GetHashCode(); } if (localizedLockScreenMessage_ != null) { hash ^= LocalizedLockScreenMessage.GetHashCode(); } if (Position != 0) { hash ^= Position.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Uuid.Length != 0) { hash ^= Uuid.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Major != 0) { hash ^= Major.GetHashCode(); } if (Minor != 0) { hash ^= Minor.GetHashCode(); } if (LockScreenMessage.Length != 0) { hash ^= LockScreenMessage.GetHashCode(); } if (localizedLockScreenMessage_ != null) { hash ^= LocalizedLockScreenMessage.GetHashCode(); } if (Position != 0) { hash ^= Position.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }