func (mi *MessageInfo) checkInitialized(in protoiface.CheckInitializedInput) (protoiface.CheckInitializedOutput, error) { … } func (mi *MessageInfo) checkInitializedPointer(p pointer) error { … } func (mi *MessageInfo) isInitExtensions(ext *map[int32]ExtensionField) error { … } var needsInitCheckMu … var needsInitCheckMap … // needsInitCheck reports whether a message needs to be checked for partial initialization. // // It returns true if the message transitively includes any required or extension fields. func needsInitCheck(md protoreflect.MessageDescriptor) bool { … } func needsInitCheckLocked(md protoreflect.MessageDescriptor) (has bool) { … }