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

Unified Diff: common/proto/google/descriptor/util_test.proto

Issue 1587323003: client/cmd/rpc: RPC CLI (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@discovery
Patch Set: rebased Created 4 years, 11 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: common/proto/google/descriptor/util_test.proto
diff --git a/common/proto/google/descriptor/util_test.proto b/common/proto/google/descriptor/util_test.proto
new file mode 100644
index 0000000000000000000000000000000000000000..163d529aebe498d484426f909bc42a6873b0f73b
--- /dev/null
+++ b/common/proto/google/descriptor/util_test.proto
@@ -0,0 +1,82 @@
+syntax = "proto3";
+
+package pkg;
+
+
+// Enum comment.
+// next line.
+enum E1 {
+ // V0
+ // next line.
+ V0 = 0;
+ // V1
+ // next line.
+ V1 = 1;
+}
+
+// M1
+// next line.
+message M1 {
+ // f1
+ // next line.
+ string f1 = 1;
+}
+
+// M2
+// next line.
+message M2 {
+ // f1
+ // next line.
+ repeated M1 f1 = 1;
+ // f2
+ // next line.
+ E1 f2 = 2;
+}
+
+// M3
+message M3 {
+ // O1
+ oneof O1 {
+ // f1
+ int32 f1 = 1;
+ // f2
+ int32 f2 = 2;
+ }
+ // O2
+ oneof O2 {
+ // f3
+ int32 f3 = 3;
+ // f4
+ int32 f4 = 4;
+ }
+ // f5
+ string f5 = 5;
+ // f6
+ int32 f6 = 6;
+}
+
+
+// S1
+service S1 {
+ // R1
+ rpc R1(M1) returns (M2) {};
+}
+
+// S2
+service S2 {
+ // R1
+ rpc R1(M1) returns (M2) {};
+ // R2
+ rpc R2(M1) returns (M2) {};
+}
+
+message NestedMessageParent {
+ message NestedMessage {
+ int32 f1 = 1;
+ int32 f2 = 2;
+ }
+ enum NestedEnum {
+ V0 = 0;
+ V1 = 1;
+ }
+}
« no previous file with comments | « common/proto/google/descriptor/util_test.go ('k') | server/discovery/internal/testservices/discovery_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698