| @@ -2,6 +2,10 @@ syntax = "proto3"; | ||||
|  | ||||
| package oneof; | ||||
|  | ||||
| message MixedDrink { | ||||
|   int32 shots = 1; | ||||
| } | ||||
|  | ||||
| message Test { | ||||
|   oneof foo { | ||||
|     int32 pitied = 1; | ||||
| @@ -13,6 +17,7 @@ message Test { | ||||
|   oneof bar { | ||||
|     int32 drinks = 11; | ||||
|     string bar_name = 12; | ||||
|     MixedDrink mixed_drink = 13; | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user