Commit 3df65f8
committed
fix: Adapt model_config_utils to protobuf v33 API
Three breakages against the protobuf bundled with gRPC v1.81.1:
- FieldDescriptor::name() now returns absl::string_view; wrap in
std::string for concatenation.
- JsonPrintOptions::always_print_primitive_fields was removed; use its
designated replacement always_print_fields_with_no_presence.
- MessageToJsonString's absl::Status return is nodiscard and fails the
-Werror build when ignored; propagate it as an INTERNAL status.1 parent f07e2f3 commit 3df65f8
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | | - | |
| 1979 | + | |
1980 | 1980 | | |
1981 | 1981 | | |
1982 | 1982 | | |
| |||
2201 | 2201 | | |
2202 | 2202 | | |
2203 | 2203 | | |
2204 | | - | |
2205 | | - | |
| 2204 | + | |
| 2205 | + | |
2206 | 2206 | | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
2207 | 2213 | | |
2208 | 2214 | | |
2209 | 2215 | | |
| |||
0 commit comments