MCPcopy
hub / github.com/protocolbuffers/protobuf-go / MapValue

Method MapValue

reflect/protoreflect/type.go:350–350  ·  view source on GitHub ↗

MapValue returns the field descriptor for the value in the map entry. It returns nil if IsMap reports false.

()

Source from the content-addressed store, hash-verified

348 // MapValue returns the field descriptor for the value in the map entry.
349 // It returns nil if IsMap reports false.
350 MapValue() FieldDescriptor
351
352 // HasDefault reports whether this field has a default value.
353 HasDefault() bool

Callers 15

roundTripAndCompareProtoFunction · 0.65
marshalMapMethod · 0.65
unmarshalMapMethod · 0.65
unmarshalMapEntryMethod · 0.65
roundTripAndCompareProtoFunction · 0.65
marshalMapMethod · 0.65
unmarshalMapMethod · 0.65
SetMethod · 0.65
MutableMethod · 0.65
NewValueMethod · 0.65
sizeMapMethod · 0.65
checkInitializedSlowFunction · 0.65

Implementers 3

Fieldinternal/filedesc/desc.go
Extensioninternal/filedesc/desc.go
placeholderExtensioninternal/impl/legacy_extension.go

Calls

no outgoing calls

Tested by 7

roundTripAndCompareProtoFunction · 0.52
roundTripAndCompareProtoFunction · 0.52
testEmptyMessageFunction · 0.52
testPopulateMessageFunction · 0.52
SetMethod · 0.52
MutableMethod · 0.52
NewValueMethod · 0.52