GrpcMetadata QML Type
GrpcMetadata は、メタデータを順序付けられていないマルチマップコンテナに格納するクラスです。詳細...
| Import Statement: | import QtGrpc |
| Since: | Qt 6.7 |
プロパティ
- data : QVariantMap
詳細説明
メタデータとは、特定の gRPC™ 呼び出しやチャネルに関する情報(認証情報など)であり、キーと値のペアのリストという形式をとります。ここで、キーは文字列であり、値は通常は文字列ですが、バイナリデータである場合もあります。このクラスは、順不同のコンテナにデータを格納する機能を提供します。また、同じキーに対して複数の値を格納することも可能です。
注: 同じキーに対して複数の値を設定するには、コンマ記号を使用してください 。
プロパティのドキュメント
data : QVariantMap
メタデータコンテナへのアクセスを提供し、QML内でQVariantMap 形式で設定します。
注:データは REQUIRED プロパティです。オブジェクトを作成する際には、必ずこのプロパティを設定する必要があります。
注: 同じキーに対して複数の値を設定するには、コンマ記号を使用します 。以下の例を参照してください:
GrpcMetadata {
id: grpcData
data: ({ "user-name": "localhost, remotehost",
"user-password": "qwerty, 123456"})
}© 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.