func EnumDescriptorProto(e proto.GeneratedEnum) (*descriptorpb.FileDescriptorProto, *descriptorpb.EnumDescriptorProto) {
	rawDesc, idxs := EnumRawDescriptor(e)
	if rawDesc == nil || idxs == nil {
		return nil, nil
	}
	fd := deriveFileDescriptor(rawDesc)
	if len(idxs) == 1 {
		return fd, fd.EnumType[idxs[0]]
	}
	md := fd.MessageType[idxs[0]]
	for _, i := range idxs[1 : len(idxs)-1] {
		md = md.NestedType[i]
	}
	ed := md.EnumType[idxs[len(idxs)-1]]
	return fd, ed
}
// EnumDescriptorProto returns the file descriptor proto representing
// the enum and the enum descriptor proto for the enum itself.
// The returned proto messages must not be mutated.
EnumDescriptorProto returns the file descriptor proto representing
the enum and the enum descriptor proto for the enum itself.
The returned proto messages must not be mutated.
// EnumDescriptorProto returns the file descriptor proto representing // the enum and the enum descriptor proto for the enum itself . // The returned proto messages must not be mutated .
func EnumDescriptorProto(e proto.GeneratedEnum) (*descriptorpb.FileDescriptorProto, *descriptorpb.EnumDescriptorProto) {
	rawDesc, idxs := EnumRawDescriptor(e)
	if rawDesc == nil || idxs == nil {
		return nil, nil
	}
	fd := deriveFileDescriptor(rawDesc)
	if len(idxs) == 1 {
		return fd, fd.EnumType[idxs[0]]
	}
	md := fd.MessageType[idxs[0]]
	for _, i := range idxs[1 : len(idxs)-1] {
		md = md.NestedType[i]
	}
	ed := md.EnumType[idxs[len(idxs)-1]]
	return fd, ed
}
func EnumDescriptorProto ( e proto . GeneratedEnum ) ( * descriptorpb . FileDescriptorProto , * descriptorpb . EnumDescriptorProto ) { rawDesc , idxs := EnumRawDescriptor ( e ) if rawDesc == nil || idxs == nil { return nil , nil } fd := deriveFileDescriptor ( rawDesc ) if len ( idxs ) == 1 { return fd , fd . EnumType [ idxs [ 0 ] ] } md := fd . MessageType [ idxs [ 0 ] ] for _ , i := range idxs [ 1 : len ( idxs ) - 1 ] { md = md . NestedType [ i ] } ed := md . EnumType [ idxs [ len ( idxs ) - 1 ] ] return fd , ed }
EnumDescriptorProto returns the file descriptor proto representing
the enum and the enum descriptor proto for the enum itself.
EnumDescriptorProto returns the file descriptor proto representing the enum and the enum descriptor proto for the enum itself .