google.golang.org/protobuf/reflect/protoreflect.Value.Enum (method)
18 uses
google.golang.org/protobuf/reflect/protoreflect (current package)
value_union.go#L195: return v.Enum()
value_union.go#L305: func (v Value) Enum() EnumNumber {
google.golang.org/protobuf/encoding/protojson
encode.go#L275: desc := fd.Enum().Values().ByNumber(val.Enum())
encode.go#L277: e.WriteInt(int64(val.Enum()))
google.golang.org/protobuf/encoding/prototext
encode.go#L261: num := val.Enum()
google.golang.org/protobuf/internal/encoding/defval
default.go#L139: return strconv.FormatInt(int64(v.Enum()), 10), nil
google.golang.org/protobuf/internal/impl
codec_gen.go#L425: return tagsize + protowire.SizeVarint(uint64(v.Enum()))
codec_gen.go#L431: b = protowire.AppendVarint(b, uint64(v.Enum()))
codec_gen.go#L470: size += tagsize + protowire.SizeVarint(uint64(v.Enum()))
codec_gen.go#L481: b = protowire.AppendVarint(b, uint64(v.Enum()))
codec_gen.go#L554: n += protowire.SizeVarint(uint64(v.Enum()))
codec_gen.go#L570: n += protowire.SizeVarint(uint64(v.Enum()))
codec_gen.go#L575: b = protowire.AppendVarint(b, uint64(v.Enum()))
convert.go#L394: return reflect.ValueOf(v.Enum()).Convert(c.goType)
google.golang.org/protobuf/proto
encode_gen.go#L45: b = protowire.AppendVarint(b, uint64(v.Enum()))
size_gen.go#L19: return protowire.SizeVarint(uint64(v.Enum()))
github.com/golang/protobuf/proto
text_encode.go#L395: if ev := fd.Enum().Values().ByNumber(v.Enum()); ev != nil {
text_encode.go#L398: fmt.Fprint(w, v.Enum())
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |