@@ -94,10 +94,63 @@ function generate_health_service {
94
94
generate_grpc " $proto " " $( dirname " $proto " ) " " $output " " Visibility=Package" " Client=true" " Server=true" " UseAccessLevelOnImports=true"
95
95
}
96
96
97
+ function generate_reflection_service {
98
+ local proto=" $here /upstream/grpc/reflection/v1/reflection.proto"
99
+ local output=" $root /Sources/GRPCReflectionService/Generated"
100
+
101
+ generate_message " $proto " " $( dirname " $proto " ) " " $output " " Visibility=Package" " UseAccessLevelOnImports=true"
102
+ generate_grpc " $proto " " $( dirname " $proto " ) " " $output " " Visibility=Package" " UseAccessLevelOnImports=true"
103
+ }
104
+
105
+ # - TEST DATA ------------------------------------------------------------------
106
+
107
+ function generate_reflection_service_descriptor_set {
108
+ local proto=" $here /upstream/grpc/reflection/v1/reflection.proto"
109
+ local proto_path=" $here /upstream"
110
+ local output=" $root /Tests/GRPCReflectionServiceTests/Generated/DescriptorSets/reflection.pb"
111
+
112
+ invoke_protoc --descriptor_set_out=" $output " " $proto " -I " $proto_path " \
113
+ --include_source_info \
114
+ --include_imports
115
+ }
116
+
117
+ function generate_health_service_descriptor_set {
118
+ local proto=" $here /upstream/grpc/health/v1/health.proto"
119
+ local proto_path=" $here /upstream"
120
+ local output=" $root /Tests/GRPCReflectionServiceTests/Generated/DescriptorSets/health.pb"
121
+
122
+ invoke_protoc --descriptor_set_out=" $output " " $proto " -I " $proto_path " \
123
+ --include_source_info \
124
+ --include_imports
125
+ }
126
+
127
+ function generate_base_message_descriptor_set {
128
+ local proto=" $here /tests/reflection/base_message.proto"
129
+ local proto_path=" $here /tests/reflection"
130
+ local output=" $root /Tests/GRPCReflectionServiceTests/Generated/DescriptorSets/base_message.pb"
131
+
132
+ invoke_protoc --descriptor_set_out=" $output " " $proto " -I " $proto_path " \
133
+ --include_source_info \
134
+ --include_imports
135
+ }
136
+
137
+ function generate_message_with_dependency_descriptor_set {
138
+ local proto=" $here /tests/reflection/message_with_dependency.proto"
139
+ local proto_path=" $here /tests/reflection"
140
+ local output=" $root /Tests/GRPCReflectionServiceTests/Generated/DescriptorSets/message_with_dependency.pb"
141
+
142
+ invoke_protoc --descriptor_set_out=" $output " " $proto " -I " $proto_path " \
143
+ --include_source_info \
144
+ --include_imports
145
+ }
146
+
97
147
# ------------------------------------------------------------------------------
98
148
99
- # Interoperability tests
100
149
generate_interop_test_service
101
-
102
- # Health service
103
150
generate_health_service
151
+ generate_reflection_service
152
+
153
+ generate_reflection_service_descriptor_set
154
+ generate_health_service_descriptor_set
155
+ generate_base_message_descriptor_set
156
+ generate_message_with_dependency_descriptor_set
0 commit comments