MCPcopy
hub / github.com/golang/protobuf / ObjectNamed

Method ObjectNamed

protoc-gen-go/generator/generator.go:953–959  ·  view source on GitHub ↗

ObjectNamed, given a fully-qualified input type name as it appears in the input data, returns the descriptor for the message or enum with that name.

(typeName string)

Source from the content-addressed store, hash-verified

951// ObjectNamed, given a fully-qualified input type name as it appears in the input data,
952// returns the descriptor for the message or enum with that name.
953func (g *Generator) ObjectNamed(typeName string) Object {
954 o, ok := g.typeNameToObject[typeName]
955 if !ok {
956 g.Fail("can't find object with type", typeName)
957 }
958 return o
959}
960
961// AnnotatedAtoms is a list of atoms (as consumed by P) that records the file name and proto AST path from which they originated.
962type AnnotatedAtoms struct {

Callers 8

goTagMethod · 0.95
GoTypeMethod · 0.95
RecordTypeUseMethod · 0.95
getterDefaultMethod · 0.95
generateMessageMethod · 0.95
generateExtensionMethod · 0.95
objectNamedMethod · 0.80

Calls 1

FailMethod · 0.95

Tested by

no test coverage detected