I have an operation that works like google.longrunning.Operation (src here)
As it seen here and here, there is an option to specify Any's type.
So, when I create rpc and specify option of what metadata and response type are:
rpc StartOperation(StartOperationRequest) returns (operation.v1.Operation) {
option (operation.v1.operation) = {
metadata: 'MyMetadata'
response: 'MyResult'
};
}
I want to grpc-api-gateway to convert these Anys into specified messages.
Is it possible to?
Also I do expect that Any will have only necessary fields (no type and value) when:
- OpenAPI specification is generated
- Response with
Any is sent to a client
I have an operation that works like
google.longrunning.Operation(src here)As it seen here and here, there is an option to specify
Any's type.So, when I create rpc and specify option of what metadata and response type are:
rpc StartOperation(StartOperationRequest) returns (operation.v1.Operation) { option (operation.v1.operation) = { metadata: 'MyMetadata' response: 'MyResult' }; }I want to grpc-api-gateway to convert these
Anys into specified messages.Is it possible to?
Also I do expect that
Anywill have only necessary fields (notypeandvalue) when:Anyis sent to a client