@@ -14,6 +14,34 @@ not as a general purpose emulator.
1414pip install -r requirements.txt
1515```
1616
17+ ## Updating Proto Files
18+
19+ From time to time you may need to update the files generated by protobuf and
20+ gRPC. To do so, clone the [ protos] ( https://github.com/googleapis/googleapis ) and
21+ run the grpc_tools generator:
22+
23+ ``` shell
24+ cd $HOME
25+ git clone https://github.com/googleapis/googleapis
26+ cd google-cloud-cpp
27+ python -m grpc_tools.protoc -I$HOME /googleapis \
28+ --python_out=google/cloud/storage/emulator \
29+ --grpc_python_out=google/cloud/storage/emulator \
30+ $HOME /googleapis/google/iam/v1/iam_policy.proto
31+ python -m grpc_tools.protoc -I$HOME /googleapis \
32+ --python_out=google/cloud/storage/emulator \
33+ --grpc_python_out=google/cloud/storage/emulator \
34+ $HOME /googleapis/google/iam/v1/options.proto
35+ python -m grpc_tools.protoc -I$HOME /googleapis \
36+ --python_out=google/cloud/storage/emulator \
37+ --grpc_python_out=google/cloud/storage/emulator \
38+ $HOME /googleapis/google/iam/v1/policy.proto
39+ python -m grpc_tools.protoc -I$HOME /googleapis \
40+ --python_out=google/cloud/storage/emulator \
41+ --grpc_python_out=google/cloud/storage/emulator \
42+ $HOME /googleapis/google/storage/v2/storage.proto
43+ ```
44+
1745## Run Tests
1846
1947Tests use https://docs.python.org/3/library/unittest.html and can be ran using:
0 commit comments