1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
// Copyright (C) 2022 The Qt Company Ltd.
// Copyright (C) 2019 Alexey Edelev <semlanik@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include <QtProtobuf/qtprotobuftypes.h>
QT_BEGIN_NAMESPACE
/*!
\enum QtProtobuf::WireTypes
\brief The WireTypes enumeration reflects protobuf default wiretypes.
The following table shows the values in the enumeration and their
corresponding types:
\value Unknown Invalid wire type
\value Varint int32, int64, uint32, uint64, sint32, sint64, bool, enum
\value Fixed64 fixed64, sfixed64, double
\value LengthDelimited string, bytes, embedded messages, packed repeated fields
\value StartGroup groups. Deprecated in proto syntax 3. Not supported by Qt Protobuf.
\value EndGroup groups. Deprecated in proto syntax 3. Not supported by Qt Protobuf.
\value Fixed32 fixed32, sfixed32, float
\sa {https://protobuf.dev/programming-guides/encoding} {encoding}
*/
/*!
\class QProtobufFieldInfo
\inmodule QtProtobuf
\internal
\brief Holds a property's index in the property system, and the json_name.
This class is used by the QAbstractProtobufSerializer to help serialize/
deserialize protobuf messages.
\sa QProtobufPropertyOrdering
*/
/*!
\typealias QProtobufPropertyOrdering
\internal
A map between the property field index and an instance of
QProtobufFieldInfo.
\sa Q_PROTOBUF_OBJECT
*/
/*!
\namespace QtProtobuf
\brief The QtProtobuf namespace contains type aliases and classes needed to support Qt Protobuf.
\inmodule QtProtobuf
*/
/*!
\struct QtProtobuf::transparent
\inmodule QtProtobuf
\internal
\brief Only used to create new, unique types for numeric types.
*/
/*!
\typealias QtProtobuf::int32
int32 is a regular signed 32-bit integer that is represented in protobuf as
a variable size integer, an alias for WireTypes::Varint.
*/
/*!
\typealias QtProtobuf::int64
int64 is a regular signed 64-bit integer that is represented in protobuf as
a variable size integer, an alias for WireTypes::Varint.
*/
/*!
\typealias QtProtobuf::uint32
uint32 is an unsigned 32-bit integer that is represented in protobuf as
variable size integer, an alias for WireTypes::Varint.
*/
/*!
\typealias QtProtobuf::uint64
uint64 is an unsigned 64-bit integer that is represented in protobuf as
variable size integer, an alias for WireTypes::Varint.
*/
/*!
\typealias QtProtobuf::sint32
sint32 is a 32-bit integer with forced sign marker that is represented in
protobuf as variable size integer, an alias for WireTypes::Varint.
sint32 is serialized using ZigZag conversion to reduce size of negative
numbers.
\sa {https://protobuf.dev/programming-guides/encoding/#signed-ints} {signed-integers}
*/
/*!
\typealias QtProtobuf::sint64
sint64 is a 64-bit integer with forced sign marker that is represented in
protobuf as variable size integer, an alias for WireTypes::Varint.
sint64 is serialized using ZigZag conversion to reduce size of negative numbers.
\sa {https://protobuf.dev/programming-guides/encoding/#signed-ints} {signed-integers}
*/
/*!
\typealias QtProtobuf::fixed32
fixed32 is an unsigned 32-bit integer that is represented in protobuf as a
fixed size 32-bit field, an alias for WireTypes::Fixed32.
*/
/*!
\typealias QtProtobuf::fixed64
fixed64 is an unsigned 64-bit integer that is represented in protobuf as a
fixed size 64-bit field, an alias for WireTypes::Fixed64.
*/
/*!
\typealias QtProtobuf::sfixed32
sfixed32 is a signed 32-bit integer that is represented in protobuf as a
fixed size 32-bit field, an alias for WireTypes::Fixed32.
*/
/*!
\typealias QtProtobuf::sfixed64
sfixed64 is a signed 64-bit integer that is represented in protobuf as a
fixed size 64-bit field, an alias for WireTypes::Fixed64.
*/
/*!
\typealias QtProtobuf::int32List
Alias for a list of QtProtobuf::int32.
*/
/*!
\typealias QtProtobuf::int64List
Alias for a list of QtProtobuf::int64.
*/
/*!
\typealias QtProtobuf::uint32List
Alias for a list of QtProtobuf::uint32.
*/
/*!
\typealias QtProtobuf::uint64List
Alias for a list of QtProtobuf::uint64.
*/
/*!
\typealias QtProtobuf::sint32List
Alias for a list of QtProtobuf::sint32.
*/
/*!
\typealias QtProtobuf::sint64List
Alias for a list of QtProtobuf::sint64.
*/
/*!
\typealias QtProtobuf::fixed32List
Alias for a list of QtProtobuf::fixed32.
*/
/*!
\typealias QtProtobuf::fixed64List
Alias for a list of QtProtobuf::fixed64.
*/
/*!
\typealias QtProtobuf::sfixed32List
Alias for a list of QtProtobuf::sfixed32.
*/
/*!
\typealias QtProtobuf::sfixed64List
Alias for a list of QtProtobuf::sfixed64.
*/
/*!
\typealias QtProtobuf::floatList
Alias for a list of float.
*/
/*!
\typealias QtProtobuf::doubleList
Alias for a list of double.
*/
/*!
\typealias QtProtobuf::boolList
Alias for a list of bool.
*/
/*!
\typealias QtProtobuf::RegisterFunction
\internal
*/
/*!
\fn template <typename T> struct QtProtobuf::ProtoTypeRegistrar
\internal
Used in the type registration process.
*/
QT_END_NAMESPACE
#include "moc_qtprotobuftypes.cpp"
|