GrpcChannelOptions QML Type
Grpc채널옵션은 추가 채널 옵션을 설정하는 데 사용되는 스토리지 클래스입니다. 더 보기...
Import Statement: | import QtGrpc |
Since: | Qt 6.7 |
In C++: | QGrpcChannelOptions |
속성
- deadlineTimeout : int
- metadata : GrpcMetadata
- serializationFormat : enumeration
(since 6.8)
상세 설명
서비스와 통신하는 채널에서 사용하는 채널 옵션에 액세스하기 위한 속성 집합을 제공합니다. gRPC™ 채널이 서비스와 통신하는 데 사용하는 채널 옵션에 액세스할 수 있는 속성 집합을 제공합니다.
QGrpcChannelOptions도 참조하세요 .
속성 문서
deadlineTimeout : int |
채널의 마감일 값을 설정합니다.
QGrpcChannelOptions::deadlineTimeout도 참조 하세요.
metadata : GrpcMetadata |
채널에 사용되는 메타데이터 개체에 대한 포인터를 설정합니다.
GrpcMetadata도 참조하세요 .
serializationFormat : enumeration |
채널의 직렬화 형식을 설정합니다. 기본적으로 QtGrpc::SerializationFormat::Default 형식이 사용됩니다.
상수 | 설명 |
---|---|
QtGrpc.SerializationFormat.Default | 기본값은 QGrpcSerializationFormat 사전 설정입니다. 이 사전 설정은 빈 콘텐츠 유형 접미사를 사용하여 QProtobufSerializer 를 구성합니다. |
QtGrpc.SerializationFormat.Protobuf | 임베디드 프로토부프 QGrpcSerializationFormat 사전 설정. 이 사전 설정은 proto 콘텐츠 유형 접미사가 있는 QProtobufSerializer 을 생성합니다. |
QtGrpc.SerializationFormat.Json | 임베드된 JSON QGrpcSerializationFormat 프리셋입니다. 이 프리셋은 json 콘텐츠 유형 접미사가 붙은 QProtobufJsonSerializer 을 생성합니다. |
이 프로퍼티는 Qt 6.8에 도입되었습니다.
QGrpcChannelOptions::serializationFormat, QtGrpc::SerializationFormat, QGrpcSerializationFormat 를참조하십시오 .
© 2025 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.