Lines Matching refs:oneof
464 // This is a oneof, called "union".
490 Number int32 `protobuf:"varint,5,opt,name=number,oneof"`
493 Name string `protobuf:"bytes,6,opt,name=name,oneof"`
496 Data []byte `protobuf:"bytes,7,opt,name=data,oneof"`
499 TempC float64 `protobuf:"fixed64,8,opt,name=temp_c,json=tempC,oneof"`
502 Height float32 `protobuf:"fixed32,9,opt,name=height,oneof"`
505 Today Days `protobuf:"varint,10,opt,name=today,enum=my.test.Days,oneof"`
508 Maybe bool `protobuf:"varint,11,opt,name=maybe,oneof"`
511 Delta int32 `protobuf:"zigzag32,12,opt,name=delta,oneof"`
514 Msg *Reply `protobuf:"bytes,13,opt,name=msg,oneof"`
517 Somegroup *Communique_SomeGroup `protobuf:"group,14,opt,name=SomeGroup,json=somegroup,oneof"`
802 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))