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

Unified Diff: third_party/grpc/examples/protos/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
Index: third_party/grpc/examples/protos/helloworld.proto
diff --git a/third_party/protobuf/java/src/test/java/com/google/protobuf/nested_builders_test.proto b/third_party/grpc/examples/protos/helloworld.proto
similarity index 73%
copy from third_party/protobuf/java/src/test/java/com/google/protobuf/nested_builders_test.proto
copy to third_party/grpc/examples/protos/helloworld.proto
index a5dd66d88946480c7564e0dbfef81a7737b5e63e..e670503b09e55fbde93f1d9bef5a762c9b1c1839 100644
--- a/third_party/protobuf/java/src/test/java/com/google/protobuf/nested_builders_test.proto
+++ b/third_party/grpc/examples/protos/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-2016, 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,27 +27,27 @@
// (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: jonp@google.com (Jon Perlow)
-//
-syntax = "proto2";
-
-package protobuf_unittest;
+syntax = "proto3";
option java_multiple_files = true;
-option java_outer_classname = "NestedBuilders";
+option java_package = "io.grpc.examples.helloworld";
+option java_outer_classname = "HelloWorldProto";
+option objc_class_prefix = "HLW";
+package helloworld;
-message Vehicle {
- optional Engine engine = 1;
- repeated Wheel wheel = 2;
+// The greeting service definition.
+service Greeter {
+ // Sends a greeting
+ rpc SayHello (HelloRequest) returns (HelloReply) {}
}
-message Engine {
- optional int32 cylinder = 1;
- optional int32 liters = 2;
+// The request message containing the user's name.
+message HelloRequest {
+ string name = 1;
}
-message Wheel {
- optional int32 radius = 1;
- optional int32 width = 2;
+// The response message containing the greetings
+message HelloReply {
+ string message = 1;
}
« no previous file with comments | « third_party/grpc/examples/protos/hellostreamingworld.proto ('k') | third_party/grpc/examples/protos/route_guide.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698