MCPcopy
hub / github.com/gogo/protobuf / init

Function init

types/type.pb.go:634–643  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

632 return "google.protobuf.Option"
633}
634func init() {
635 proto.RegisterEnum("google.protobuf.Syntax", Syntax_name, Syntax_value)
636 proto.RegisterEnum("google.protobuf.Field_Kind", Field_Kind_name, Field_Kind_value)
637 proto.RegisterEnum("google.protobuf.Field_Cardinality", Field_Cardinality_name, Field_Cardinality_value)
638 proto.RegisterType((*Type)(nil), "google.protobuf.Type")
639 proto.RegisterType((*Field)(nil), "google.protobuf.Field")
640 proto.RegisterType((*Enum)(nil), "google.protobuf.Enum")
641 proto.RegisterType((*EnumValue)(nil), "google.protobuf.EnumValue")
642 proto.RegisterType((*Option)(nil), "google.protobuf.Option")
643}
644
645func init() { proto.RegisterFile("google/protobuf/type.proto", fileDescriptor_dd271cc1e348c538) }
646

Callers

nothing calls this directly

Calls 3

RegisterEnumFunction · 0.92
RegisterTypeFunction · 0.92
RegisterFileFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…