Support map<k,v> protocol buffer fields.
diff --git a/proto/pointer_reflect.go b/proto/pointer_reflect.go
index 42c387a..93259a3 100644
--- a/proto/pointer_reflect.go
+++ b/proto/pointer_reflect.go
@@ -144,6 +144,11 @@
return structPointer_ifield(p, f).(*map[int32]Extension)
}
+// Map returns the reflect.Value for the address of a map field in the struct.
+func structPointer_Map(p structPointer, f field, typ reflect.Type) reflect.Value {
+ return structPointer_field(p, f).Addr()
+}
+
// SetStructPointer writes a *struct field in the struct.
func structPointer_SetStructPointer(p structPointer, f field, q structPointer) {
structPointer_field(p, f).Set(q.v)