Ok I found my answer after digging through some old issues in GRPC-Gateway Github. This issue called out a similar situation to mine. Once it was added it pointed to the correct spot in the documentation: https://github.com/grpc-ecosystem/grpc-gateway/issues/707
Under special notes
https://cloud.google.com/service-infrastructure/docs/service-management/reference/rpc/google.api#special-notes I found the field for responseBody
In my RPC definition, I was able to add a responseBody
field which pulls out my array to the top level JSON:
option (google.api.http) = {
get: "/test/v1/test"
response_body: "example"
};
This then left me with the JSON I needed.