Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/grpc/examples/php/helloworld.proto

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/grpc/examples/php/helloworld.php ('k') | third_party/grpc/examples/php/route_guide/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/examples/php/helloworld.proto
diff --git a/third_party/protobuf/java/src/test/java/com/google/protobuf/non_nested_extension.proto b/third_party/grpc/examples/php/helloworld.proto
similarity index 77%
copy from third_party/protobuf/java/src/test/java/com/google/protobuf/non_nested_extension.proto
copy to third_party/grpc/examples/php/helloworld.proto
index 31fac552959996684c026ae223cf3fc38252f1ba..ad8f7a152494e48010faffd02d7d96a760ea525a 100644
--- a/third_party/protobuf/java/src/test/java/com/google/protobuf/non_nested_extension.proto
+++ b/third_party/grpc/examples/php/helloworld.proto
@@ -1,6 +1,5 @@
-// Protocol Buffers - Google's data interchange format
-// Copyright 2008 Google Inc. All rights reserved.
-// https://developers.google.com/protocol-buffers/
+// Copyright 2015, Google Inc.
+// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -28,23 +27,24 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Author: Darick Tong (darick@google.com)
-//
-// A proto file with extensions.
-
syntax = "proto2";
-package protobuf_unittest;
+option java_package = "ex.grpc";
+package helloworld;
-message MessageToBeExtended {
- extensions 1 to max;
+// The greeting service definition.
+service Greeter {
+ // Sends a greeting
+ rpc SayHello (HelloRequest) returns (HelloReply) {}
}
-message MyNonNestedExtension {
+// The request message containing the user's name.
+message HelloRequest {
+ optional string name = 1;
}
-extend MessageToBeExtended {
- optional MyNonNestedExtension nonNestedExtension = 1;
+// The response message containing the greetings
+message HelloReply {
+ optional string message = 1;
}
-
« no previous file with comments | « third_party/grpc/examples/php/helloworld.php ('k') | third_party/grpc/examples/php/route_guide/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698