MCPcopy
hub / github.com/protocolbuffers/protobuf-go / OneofDescriptorProto

Struct OneofDescriptorProto

types/descriptorpb/descriptor.pb.go:1998–2004  ·  view source on GitHub ↗

Describes a oneof.

Source from the content-addressed store, hash-verified

1996
1997// Describes a oneof.
1998type OneofDescriptorProto struct {
1999 state protoimpl.MessageState `protogen:"open.v1"`
2000 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
2001 Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
2002 unknownFields protoimpl.UnknownFields
2003 sizeCache protoimpl.SizeCache
2004}
2005
2006func (x *OneofDescriptorProto) Reset() {
2007 *x = OneofDescriptorProto{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected