GrpcChannelOptions QML Type | Qt GRPC | Qt 6.10.3
Description: The GrpcChannelOptions is an storage class used to set additional channel options.

- Qt 6.10
- Qt GRPC
- QML Types
- GrpcChannelOptions
- Qt 6.10.3 Reference Documentation

# GrpcChannelOptions QML Type

The GrpcChannelOptions is an storage class used to set additional channel options. More...

Import Statement: | `import QtGrpc`
Since: | Qt 6.7
In C++: | QGrpcChannelOptions

- List of all members, including inherited members

## Properties

- deadlineTimeout : int
- metadata : GrpcMetadata
- serializationFormat : enumeration `(since 6.8)`

## Detailed Description

Provides a set of properties to access the channel options that are used by gRPC™ channels to communicate with the services.

See also QGrpcChannelOptions.

## Property Documentation

deadlineTimeout : int

Sets a deadline value for a channel.

See also QGrpcChannelOptions::deadlineTimeout.

metadata : GrpcMetadata

Sets a pointer to the metadata object used for a channel.

See also GrpcMetadata.

serializationFormat : enumeration `[since 6.8]`

Sets the serialization format for the channel. The QtGrpc::SerializationFormat::Default format is used by default.

Constant | Description
--- | ---
`QtGrpc.SerializationFormat.Default` | The default QGrpcSerializationFormat preset. This preset constructs a QProtobufSerializer with an empty content type suffix.
`QtGrpc.SerializationFormat.Protobuf` | The embedded protobuf QGrpcSerializationFormat preset. This preset constructs a QProtobufSerializer with the `proto` content type suffix.
`QtGrpc.SerializationFormat.Json` | The embedded JSON QGrpcSerializationFormat preset. This preset constructs a QProtobufJsonSerializer with the `json` content type suffix.

This property was introduced in Qt 6.8.

See also QGrpcChannelOptions::serializationFormat, QtGrpc::SerializationFormat, and QGrpcSerializationFormat.