Help with protobufs/gRPC

Hi, I’m trying to write some code to interact with the api via python/gRPC. I created a new repo and added the api repo as a submodule. To generate the gRPC code, I’m following the example show in the gRPC docs: python -m grpc_tools.protoc -I api/temporal/api/workflowservice/v1/ --python_out=. --grpc_python_out=. api/temporal/api/workflowservice/v1/service.proto. This, however, leads to a slew of errors such as service.proto:145:85: "RespondActivityTaskCompletedResponse" is not defined.

What am I doing wrong? Thanks for the help!