aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/tests/proto/test_service_namespace.proto
diff options
context:
space:
mode:
authorGravatar Matt A <matthew.james.allan@gmail.com>2017-07-18 10:45:18 -0400
committerGravatar Paul Yang <TeBoring@users.noreply.github.com>2017-07-18 07:45:18 -0700
commit9e745f771b2a0cde271b8283753c19014124ac95 (patch)
treefdbeb728029877de7d65f4b8d467e6b7970741db /php/tests/proto/test_service_namespace.proto
parent33545583286a31940b6a732b1888e639cdf2e3c4 (diff)
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_namespace.proto')
-rw-r--r--php/tests/proto/test_service_namespace.proto13
1 files changed, 13 insertions, 0 deletions
diff --git a/php/tests/proto/test_service_namespace.proto b/php/tests/proto/test_service_namespace.proto
new file mode 100644
index 00000000..719aa484
--- /dev/null
+++ b/php/tests/proto/test_service_namespace.proto
@@ -0,0 +1,13 @@
+syntax = "proto3";
+
+import "proto/test_service.proto";
+
+package foo;
+
+option php_generic_services = true;
+option php_namespace = "Bar";
+
+service OtherGreeter {
+ rpc SayHello (HelloRequest) returns (HelloReply) {}
+ rpc SayHelloAgain (HelloRequest) returns (HelloReply) {}
+}