Closed loeffel-io closed 2 months ago
I think i am wrong here, sounds like i must use just implement the whole longrunning service
I think i am wrong here, sounds like i must use just implement the whole longrunning service
You are on the right track here.
Google services do not redefine the google.longrunning.Operations
service directly in their own service
protos. Instead, they implement it, and register their google.longrunning.Operations
server implementation on their endpoint, just like one would do with implementing & registering their own gRPC service implementation.
As such, we don't see the proto definition you've included above in the .proto
files being linted, so the assumption is that if an RPC returns a google.longrunning.Operation
, it is leveraging the Operations
service, not implementing it, and needs to conform to AIP-151.
Closing, but feel free to follow up with questions!
Thank you very much @noahdietz for your answer!
Google services do not redefine the google.longrunning.Operations service directly in their own service protos. Instead, they implement it, and register their google.longrunning.Operations server implementation on their endpoint, just like one would do with implementing & registering their own gRPC service implementation.
Just did this
As mentioned here you can add custom bindings. This sounds to me that we can create our own GetOperation/ListOperations method inside our own GrpcService like:
but this will fail with
Maybe i can get some insights here, thank you 🙏