xref: /aosp_15_r20/external/perfetto/src/shared_lib/test/protos/other_package/test_messages.pzc.h (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
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_OTHER_PACKAGE_TEST_MESSAGES_PZC_H_
21 #define SRC_SHARED_LIB_TEST_PROTOS_OTHER_PACKAGE_TEST_MESSAGES_PZC_H_
22 
23 #include <stdbool.h>
24 #include <stdint.h>
25 
26 #include "perfetto/public/pb_macros.h"
27 
28 PERFETTO_PB_MSG_DECL(other_package_Message_NestedMessage);
29 
PERFETTO_PB_ENUM(other_package_Enum)30 PERFETTO_PB_ENUM(other_package_Enum){
31     PERFETTO_PB_ENUM_ENTRY(other_package_A) = 10,
32     PERFETTO_PB_ENUM_ENTRY(other_package_B) = 11,
33 };
34 
PERFETTO_PB_ENUM_IN_MSG(other_package_Message,NestedEnum)35 PERFETTO_PB_ENUM_IN_MSG(other_package_Message, NestedEnum){
36     PERFETTO_PB_ENUM_IN_MSG_ENTRY(other_package_Message, C) = 12,
37     PERFETTO_PB_ENUM_IN_MSG_ENTRY(other_package_Message, D) = 13,
38 };
39 
40 PERFETTO_PB_MSG(other_package_Message);
41 PERFETTO_PB_FIELD(other_package_Message, VARINT, int32_t, field_int32, 1);
42 PERFETTO_PB_FIELD(other_package_Message,
43                   VARINT,
44                   enum other_package_Enum,
45                   field_enum,
46                   2);
47 PERFETTO_PB_FIELD(other_package_Message,
48                   VARINT,
49                   enum other_package_Message_NestedEnum,
50                   field_nested_enum,
51                   3);
52 PERFETTO_PB_FIELD(other_package_Message,
53                   MSG,
54                   other_package_Message_NestedMessage,
55                   field_nested_message,
56                   4);
57 
58 PERFETTO_PB_MSG(other_package_Message_NestedMessage);
59 PERFETTO_PB_FIELD(other_package_Message_NestedMessage,
60                   VARINT,
61                   int32_t,
62                   field_int32,
63                   1);
64 
65 #endif  // SRC_SHARED_LIB_TEST_PROTOS_OTHER_PACKAGE_TEST_MESSAGES_PZC_H_
66