| 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;
|
| }
|
|
|