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

Function isRepeated

protoc-gen-go/generator/generator.go:2707–2709  ·  view source on GitHub ↗

Is this field repeated?

(field *descriptor.FieldDescriptorProto)

Source from the content-addressed store, hash-verified

2705
2706// Is this field repeated?
2707func isRepeated(field *descriptor.FieldDescriptorProto) bool {
2708 return field.Label != nil && *field.Label == descriptor.FieldDescriptorProto_LABEL_REPEATED
2709}
2710
2711// Is this field a scalar numeric type?
2712func isScalar(field *descriptor.FieldDescriptorProto) bool {

Callers 3

goTagMethod · 0.85
GoTypeMethod · 0.85
getterDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected