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

Method getProtoDef

protoc-gen-go/generator/generator.go:1951–1951  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1949// defField interface implemented by all types of fields that can have defaults (not oneofField, but instead oneofSubField).
1950type defField interface {
1951 getProtoDef() string // default value explicitly stated in the proto file, e.g "yoshi" or "5"
1952 getProtoName() string // proto name of a field, e.g. "field_name" or "descriptor"
1953 getGoType() string // go type of the field as a string, e.g. "*int32"
1954 getProtoTypeName() string // protobuf type name for the field, e.g. ".google.protobuf.Duration"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected