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

Struct EnumDescriptorProto

types/descriptorpb/descriptor.pb.go:2051–2067  ·  view source on GitHub ↗

Describes an enum type.

Source from the content-addressed store, hash-verified

2049
2050// Describes an enum type.
2051type EnumDescriptorProto struct {
2052 state protoimpl.MessageState `protogen:"open.v1"`
2053 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
2054 Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
2055 Options *EnumOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
2056 // Range of reserved numeric values. Reserved numeric values may not be used
2057 // by enum values in the same enum declaration. Reserved ranges may not
2058 // overlap.
2059 ReservedRange []*EnumDescriptorProto_EnumReservedRange `protobuf:"bytes,4,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"`
2060 // Reserved enum value names, which may not be reused. A given name may only
2061 // be reserved once.
2062 ReservedName []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"`
2063 // Support for `export` and `local` keywords on enums.
2064 Visibility *SymbolVisibility `protobuf:"varint,6,opt,name=visibility,enum=google.protobuf.SymbolVisibility" json:"visibility,omitempty"`
2065 unknownFields protoimpl.UnknownFields
2066 sizeCache protoimpl.SizeCache
2067}
2068
2069func (x *EnumDescriptorProto) Reset() {
2070 *x = EnumDescriptorProto{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected