GrpcChannelOptions QML Type
GrpcChannelOptions è una classe di archiviazione utilizzata per impostare opzioni aggiuntive relative al canale. Maggiori informazioni...
| Import Statement: | import QtGrpc |
| Since: | Qt 6.7 |
| In C++: | QGrpcChannelOptions |
Proprietà
- deadlineTimeout : int
- metadata : GrpcMetadata
- serializationFormat : enumeration
(since 6.8)
Descrizione dettagliata
Fornisce un insieme di proprietà per accedere alle opzioni del canale utilizzate dai gRPC™ i canali per comunicare con i servizi.
Vedi anche QGrpcChannelOptions.
Documentazione sulle proprietà
deadlineTimeout : int
Imposta una scadenza per un canale.
Vedi anche QGrpcChannelOptions::deadlineTimeout.
metadata : GrpcMetadata
Imposta un puntatore all'oggetto metadati utilizzato per un canale.
Vedi anche GrpcMetadata.
serializationFormat : enumeration [since 6.8]
Imposta il formato di serializzazione per il canale. Per impostazione predefinita viene utilizzato il formato “ QtGrpc::SerializationFormat::Default ”.
| Costante | Descrizione |
|---|---|
QtGrpc.SerializationFormat.Default | Preimpostazione predefinita per l'QGrpcSerializationFormat. Questa preimpostazione crea un QProtobufSerializer con un suffisso del tipo di contenuto vuoto. |
QtGrpc.SerializationFormat.Protobuf | Il preset di QGrpcSerializationFormat protobuf incorporato. Questo preset costruisce un QProtobufSerializer con il suffisso del tipo di contenuto proto. |
QtGrpc.SerializationFormat.Json | Il preset JSON incorporato QGrpcSerializationFormat. Questo preset crea un QProtobufJsonSerializer con il suffisso del tipo di contenuto json. |
Questa proprietà è stata introdotta in Qt 6.8.
Vedi anche QGrpcChannelOptions::serializationFormat, QtGrpc::SerializationFormat e QGrpcSerializationFormat.
© 2026 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.