From 522434e4f9f0f35e222c6d692269c1295353926a Mon Sep 17 00:00:00 2001 From: Sergii Tkachenko Date: Thu, 7 Dec 2023 16:24:11 -0800 Subject: [PATCH] docs: service_config.md: fix pb syntax, add highlighting (#35232) 1. Protobuf doesn't support `//` comments, only `#` 2. Add syntax highlighting Closes #35232 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35232 from grpc:sergiitk-service_config e17a9ef14d201c63df047ae7543b0d47942fc527 PiperOrigin-RevId: 588943566 --- doc/service_config.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/service_config.md b/doc/service_config.md index 57f5e1989e820..6312cda7f6285 100644 --- a/doc/service_config.md +++ b/doc/service_config.md @@ -62,12 +62,12 @@ DNS](https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md). Here is an example service config in protobuf form: -``` +```textproto { - // Use round_robin LB policy. + # Use round_robin LB policy. load_balancing_config: { round_robin: {} } - // This method config applies to method "foo/bar" and to all methods - // of service "baz". + # This method config applies to method "foo/bar" and to all methods + # of service "baz". method_config: { name: { service: "foo" @@ -76,7 +76,7 @@ Here is an example service config in protobuf form: name: { service: "baz" } - // Default timeout for matching methods. + # Default timeout for matching methods. timeout: { seconds: 1 nanos: 1 @@ -87,7 +87,7 @@ Here is an example service config in protobuf form: Here is the same example service config in JSON form: -``` +```json { "loadBalancingConfig": [ { "round_robin": {} } ], "methodConfig": [