MCPcopy
hub / github.com/golang/protobuf / Widget

Struct Widget

internal/testprotos/jsonpb_proto/test2.pb.go:456–466  ·  view source on GitHub ↗

Test message for holding enums and nested messages.

Source from the content-addressed store, hash-verified

454
455// Test message for holding enums and nested messages.
456type 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
468func (m *Widget) Reset() { *m = Widget{} }
469func (m *Widget) String() string { return proto.CompactTextString(m) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected