-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_protos.bat
19 lines (15 loc) · 2.07 KB
/
generate_protos.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@rem Generate the C# code for .proto files
@rem enter this directory
cd /d %~dp0
set PROTOC=%UserProfile%\.nuget\packages\google.protobuf.tools\3.5.1\tools\windows_x64\protoc.exe
set PLUGIN=%UserProfile%\.nuget\packages\grpc.tools\1.9.0\tools\windows_x64\grpc_csharp_plugin.exe
@rem dotnet restore
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/ApplicationRegisterService.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/Common.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/DiscoveryService.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/Downstream.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/JVMMetricsService.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/KeyWithIntegerValue.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/KeyWithStringValue.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/NetworkAddressRegisterService.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.Transport.Grpc/NetworkProtocol protos/TraceSegmentService.proto --grpc_out src/SkyWalking.Transport.Grpc/NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%