I am writing a java client which communicates to a server using gRPC. The server (written in rust) returns structured data in the case of errors using the Status Details
field.
I see that com.google.rpc.Status
has a getDetails
method for accessing the "Any" type. However, my generated java code along with all of the exampls gRPC java clients I've found are using io.grpc.*
and io.grpc.Status
does not have any way of accessing Details
.
How can I access Details? Either by using io.grpc.* or somehow changing my generated grpc client to use com.google.rpc.