func translateName(name string, md *descriptor.DescriptorProto) (string, *descriptor.DescriptorProto) { … } // FieldMaskFromRequestBody creates a FieldMask printing all complete paths from the JSON body. func FieldMaskFromRequestBody(r io.Reader, md *descriptor.DescriptorProto) (*field_mask.FieldMask, error) { … } type fieldMaskPathItem …