@@ -23,45 +23,29 @@ generate:
2323 --grpc_out=$(GENERATED_DIR ) \
2424 $(PROTOS_DIR ) /google/bigtable/v1/* .proto \
2525 $(PROTOS_DIR ) /google/bigtable/admin/cluster/v1/* .proto \
26- $(PROTOS_DIR ) /google/bigtable/admin/table/v1/* .proto \
27- $(PROTOS_DIR ) /google/api/* .proto \
28- $(PROTOS_DIR ) /google/protobuf/any.proto \
29- $(PROTOS_DIR ) /google/protobuf/duration.proto \
30- $(PROTOS_DIR ) /google/protobuf/empty.proto \
31- $(PROTOS_DIR ) /google/protobuf/timestamp.proto \
32- $(PROTOS_DIR ) /google/longrunning/operations.proto \
33- $(PROTOS_DIR ) /google/rpc/status.proto
26+ $(PROTOS_DIR ) /google/bigtable/admin/table/v1/* .proto
3427 # Move the newly generated *_pb2.py files into our library.
3528 mv $(GENERATED_DIR ) /google/bigtable/v1/* $(FINAL_DIR )
3629 mv $(GENERATED_DIR ) /google/bigtable/admin/cluster/v1/* $(FINAL_DIR )
3730 mv $(GENERATED_DIR ) /google/bigtable/admin/table/v1/* $(FINAL_DIR )
38- mv $(GENERATED_DIR ) /google/api/* $(FINAL_DIR )
39- mv $(GENERATED_DIR ) /google/protobuf/any_pb2.py $(FINAL_DIR )
40- mv $(GENERATED_DIR ) /google/protobuf/duration_pb2.py $(FINAL_DIR )
41- mv $(GENERATED_DIR ) /google/protobuf/empty_pb2.py $(FINAL_DIR )
42- mv $(GENERATED_DIR ) /google/protobuf/timestamp_pb2.py $(FINAL_DIR )
43- mv $(GENERATED_DIR ) /google/longrunning/operations_pb2.py $(FINAL_DIR )
44- mv $(GENERATED_DIR ) /google/rpc/status_pb2.py $(FINAL_DIR )
4531 # Remove all existing *.proto files before we replace
4632 rm -f $(FINAL_DIR ) /* .proto
4733 # Copy over the *.proto files into our library.
4834 cp $(PROTOS_DIR ) /google/bigtable/v1/* .proto $(FINAL_DIR )
4935 cp $(PROTOS_DIR ) /google/bigtable/admin/cluster/v1/* .proto $(FINAL_DIR )
5036 cp $(PROTOS_DIR ) /google/bigtable/admin/table/v1/* .proto $(FINAL_DIR )
51- cp $(PROTOS_DIR ) /google/api/* .proto $(FINAL_DIR )
52- cp $(PROTOS_DIR ) /google/protobuf/any.proto $(FINAL_DIR )
53- cp $(PROTOS_DIR ) /google/protobuf/duration.proto $(FINAL_DIR )
54- cp $(PROTOS_DIR ) /google/protobuf/empty.proto $(FINAL_DIR )
55- cp $(PROTOS_DIR ) /google/protobuf/timestamp.proto $(FINAL_DIR )
5637 cp $(PROTOS_DIR ) /google/longrunning/operations.proto $(FINAL_DIR )
57- cp $(PROTOS_DIR ) /google/rpc/status.proto $(FINAL_DIR )
5838 # Rename all *.proto files in our library with an
5939 # underscore and remove executable bit.
6040 cd $(FINAL_DIR ) && \
6141 for filename in * .proto; do \
6242 chmod -x $$ filename ; \
6343 mv $$ filename _$$ filename ; \
6444 done
45+ # Separate the gRPC parts of the operations service from the
46+ # non-gRPC parts so that the protos from `googleapis-common-protos`
47+ # can be used without gRPC.
48+ python scripts/make_operations_grpc.py
6549 # Rewrite the imports in the generated *_pb2.py files.
6650 python scripts/rewrite_imports.py
6751
0 commit comments