Change proto2 to proto3
This also resolves "required".
Bug: 80125326
Test: mma -j
Change-Id: I45d82946def2fe7c766a1b7ee1351a48d80f3d8d
diff --git a/sysprop.proto b/sysprop.proto
index 7b0f21c..f6f868c 100644
--- a/sysprop.proto
+++ b/sysprop.proto
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-syntax = "proto2";
+syntax = "proto3";
package sysprop;
@@ -53,16 +53,16 @@
}
message Property {
- required string api_name = 1;
- required Type type = 2;
- required Access access = 3;
- required Scope scope = 4;
- optional string prop_name = 5;
- optional string enum_values = 6;
+ string api_name = 1;
+ Type type = 2;
+ Access access = 3;
+ Scope scope = 4;
+ string prop_name = 5;
+ string enum_values = 6;
}
message Properties {
- required Owner owner = 1;
- required string module = 2;
+ Owner owner = 1;
+ string module = 2;
repeated Property prop = 3;
}