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

Unified Diff: client/cmd/rpc/printer_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: fix Resolve, do not print package 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: client/cmd/rpc/printer_test.proto
diff --git a/client/cmd/rpc/printer_test.proto b/client/cmd/rpc/printer_test.proto
new file mode 100644
index 0000000000000000000000000000000000000000..f207ff1e136419c43077e0bb58c01b70cce647d3
--- /dev/null
+++ b/client/cmd/rpc/printer_test.proto
@@ -0,0 +1,83 @@
+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;
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698