Skip to content
callcount

google.golang.org/protobuf/reflect/protoreflect.FieldDescriptors.ByNumber

third-party

The 8730th most-called third-party method by production calls. Called 101 times across 5 modules; 69 of those run outside tests and generated code.

57% in production calls vs 2026-W37 (159 → 69)

All of google.golang.org/protobuf/reflect/protoreflect → Docs on pkg.go.dev ↗

prod calls
69
non-test, non-generated
all calls
101
total callsites
modules
5
distinct callers
in loop
13%
of prod calls
in tests
30%
30 calls
resolved
0%
to a known target

resolution mix

How each call resolves

How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →

  • Interface method100%Called through an interface. The runtime target may differ.

who calls this

Notable callers

Production calls into FieldDescriptors.ByNumber from notable Go projects. Open one on the map to see what else it hammers.

where it's called

Callsites in the wild

12 representative callsites of 101, prioritizing in-loop and non-test usage. We link to source, never display it.

FieldDescriptors.ByNumber · 12 of 101 callsites
  • google.golang.org/protobuf @v1.36.12

    internal/impl/checkinit.go:33

    in loop
  • google.golang.org/protobuf @v1.36.12

    proto/checkinit.go:39

    in loop
  • google.golang.org/protobuf @v1.36.12

    internal/impl/checkinit.go:58

    in loop
  • google.golang.org/protobuf @v1.36.12

    internal/impl/checkinit.go:84

    in loop
  • google.golang.org/protobuf @v1.36.12

    reflect/protodesc/desc_validate.go:105

    in loop
  • google.golang.org/protobuf @v1.36.12

    types/dynamicpb/dynamic.go:142

    in loop
  • google.golang.org/protobuf @v1.36.12

    proto/decode.go:160

    in loop
  • google.golang.org/protobuf @v1.36.12

    encoding/prototext/decode.go:188

    in loop
  • google.golang.org/protobuf @v1.36.12

    testing/protopack/pack.go:347

    in loop
  • in loop test
  • in loop test
  • google.golang.org/protobuf @v1.36.12

    internal/impl/legacy_test.go:645

    in loop test

top callers

The modules that reach for it

The modules that call FieldDescriptors.ByNumber most in this snapshot.

  • google.golang.org/protobuf8988%
  • github.com/bufbuild/buf99%
  • buf.build/go/protovalidate1<1%
  • github.com/bytebase/bytebase1<1%
  • github.com/kubernetes/kubernetes1<1%

siblings

More from google.golang.org/protobuf/reflect/protoreflect

The other most-called members in this package. See all →