aboutsummaryrefslogtreecommitdiff
path: root/php/tests/proto/test_service.proto
diff options
context:
space:
mode:
authorMatt A <matthew.james.allan@gmail.com>2017-07-18 10:45:18 -0400
committerPaul Yang <TeBoring@users.noreply.github.com>2017-07-18 07:45:18 -0700
commit9e745f771b2a0cde271b8283753c19014124ac95 (patch)
treefdbeb728029877de7d65f4b8d467e6b7970741db /php/tests/proto/test_service.proto
parent33545583286a31940b6a732b1888e639cdf2e3c4 (diff)
downloadprotobuf-9e745f771b2a0cde271b8283753c19014124ac95.tar.gz
protobuf-9e745f771b2a0cde271b8283753c19014124ac95.tar.bz2
protobuf-9e745f771b2a0cde271b8283753c19014124ac95.zip
Support PHP generic services (#3269)
* Add php_generic_services option * Generate PHP generic services * Respect namespaces for generated PHP services * Test PHP generated services * Rename PHP generator service method doc comment function * Correct phpdoc service method case * Test namespaced PHP generic services * Always use the FQCN for PHP generic service input/output * Add generated_service_test to php test.sh * Add php service test protos to CI * Add php service files to php_EXTRA_DIST * Use Interface suffix for php generic services
Diffstat (limited to 'php/tests/proto/test_service.proto')
-rw-r--r--php/tests/proto/test_service.proto18
1 files changed, 18 insertions, 0 deletions
diff --git a/php/tests/proto/test_service.proto b/php/tests/proto/test_service.proto
new file mode 100644
index 00000000..a03dbc46
--- /dev/null
+++ b/php/tests/proto/test_service.proto
@@ -0,0 +1,18 @@
+syntax = "proto3";
+
+package foo;
+
+option php_generic_services = true;
+
+service Greeter {
+ rpc SayHello (HelloRequest) returns (HelloReply) {}
+ rpc SayHelloAgain (HelloRequest) returns (HelloReply) {}
+}
+
+message HelloRequest {
+ string name = 1;
+}
+
+message HelloReply {
+ string message = 1;
+}