Qt Protobuf Well-Known Types C++ Classes
The Qt Protobuf Well-Known Types module provides support for some of the types available from the Well-Known Types package. More...
This module is in Technical Preview state.
This module was introduced in Qt 6.6.
Classes
A helper class to simplify working with the protobuf Any type |
Detailed Description
QtProtobufWellKnownTypes contains the following Protobuf Well-Known types: Supported types:
- Any (message)
- Api (message)
- BoolValue (message)
- BytesValue (message)
- DoubleValue (message)
- Duration (message)
- Empty (message)
- Enum (message)
- EnumValue (message)
- Field (message)
- Field.Cardinality (enum)
- Field.Kind (enum)
- FieldMask (message)
- FloatValue (message)
- Int32Value (message)
- Int64Value (message)
- ListValue (message)
- Method (message)
- Mixin (message)
- NullValue (enum)
- Option (message)
- SourceContext (message)
- StringValue (message)
- Struct (message)
- Syntax (enum)
- Timestamp (message)
- Type (message)
- UInt32Value (message)
- UInt64Value (message)
- Value (message)
To use well-known type in your project you may include the corresponding google .proto file in your interface:
syntax = "proto3"; package somepackage; import "google/protobuf/any.proto"; message Message { google.protobuf.Any payload = 1; }
To use the types listed you must link with the QtProtobuf WellKnownTypes library by adding the following line to your CMakeLists.txt file:
target_link_libraries(YourTargetName PRIVATE Qt::ProtobufWellKnownTypes)
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.