Added protobuf messages to be used by run_cvd
Defined the protobuf messages to replace/extend the 1 byte
run_cvd LauncherAction command. Will do the same for
LauncherResponse in the future CLs.
Bug: 286427118
Test: m -j 15 libcuttlefish_run_cvd_proto
Change-Id: I5e55b3746b167033adeca0f44eaf122bb7ad09ee
diff --git a/host/commands/run_cvd/proto/Android.bp b/host/commands/run_cvd/proto/Android.bp
new file mode 100644
index 0000000..6edd9ae
--- /dev/null
+++ b/host/commands/run_cvd/proto/Android.bp
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2023 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+cc_library_static {
+ name: "libcuttlefish_run_cvd_proto",
+ host_supported: true,
+ proto: {
+ export_proto_headers: true,
+ type: "full",
+ },
+ srcs: [
+ "run_cvd.proto",
+ ],
+ defaults: [
+ "cuttlefish_host",
+ "cuttlefish_libicuuc",
+ "cvd_cc_defaults",
+ ],
+}
diff --git a/host/commands/run_cvd/proto/run_cvd.proto b/host/commands/run_cvd/proto/run_cvd.proto
new file mode 100644
index 0000000..91f68d0
--- /dev/null
+++ b/host/commands/run_cvd/proto/run_cvd.proto
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2023 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+syntax = "proto3";
+
+package cuttlefish.run_cvd;
+
+message Action {
+ oneof actions {
+ Powerwash powerwash = 1;
+ Restart restart = 2;
+ Status status = 3;
+ Stop stop = 4;
+ Suspend suspend = 5;
+ }
+}
+
+message Powerwash {}
+message Restart {}
+/**
+ * TODO(*): Add fields to status action
+ */
+message Status {}
+message Stop {}
+message Suspend {}