Add compatibility markers to proto generated code.
This asserts at build time that the generated code is compatible with
the proto package that it is linked to.
diff --git a/proto/lib.go b/proto/lib.go
index 6837512..42a58c6 100644
--- a/proto/lib.go
+++ b/proto/lib.go
@@ -887,3 +887,7 @@
}
return false
}
+
+// ProtoPackageIsVersion1 is referenced from generated protocol buffer files
+// to assert that that code is compatible with this version of the proto package.
+const ProtoPackageIsVersion1 = true