| Index: third_party/grpc/examples/protos/hellostreamingworld.proto
|
| diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/grpc/examples/protos/hellostreamingworld.proto
|
| similarity index 73%
|
| copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
|
| copy to third_party/grpc/examples/protos/hellostreamingworld.proto
|
| index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..bd5af3b2d5b4f4ed28ea53faa9cd9b8f55a62884 100644
|
| --- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
|
| +++ b/third_party/grpc/examples/protos/hellostreamingworld.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,26 +27,28 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Proto to test Proto3 Any serialization.
|
| syntax = "proto3";
|
|
|
| -package google.protobuf.testing.anys;
|
| -option java_package = "com.google.protobuf.testing.anys";
|
| +option java_package = "ex.grpc";
|
| +option objc_class_prefix = "HSW";
|
|
|
| -import "google/protobuf/any.proto";
|
| +package hellostreamingworld;
|
|
|
| -message AnyIn {
|
| - string something = 1;
|
| +// The greeting service definition.
|
| +service MultiGreeter {
|
| + // Sends multiple greetings
|
| + rpc sayHello (HelloRequest) returns (stream HelloReply) {}
|
| }
|
|
|
| -message AnyOut {
|
| - google.protobuf.Any any = 1;
|
| +// The request message containing the user's name and how many greetings
|
| +// they want.
|
| +message HelloRequest {
|
| + string name = 1;
|
| + string num_greetings = 2;
|
| }
|
|
|
| -message AnyM {
|
| - string foo = 1;
|
| +// A response message containing a greeting
|
| +message HelloReply {
|
| + string message = 1;
|
| }
|
|
|
| -service TestService {
|
| - rpc Call(AnyIn) returns (AnyOut);
|
| -}
|
|
|