* @brief Sets a string field on a protobuf Struct. */
| 148 | * @brief Sets a string field on a protobuf Struct. |
| 149 | */ |
| 150 | static inline void setString(google::protobuf::Struct& s, const char* key, const QString& val) |
| 151 | { |
| 152 | (*s.mutable_fields())[key].set_string_value(val.toStdString()); |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * @brief Sets a double field on a protobuf Struct. |