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

Struct File

internal/filedesc/desc.go:54–61  ·  view source on GitHub ↗

The types in this file may have a suffix: • L0: Contains fields common to all descriptors (except File) and must be initialized up front. • L1: Contains fields specific to a descriptor and must be initialized up front. If the associated proto uses Editions, the Editions features must always be r

Source from the content-addressed store, hash-verified

52
53type (
54 File struct {
55 fileRaw
56 L1 FileL1
57
58 once uint32 // atomically set if L2 is valid
59 mu sync.Mutex // protects L2
60 L2 *FileL2
61 }
62 FileL1 struct {
63 Syntax protoreflect.Syntax
64 Edition Edition // Only used if Syntax == Editions

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected