Index: third_party/grpc/examples/protos/auth_sample.proto |
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/grpc/examples/protos/auth_sample.proto |
similarity index 71% |
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
copy to third_party/grpc/examples/protos/auth_sample.proto |
index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..a49caca657edaf878dfaf81f71020ab3ff7f2627 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
+++ b/third_party/grpc/examples/protos/auth_sample.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,31 @@ |
// (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"; |
+package grpc.testing; |
-import "google/protobuf/any.proto"; |
+option objc_class_prefix = "AUTH"; |
-message AnyIn { |
- string something = 1; |
-} |
+// Unary request. |
+message Request { |
+ // Whether Response should include username. |
+ bool fill_username = 4; |
-message AnyOut { |
- google.protobuf.Any any = 1; |
+ // Whether Response should include OAuth scope. |
+ bool fill_oauth_scope = 5; |
} |
-message AnyM { |
- string foo = 1; |
+// Unary response, as configured by the request. |
+message Response { |
+ // The user the request came from, for verifying authentication was |
+ // successful. |
+ string username = 2; |
+ // OAuth scope. |
+ string oauth_scope = 3; |
} |
service TestService { |
- rpc Call(AnyIn) returns (AnyOut); |
+ // One request followed by one response. |
+ rpc UnaryCall(Request) returns (Response); |
} |