Test message for holding enums and nested messages.
| 454 | |
| 455 | // Test message for holding enums and nested messages. |
| 456 | type Widget struct { |
| 457 | Color *Widget_Color `protobuf:"varint,1,opt,name=color,enum=jsonpb_test.Widget_Color" json:"color,omitempty"` |
| 458 | RColor []Widget_Color `protobuf:"varint,2,rep,name=r_color,json=rColor,enum=jsonpb_test.Widget_Color" json:"r_color,omitempty"` |
| 459 | Simple *Simple `protobuf:"bytes,10,opt,name=simple" json:"simple,omitempty"` |
| 460 | RSimple []*Simple `protobuf:"bytes,11,rep,name=r_simple,json=rSimple" json:"r_simple,omitempty"` |
| 461 | Repeats *Repeats `protobuf:"bytes,20,opt,name=repeats" json:"repeats,omitempty"` |
| 462 | RRepeats []*Repeats `protobuf:"bytes,21,rep,name=r_repeats,json=rRepeats" json:"r_repeats,omitempty"` |
| 463 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 464 | XXX_unrecognized []byte `json:"-"` |
| 465 | XXX_sizecache int32 `json:"-"` |
| 466 | } |
| 467 | |
| 468 | func (m *Widget) Reset() { *m = Widget{} } |
| 469 | func (m *Widget) String() string { return proto.CompactTextString(m) } |
nothing calls this directly
no outgoing calls
no test coverage detected