Commit 6913db5
authored
feat: update ErrorDetails to allow unpacking arbitrary messages (#3073)
Because the google.rpc.Status.details is a google.protobuf.Any, it can
contain any message. ErrorDetails conveniently unpacks the standard
status message types from google/rpc/error_details.proto but some
services provide their own error details types.
This new method allows unpacking those custom messages without
deserializing the entire google.rpc.Status another time.1 parent 7a26115 commit 6913db5
File tree
2 files changed
+19
-1
lines changed- gax-java/gax/src
- main/java/com/google/api/gax/rpc
- test/java/com/google/api/gax/rpc
2 files changed
+19
-1
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
129 | 138 | | |
130 | 139 | | |
131 | 140 | | |
| |||
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | | - | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
231 | 240 | | |
0 commit comments