Struct GrpcChannelArgumentsNativeOption (2.44.0-rc)

The native grpc::ChannelArguments object.

This option gives users full control over the grpc::ChannelArguments objects that will be created. See the gRPC documentation for more details about available channel arguments.

Example

To configure gRPC's maximum metadata size to 32MiB (which can be useful to avoid RESOURCE_EXHAUSTED errors when exporting gRPC metrics), you can use:

google::cloud::Options options;
grpc::ChannelArguments args;
args.SetInt(GRPC_ARG_MAX_METADATA_SIZE, 32 * 1024 * 1024);
options.set<google::cloud::GrpcChannelArgumentsNativeOption>(args);
See Also

https://grpc.github.io/grpc/cpp/classgrpc_1_1_channel_arguments.html

See Also

https://grpc.github.io/grpc/core/group__grpc__arg__keys.html

Type Aliases

Type

Alias Of: grpc::ChannelArguments