libprocessgroup: Explicit field presence for MaxActivationDepth
https://protobuf.dev/programming-guides/field_presence/
Explicit field presence is required to support a MaxActivationDepth
value of 0 (the implicit default) for the libprocessgroup_proto_test.
Other non-zero values work fine.
All (positive) values of MaxActivationDepth work correctly at runtime.
This is a test-only fix.
Test: atest libprocessgroup_proto_test
Bug: 346584259
Bug: 377579705
Fixes: 28b37f270 ("libprocessgroup: Add MaxActivationDepth")
Change-Id: Ic3acc85790e1c84bef3f2bb50399011f28339c3b
diff --git a/libprocessgroup/profiles/cgroups.proto b/libprocessgroup/profiles/cgroups.proto
index d2fd472..1a78e9d 100644
--- a/libprocessgroup/profiles/cgroups.proto
+++ b/libprocessgroup/profiles/cgroups.proto
@@ -36,7 +36,7 @@
// https://developers.google.com/protocol-buffers/docs/proto3#default
bool needs_activation = 6 [json_name = "NeedsActivation"];
bool is_optional = 7 [json_name = "Optional"];
- uint32 max_activation_depth = 8 [json_name = "MaxActivationDepth"];
+ optional uint32 max_activation_depth = 8 [json_name = "MaxActivationDepth"];
}
// Next: 6