1 /*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 // Autogenerated by the ProtoZero C compiler plugin.
18 // Invoked by tools/gen_c_protos
19 // DO NOT EDIT.
20 #ifndef SRC_SHARED_LIB_TEST_PROTOS_LIBRARY_PZC_H_
21 #define SRC_SHARED_LIB_TEST_PROTOS_LIBRARY_PZC_H_
22
23 #include <stdbool.h>
24 #include <stdint.h>
25
26 #include "perfetto/public/pb_macros.h"
27 #include "src/shared_lib/test/protos/library_internals/galaxies.pzc.h"
28
PERFETTO_PB_ENUM_IN_MSG(protozero_test_protos_TransgalacticMessage,MessageType)29 PERFETTO_PB_ENUM_IN_MSG(protozero_test_protos_TransgalacticMessage,
30 MessageType){
31 PERFETTO_PB_ENUM_IN_MSG_ENTRY(protozero_test_protos_TransgalacticMessage,
32 REGULAR) = 0,
33 PERFETTO_PB_ENUM_IN_MSG_ENTRY(protozero_test_protos_TransgalacticMessage,
34 EXPRESS) = 1,
35 };
36
37 PERFETTO_PB_MSG(protozero_test_protos_TransgalacticMessage);
38 PERFETTO_PB_FIELD(protozero_test_protos_TransgalacticMessage,
39 VARINT,
40 enum protozero_test_protos_Galaxy,
41 origin_galaxy,
42 1);
43 PERFETTO_PB_FIELD(protozero_test_protos_TransgalacticMessage,
44 STRING,
45 const char*,
46 origin_planet,
47 2);
48 PERFETTO_PB_FIELD(protozero_test_protos_TransgalacticMessage,
49 VARINT,
50 enum protozero_test_protos_Galaxy,
51 destination_galaxy,
52 3);
53 PERFETTO_PB_FIELD(protozero_test_protos_TransgalacticMessage,
54 STRING,
55 const char*,
56 destination_planet,
57 4);
58 PERFETTO_PB_FIELD(protozero_test_protos_TransgalacticMessage,
59 STRING,
60 const char*,
61 proto_message,
62 5);
63
64 #endif // SRC_SHARED_LIB_TEST_PROTOS_LIBRARY_PZC_H_
65