Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a0c0952 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Explicitly mention a confusing proto3 infelicity." into main

parents 2324fda1 981d1451
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -15,6 +15,15 @@ option java_outer_classname = "TombstoneProtos";
// NOTE TO OEMS:
// If you add custom fields to this proto, do not use numbers in the reserved range.

// NOTE TO CONSUMERS:
// With proto3 -- unlike proto2 -- HasValue is unreliable for any field
// where the default value for that type is also a valid value for the field.
// This means, for example, that a boolean that is false or an integer that
// is zero will appear to be missing --- but because they're not actually
// marked as `optional` in this schema, consumers should just use values
// without first checking whether or not they're "present".
// https://protobuf.dev/programming-guides/proto3/#default

message CrashDetail {
  bytes name = 1;
  bytes data = 2;